From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH v2 1/2] cairo: Update to 1.16.0 Date: Fri, 20 Mar 2020 13:37:50 +0000 Message-ID: <20200320133751.2861-1-michael.tremer@ipfire.org> In-Reply-To: <073c253b-ced9-e92f-2b91-ced6d1043c6b@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2527004889607750104==" List-Id: --===============2527004889607750104== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This updates the package and adds a patch so that it compiles with binutils 2.34. Signed-off-by: Michael Tremer --- config/rootfiles/common/cairo | 11 +++++------ lfs/cairo | 5 +++-- src/patches/cairo-1.16.0-binutils-2.34.patch | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 src/patches/cairo-1.16.0-binutils-2.34.patch diff --git a/config/rootfiles/common/cairo b/config/rootfiles/common/cairo index 12934cead..7cbb434d1 100644 --- a/config/rootfiles/common/cairo +++ b/config/rootfiles/common/cairo @@ -15,23 +15,21 @@ #usr/lib/cairo/libcairo-trace.a #usr/lib/cairo/libcairo-trace.la #usr/lib/cairo/libcairo-trace.so -usr/lib/cairo/libcairo-trace.so.0 -usr/lib/cairo/libcairo-trace.so.0.0.0 #usr/lib/libcairo-gobject.a #usr/lib/libcairo-gobject.la #usr/lib/libcairo-gobject.so usr/lib/libcairo-gobject.so.2 -usr/lib/libcairo-gobject.so.2.11400.8 +usr/lib/libcairo-gobject.so.2.11600.0 #usr/lib/libcairo-script-interpreter.a #usr/lib/libcairo-script-interpreter.la #usr/lib/libcairo-script-interpreter.so usr/lib/libcairo-script-interpreter.so.2 -usr/lib/libcairo-script-interpreter.so.2.11400.8 +usr/lib/libcairo-script-interpreter.so.2.11600.0 #usr/lib/libcairo.a #usr/lib/libcairo.la #usr/lib/libcairo.so usr/lib/libcairo.so.2 -usr/lib/libcairo.so.2.11400.8 +usr/lib/libcairo.so.2.11600.0 #usr/lib/pkgconfig/cairo-fc.pc #usr/lib/pkgconfig/cairo-ft.pc #usr/lib/pkgconfig/cairo-gobject.pc @@ -65,6 +63,7 @@ usr/lib/libcairo.so.2.11400.8 #usr/share/gtk-doc/html/cairo/cairo-Regions.html #usr/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html #usr/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +#usr/share/gtk-doc/html/cairo/cairo-Tags-and-Links.html #usr/share/gtk-doc/html/cairo/cairo-Transformations.html #usr/share/gtk-doc/html/cairo/cairo-Types.html #usr/share/gtk-doc/html/cairo/cairo-User-Fonts.html @@ -92,13 +91,13 @@ usr/lib/libcairo.so.2.11400.8 #usr/share/gtk-doc/html/cairo/index-1.10.html #usr/share/gtk-doc/html/cairo/index-1.12.html #usr/share/gtk-doc/html/cairo/index-1.14.html +#usr/share/gtk-doc/html/cairo/index-1.16.html #usr/share/gtk-doc/html/cairo/index-1.2.html #usr/share/gtk-doc/html/cairo/index-1.4.html #usr/share/gtk-doc/html/cairo/index-1.6.html #usr/share/gtk-doc/html/cairo/index-1.8.html #usr/share/gtk-doc/html/cairo/index-all.html #usr/share/gtk-doc/html/cairo/index.html -#usr/share/gtk-doc/html/cairo/index.sgml #usr/share/gtk-doc/html/cairo/language-bindings.html #usr/share/gtk-doc/html/cairo/left-insensitive.png #usr/share/gtk-doc/html/cairo/left.png diff --git a/lfs/cairo b/lfs/cairo index 0d28b5405..082cc4edd 100644 --- a/lfs/cairo +++ b/lfs/cairo @@ -24,7 +24,7 @@ =20 include Config =20 -VER =3D 1.14.8 +VER =3D 1.16.0 =20 THISAPP =3D cairo-$(VER) DL_FILE =3D $(THISAPP).tar.xz @@ -40,7 +40,7 @@ objects =3D $(DL_FILE) =20 $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) =20 -$(DL_FILE)_MD5 =3D 4ef0db2eacb271c74f8a3fd87822aa98 +$(DL_FILE)_MD5 =3D f19e0353828269c22bd72e271243a552 =20 install : $(TARGET) =20 @@ -70,6 +70,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/cairo-1.16.0-binutils-= 2.34.patch cd $(DIR_APP) && ./configure --prefix=3D/usr \ --disable-win32 --disable-os2 --disable-beos cd $(DIR_APP) && make $(MAKETUNING) diff --git a/src/patches/cairo-1.16.0-binutils-2.34.patch b/src/patches/cairo= -1.16.0-binutils-2.34.patch new file mode 100644 index 000000000..03daac0ec --- /dev/null +++ b/src/patches/cairo-1.16.0-binutils-2.34.patch @@ -0,0 +1,20 @@ +--- a/util/cairo-trace/lookup-symbol.c ++++ b/util/cairo-trace/lookup-symbol.c +@@ -145,14 +145,14 @@ find_address_in_section (bfd *abfd, + if (symbol->found) + return; +=20 +- if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) =3D=3D 0) ++ if ((bfd_section_flags (section) & SEC_ALLOC) =3D=3D 0) + return; +=20 +- vma =3D bfd_get_section_vma (symtab->bfd, section); ++ vma =3D bfd_section_vma (section); + if (symbol->pc < vma) + return; +=20 +- size =3D bfd_section_size (symtab->bfd, section); ++ size =3D bfd_section_size (section); + if (symbol->pc >=3D vma + size) + return; +=20 --=20 2.20.1 --===============2527004889607750104==--