Date: Tue, 12 Jan 2010 20:11:21 +0900 (JST) From: Hiroto Kagotani <hiroto.kagotani@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: stas@FreeBSD.org Subject: ports/142743: [PATCH] devel/cross-binutils: installed by *-rtems-gcc(gdb) depedency is not portupgrade-able Message-ID: <201001121111.o0CBBLYK084703@luna3.auto.infsys.cne.okayama-u.ac.jp> Resent-Message-ID: <201001121120.o0CBK3dn034793@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142743 >Category: ports >Synopsis: [PATCH] devel/cross-binutils: installed by *-rtems-gcc(gdb) depedency is not portupgrade-able >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 12 11:20:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Hiroto Kagotani >Release: FreeBSD 7.2-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD myhost.mydomain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #13: Wed Jul 15 11:52:36 JST 2009 >Description: Since *-rtems-binutils are built and installed in devel/cross-binutils while installing *-rtems-gcc(and gdb), +CONTENTS file has an entry of: @comment ORIGIN:devel/cross-binutils . This causes portupgrade cd to devel/cross-binutils and fail in building. Port maintainer (stas@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: * Make sure devel/mips-rtems-binutils is not installed. # cd devel/mips-rtems-gcc # make install # portupgrade devel/mips-rtems-binutils succeeds, but # portupgrade mips-rtems-binutils-2.20 fails with: ** Port marked as IGNORE: devel/cross-binutils: you should define TGTARCH and TGTABI to build port ** Listing the failed packages (-:ignored / *:skipped / !:failed) - devel/cross-binutils (marked as IGNORE) >Fix: The following patch avoids the problem but I'm not sure what this hack was. --- cross-gcc-4.4.2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/cross-gcc.orig/Makefile /usr/ports/devel/cross-gcc/Makefile --- /usr/ports/devel/cross-gcc.orig/Makefile 2009-12-16 10:21:10.000000000 +0900 +++ /usr/ports/devel/cross-gcc/Makefile 2010-01-12 19:25:50.000000000 +0900 @@ -26,17 +26,8 @@ LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4 \ mpfr.3:${PORTSDIR}/math/mpfr -# -# Temporary hack to deal with dependencies during package builds for -# slave ports. -# -.if defined(PACKAGE_BUILDING) BUILD_DEPENDS= ${OURTARGET}-as:${PORTSDIR}/devel/${OURTARGET}-binutils RUN_DEPENDS= ${OURTARGET}-as:${PORTSDIR}/devel/${OURTARGET}-binutils -.else -BUILD_DEPENDS= ${OURTARGET}-as:${PORTSDIR}/devel/cross-binutils -RUN_DEPENDS= ${OURTARGET}-as:${PORTSDIR}/devel/cross-binutils -.endif USE_BZIP2= yes USE_GMAKE= yes --- cross-gcc-4.4.2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001121111.o0CBBLYK084703>