pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/binutils



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue May  5 10:06:10 UTC 2020

Modified Files:
        pkgsrc/devel/binutils: Makefile PLIST.common distinfo
        pkgsrc/devel/binutils/patches: patch-configure
Added Files:
        pkgsrc/devel/binutils/patches: patch-binutils_Makefile.in
Removed Files:
        pkgsrc/devel/binutils/patches: patch-bfd_configure.ac
            patch-configure.ac

Log Message:
binutils: Handle broken 2.34 release without docs.

The binutils project released the binutils-2.34 tarball without pre-generated
documentation included due to a bug in their Makefiles.  This was fixed in the
source code 2 months ago, but they still have not issued a new tarball since
then, either via a new release or a snapshot.

Building the documentation ourselves is untenable, as it would require pulling
in perl and gtexinfo which would create major circular dependency headaches.

So we're left with no option but to remove the documentation completely until
there is a new release.  Note that until now we've actually been shipping
empty files, as we were ignoring perl errors that were trying to create the
docs.

While here tidy up a few things.  Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 pkgsrc/devel/binutils/Makefile
cvs rdiff -u -r1.30 -r1.31 pkgsrc/devel/binutils/PLIST.common
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/binutils/distinfo
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/binutils/patches/patch-bfd_configure.ac
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/binutils/patches/patch-binutils_Makefile.in
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/binutils/patches/patch-configure
cvs rdiff -u -r1.3 -r0 pkgsrc/devel/binutils/patches/patch-configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/binutils/Makefile
diff -u pkgsrc/devel/binutils/Makefile:1.81 pkgsrc/devel/binutils/Makefile:1.82
--- pkgsrc/devel/binutils/Makefile:1.81 Sun May  3 13:02:18 2020
+++ pkgsrc/devel/binutils/Makefile      Tue May  5 10:06:10 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.81 2020/05/03 13:02:18 rillig Exp $
+# $NetBSD: Makefile,v 1.82 2020/05/05 10:06:10 jperkin Exp $
 
 DISTNAME=      binutils-2.34
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=binutils/}
 EXTRACT_SUFX=  .tar.bz2
@@ -18,7 +18,7 @@ REPLACE_LOCALEDIR_PATTERNS+=  Make-in
 
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
-USE_TOOLS+=            gmake makeinfo
+USE_TOOLS+=            gmake
 
 # PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
 .include "../../mk/bsd.prefs.mk"
@@ -40,7 +40,6 @@ LIB_PATH:=            /lib64:${LIB_PATH}
 .endif
 CONFIGURE_ARGS+=       --with-lib-path=${LIB_PATH}
 CONFIGURE_ARGS+=       --program-prefix=g
-CONFIGURE_ENV+=                ac_cv_prog_PERL= # not needed
 BINUTILS_PREFIX=       ${PREFIX}/${MACHINE_GNU_PLATFORM}
 
 PLIST_SRC=     ${PKGDIR}/PLIST.common
@@ -98,16 +97,6 @@ CFLAGS+=     -Wno-unused-value -Wno-format-s
 CONFIGURE_ARGS+=       --disable-werror
 .endif
 
-# Prevent the need to run texi2pod.pl and pod2man which would
-# require perl as a build dependency.
-post-configure:
-.for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi gas/doc/as.1
-       set -e; \
-       if [ -f ${WRKSRC}/${f} ]; then                                  \
-               ${TOUCH} ${WRKSRC}/${f};                                \
-       fi
-.endfor
-
 SYMLINK_FILES= addr2line ar as c++filt dlltool elfedit ld.bfd          \
                nlmconv nm objcopy objdump ranlib readelf size strings  \
                strip windmc windres

Index: pkgsrc/devel/binutils/PLIST.common
diff -u pkgsrc/devel/binutils/PLIST.common:1.30 pkgsrc/devel/binutils/PLIST.common:1.31
--- pkgsrc/devel/binutils/PLIST.common:1.30     Tue Mar 10 19:01:31 2020
+++ pkgsrc/devel/binutils/PLIST.common  Tue May  5 10:06:10 2020
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.30 2020/03/10 19:01:31 bacon Exp $
+@comment $NetBSD: PLIST.common,v 1.31 2020/05/05 10:06:10 jperkin Exp $
 ${MACHINE_GNU_PLATFORM}/bin/ar
 ${MACHINE_GNU_PLATFORM}/bin/as
 ${MACHINE_GNU_PLATFORM}/bin/ld
@@ -46,24 +46,9 @@ gnu/bin/readelf
 gnu/bin/size
 gnu/bin/strings
 gnu/bin/strip
-gnu/man/man1/addr2line.1
-gnu/man/man1/ar.1
 gnu/man/man1/as.1
-gnu/man/man1/c++filt.1
-gnu/man/man1/dlltool.1
-gnu/man/man1/elfedit.1
 ${PLIST.gprof}gnu/man/man1/gprof.1
 ${PLIST.ld}gnu/man/man1/ld.1
-gnu/man/man1/nm.1
-gnu/man/man1/objcopy.1
-gnu/man/man1/objdump.1
-gnu/man/man1/ranlib.1
-gnu/man/man1/readelf.1
-gnu/man/man1/size.1
-gnu/man/man1/strings.1
-gnu/man/man1/strip.1
-gnu/man/man1/windmc.1
-gnu/man/man1/windres.1
 include/ansidecl.h
 include/bfd.h
 include/bfd_stdint.h
@@ -76,31 +61,15 @@ include/plugin-api.h
 include/symcat.h
 info/as.info
 info/bfd.info
-info/binutils.info
 ${PLIST.gprof}info/gprof.info
 info/ld.info
 lib/libbfd.la
 ${PLIST.CTF}lib/libctf-nobfd.la
 ${PLIST.CTF}lib/libctf.la
 lib/libopcodes.la
-man/man1/gaddr2line.1
-man/man1/gar.1
 man/man1/gas.1
-man/man1/gc++filt.1
-man/man1/gdlltool.1
-man/man1/gelfedit.1
 ${PLIST.gprof}man/man1/ggprof.1
 man/man1/gld.1
-man/man1/gnm.1
-man/man1/gobjcopy.1
-man/man1/gobjdump.1
-man/man1/granlib.1
-man/man1/greadelf.1
-man/man1/gsize.1
-man/man1/gstrings.1
-man/man1/gstrip.1
-man/man1/gwindmc.1
-man/man1/gwindres.1
 share/locale/bg/LC_MESSAGES/binutils.mo
 ${PLIST.gprof}share/locale/bg/LC_MESSAGES/gprof.mo
 share/locale/bg/LC_MESSAGES/ld.mo

Index: pkgsrc/devel/binutils/distinfo
diff -u pkgsrc/devel/binutils/distinfo:1.31 pkgsrc/devel/binutils/distinfo:1.32
--- pkgsrc/devel/binutils/distinfo:1.31 Wed Feb  5 06:18:34 2020
+++ pkgsrc/devel/binutils/distinfo      Tue May  5 10:06:10 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2020/02/05 06:18:34 rillig Exp $
+$NetBSD: distinfo,v 1.32 2020/05/05 10:06:10 jperkin Exp $
 
 SHA1 (binutils-2.34.tar.bz2) = 361566c9ab5e90bd847d06f46fb9f18ec6c3ecf0
 RMD160 (binutils-2.34.tar.bz2) = e99f517407503cec1042a2e824b7c1f8f0fca4b8
@@ -7,9 +7,8 @@ Size (binutils-2.34.tar.bz2) = 32430470 
 SHA1 (patch-bfd_cache.c) = 20988e84ff2a1d7ff83b5adb04e4f117953205b8
 SHA1 (patch-bfd_config.bfd) = 4525214f9e7debd5cccaf1af55d04c1a5ff7a42d
 SHA1 (patch-bfd_configure) = 37777852c63bb5b13c76f4085f1e43d50ce88920
-SHA1 (patch-bfd_configure.ac) = 742e4c118f6a00b646799862172ffa70a867cf0f
-SHA1 (patch-configure) = 0adf4ebf23385ca67b32655d23dd21204d2a4618
-SHA1 (patch-configure.ac) = b2cb10dafcabf0b743ae0c241fed2f226bc759ab
+SHA1 (patch-binutils_Makefile.in) = a24f0e6a8df05f7241198793124a0eaf9fe676d2
+SHA1 (patch-configure) = 3e518bda9d3ef169f9ebd35061b1c6374f12b406
 SHA1 (patch-gas_configure.tgt) = 3a3a6fde98a457c76b70e74842ce952b0046eeda
 SHA1 (patch-gold_Makefile.in) = be0ec82e1d16c6eae50153d339c8eb29aaca42d0
 SHA1 (patch-gold_options.h) = ea98204c747b2d568e0f5ab7f64cc77c4341a744

Index: pkgsrc/devel/binutils/patches/patch-configure
diff -u pkgsrc/devel/binutils/patches/patch-configure:1.1 pkgsrc/devel/binutils/patches/patch-configure:1.2
--- pkgsrc/devel/binutils/patches/patch-configure:1.1   Wed Feb  5 06:18:34 2020
+++ pkgsrc/devel/binutils/patches/patch-configure       Tue May  5 10:06:10 2020
@@ -1,9 +1,15 @@
-$NetBSD: patch-configure,v 1.1 2020/02/05 06:18:34 rillig Exp $
+$NetBSD: patch-configure,v 1.2 2020/05/05 10:06:10 jperkin Exp $
 
 Remove etc
 
---- configure.orig
+--- configure.orig     2020-01-18 14:01:13.000000000 +0000
 +++ configure
-@@ -2780,1 +2780,1 @@
+@@ -2831,7 +2831,7 @@ host_libs="intl libiberty opcodes bfd re
+ # binutils, gas and ld appear in that order because it makes sense to run
+ # "make check" in that particular order.
+ # If --enable-gold is used, "gold" may replace "ld".
 -host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
 +host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
+ 
+ # these libraries are built for the target environment, and are built after
+ # the host libraries and the host tools (which may be a cross compiler)

Added files:

Index: pkgsrc/devel/binutils/patches/patch-binutils_Makefile.in
diff -u /dev/null pkgsrc/devel/binutils/patches/patch-binutils_Makefile.in:1.1
--- /dev/null   Tue May  5 10:06:11 2020
+++ pkgsrc/devel/binutils/patches/patch-binutils_Makefile.in    Tue May  5 10:06:10 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-binutils_Makefile.in,v 1.1 2020/05/05 10:06:10 jperkin Exp $
+
+binutils-2.34 shipped a broken tarball without pre-generated documentation,
+and we cannot depend on perl and gtexinfo to build it without serious circular
+dependency issues, so until a fixed tarball is released disable the docs.
+
+--- binutils/Makefile.in.orig  2020-05-04 17:27:24.963978676 +0000
++++ binutils/Makefile.in
+@@ -560,7 +560,7 @@ zlibdir = @zlibdir@
+ zlibinc = @zlibinc@
+ AUTOMAKE_OPTIONS = dejagnu no-dist foreign subdir-objects
+ ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
+-SUBDIRS = doc po
++SUBDIRS = po
+ tooldir = $(exec_prefix)/$(target_alias)
+ 
+ # Automake 1.10+ disables lex and yacc output file regeneration if



Home | Main Index | Thread Index | Old Index