pkgsrc-WIP-changes archive

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

binutils-gold-git: Fix build of GOLD/NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Oct 30 00:54:17 2017 +0100
Changeset:	7f48d3bc9a27ae54a9fbdb7152fbd4ef322fa1bc

Modified Files:
	binutils-gold-git/Makefile
	binutils-gold-git/PLIST
	binutils-gold-git/distinfo

Log Message:
binutils-gold-git: Fix build of GOLD/NetBSD

Add workaround for timestamp issue in distfile.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7f48d3bc9a27ae54a9fbdb7152fbd4ef322fa1bc

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

diffstat:
 binutils-gold-git/Makefile | 28 ++++++++++-------
 binutils-gold-git/PLIST    | 75 +++++++++++++++-------------------------------
 binutils-gold-git/distinfo |  1 +
 3 files changed, 42 insertions(+), 62 deletions(-)

diffs:
diff --git a/binutils-gold-git/Makefile b/binutils-gold-git/Makefile
index 804929ca8d..eb38599340 100644
--- a/binutils-gold-git/Makefile
+++ b/binutils-gold-git/Makefile
@@ -1,14 +1,14 @@
 # $NetBSD: Makefile,v 1.11 2015/03/15 14:22:19 bsiegert Exp $
 #
 
-DISTNAME=	gold-8.0
+DISTNAME=	binutils-gold-8.0
 CATEGORIES=	devel
-GIT_REPOSITORIES=	gold
-#GIT_REPO.gold=		git://sourceware.org/git/binutils-gdb.git # broken?
-#GIT_REPO.gold=		http://sourceware.org/git/binutils-gdb.git # broken?
-GIT_REPO.gold=		https://github.com/wallento/binutils-gdb.git
-#GIT_DEEP_CLONE.gold=	yes # server dies on shallow clones
-WRKSRC=         ${WRKDIR}/gold
+GIT_REPOSITORIES=	binutils-gold
+#GIT_REPO.binutils-gold=		git://sourceware.org/git/binutils-gdb.git # broken?
+#GIT_REPO.binutils-gold=		http://sourceware.org/git/binutils-gdb.git # broken?
+GIT_REPO.binutils-gold=		https://github.com/wallento/binutils-gdb.git
+#GIT_DEEP_CLONE.binutils-gold=	yes # server dies on shallow clones
+WRKSRC=         ${WRKDIR}/binutils-gold
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://www.gnu.org/software/binutils/
@@ -34,7 +34,7 @@ CONFIGURE_ARGS+=	--disable-gprof
 CONFIGURE_ARGS+=	--enable-gold
 CONFIGURE_ARGS+=	--disable-gas
 CONFIGURE_ARGS+=	--disable-ld
-CONFIGURE_ARGS+=	--enable-targets=all
+#CONFIGURE_ARGS+=	--enable-targets=all
 CONFIGURE_ARGS+=	--disable-gdb
 
 INSTALL_DIRS=		gold
@@ -53,10 +53,16 @@ AUTO_MKDIRS=		yes
 .include "../../mk/bsd.prefs.mk"
 
 # TEST_DEPENDS
-BUILD_DEPENDS+=	dejagnu-[0-9]*:../../devel/dejagnu
+#BUILD_DEPENDS+=	dejagnu-[0-9]*:../../devel/dejagnu
 
-check-base:
-	${RUN}${_ULIMIT_CMD} cd ${TEST_DIRS} && ${TEST_MAKE_CMD} -j1 check TESTS="gdb.base/*.exp"
+#check-base:
+#	${RUN}${_ULIMIT_CMD} cd ${TEST_DIRS} && ${TEST_MAKE_CMD} -j1 check TESTS="gdb.base/*.exp"
+
+# Hack to prevent bogus regeneration of files triggered by timestamp delta
+# between .c/.h file and the original one like .y
+pre-configure:
+	${RUN} find ${WRKSRC} -name '*.c' -exec touch {} \;
+	${RUN} find ${WRKSRC} -name '*.h' -exec touch {} \;
 
 post-install:
 	${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
diff --git a/binutils-gold-git/PLIST b/binutils-gold-git/PLIST
index a15baae570..ad14f8f044 100644
--- a/binutils-gold-git/PLIST
+++ b/binutils-gold-git/PLIST
@@ -1,51 +1,24 @@
-@comment $NetBSD: PLIST.common,v 1.6 2015/03/15 14:22:19 bsiegert Exp $
-bin/gdb
-${PLIST.gcore}bin/gcore
-${PLIST.gdbserver}bin/gdbserver
-include/gdb/jit-reader.h
-info/annotate.info
-info/gdb.info
-info/stabs.info
-man/man1/gdb.1
-man/man1/gdbserver.1
-man/man5/gdbinit.5
-share/gdb/python/gdb/FrameDecorator.py
-share/gdb/python/gdb/FrameIterator.py
-share/gdb/python/gdb/__init__.py
-share/gdb/python/gdb/command/__init__.py
-share/gdb/python/gdb/command/explore.py
-share/gdb/python/gdb/command/frame_filters.py
-share/gdb/python/gdb/command/pretty_printers.py
-share/gdb/python/gdb/command/prompt.py
-share/gdb/python/gdb/command/type_printers.py
-share/gdb/python/gdb/command/unwinders.py
-share/gdb/python/gdb/command/xmethods.py
-share/gdb/python/gdb/frames.py
-share/gdb/python/gdb/function/__init__.py
-share/gdb/python/gdb/function/as_string.py
-share/gdb/python/gdb/function/caller_is.py
-share/gdb/python/gdb/function/strfns.py
-share/gdb/python/gdb/printer/__init__.py
-share/gdb/python/gdb/printer/bound_registers.py
-share/gdb/python/gdb/printing.py
-share/gdb/python/gdb/prompt.py
-share/gdb/python/gdb/types.py
-share/gdb/python/gdb/unwinder.py
-share/gdb/python/gdb/xmethod.py
-share/gdb/syscalls/aarch64-linux.xml
-share/gdb/syscalls/amd64-linux.xml
-share/gdb/syscalls/arm-linux.xml
-share/gdb/syscalls/freebsd.xml
-share/gdb/syscalls/gdb-syscalls.dtd
-share/gdb/syscalls/i386-linux.xml
-share/gdb/syscalls/mips-n32-linux.xml
-share/gdb/syscalls/mips-n64-linux.xml
-share/gdb/syscalls/mips-o32-linux.xml
-share/gdb/syscalls/ppc-linux.xml
-share/gdb/syscalls/ppc64-linux.xml
-share/gdb/syscalls/s390-linux.xml
-share/gdb/syscalls/s390x-linux.xml
-share/gdb/syscalls/sparc-linux.xml
-share/gdb/syscalls/sparc64-linux.xml
-share/gdb/system-gdbinit/elinos.py
-share/gdb/system-gdbinit/wrs-linux.py
+@comment $NetBSD$
+bin/dwp
+bin/ld
+bin/ld.gold
+share/locale/es/LC_MESSAGES/gold.mo
+share/locale/fi/LC_MESSAGES/gold.mo
+share/locale/fr/LC_MESSAGES/gold.mo
+share/locale/id/LC_MESSAGES/gold.mo
+share/locale/it/LC_MESSAGES/gold.mo
+share/locale/ja/LC_MESSAGES/gold.mo
+share/locale/sv/LC_MESSAGES/gold.mo
+share/locale/uk/LC_MESSAGES/gold.mo
+share/locale/vi/LC_MESSAGES/gold.mo
+share/locale/zh_CN/LC_MESSAGES/gold.mo
+x86_64--netbsd/bin/ld
+x86_64--netbsd/bin/ld.gold
+@pkgdir share/gdb/system-gdbinit
+@pkgdir share/gdb/syscalls
+@pkgdir share/gdb/python/gdb/printer
+@pkgdir share/gdb/python/gdb/function
+@pkgdir share/gdb/python/gdb/command
+@pkgdir man/man5
+@pkgdir man/man1
+@pkgdir include/gdb
diff --git a/binutils-gold-git/distinfo b/binutils-gold-git/distinfo
index 090a1cec70..3e415c7a82 100644
--- a/binutils-gold-git/distinfo
+++ b/binutils-gold-git/distinfo
@@ -3,6 +3,7 @@ $NetBSD: distinfo,v 1.10 2015/03/15 14:22:19 bsiegert Exp $
 SHA1 (gdb-7.9.tar.gz) = 8f89aa6847dc87de2f720779a87ba360bdbc7efd
 RMD160 (gdb-7.9.tar.gz) = 939dda771a073e82e7d72fd584246f3d1d8e9bdc
 Size (gdb-7.9.tar.gz) = 33225783 bytes
+SHA1 (patch-bfd_elflink.c) = e91e9c54ce97f32dbfa9e97fcf23afe3ae3b9abd
 SHA1 (patch-gdb_amd64-linux-tdep.c) = 289591103c1c855faa9ad9a05b137693461d8b73
 SHA1 (patch-gdb_arm-tdep.c) = 80b1b0cbc92a48933d2693578d8fe151555edc3b
 SHA1 (patch-gdb_common_common-utils.c) = 52b07c9e85dc7a5b88616a569ea6f45af5d47b07


Home | Main Index | Thread Index | Old Index