Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2012 03:49:15 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173731: [bsd.ports.mk] Doesn't clean dependency directory if not installed or call reinstall; results in build failure later
Message-ID:  <201211200349.qAK3nFBX017880@red.freebsd.org>
Resent-Message-ID: <201211200350.qAK3o0Yh086628@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173731
>Category:       ports
>Synopsis:       [bsd.ports.mk] Doesn't clean dependency directory if not installed or call reinstall; results in build failure later
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 20 03:50:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.1-PRERELEASE
>Organization:
EMC Isilon
>Environment:
FreeBSD forza.west.isilon.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r240770: Thu Sep 20 19:28:45 PDT 2012     gcooper@forza.west.isilon.com:/usr/obj/usr/src/sys/FORZA  i386
>Description:
I started a build in a chroot with a "tainted" ${WRKSRC} for gmake and instead of it properly installing the package, it noticed that it was missing and kept on going. Example:

===>  Found saved configuration for postgresql-client-9.0.10
===>  Extracting for postgresql-client-9.0.10
=> SHA256 Checksum OK for postgresql/postgresql-9.0.10.tar.bz2.
===>  Patching for postgresql-client-9.0.10
===>  Applying FreeBSD patches for postgresql-client-9.0.10
===>   postgresql-client-9.0.10 depends on executable: gmake - not found
===>    Verifying install for gmake in /usr/ports/devel/gmake
===>   Returning to build of postgresql-client-9.0.10
===>   postgresql-client-9.0.10 depends on shared library: xml2.5 - not found
===>    Verifying install for xml2.5 in /usr/ports/textproc/libxml2
===>  Extracting for libxml2-2.7.8_5
=> SHA256 Checksum OK for gnome2/libxml2-2.7.8.tar.gz.
===>  Patching for libxml2-2.7.8_5
===>  Applying FreeBSD patches for libxml2-2.7.8_5
/usr/bin/find /usr/ports/textproc/libxml2/work/libxml2-2.7.8 -type f -name configure  -exec /bin/sh -c "  mtime=\$(date -r \$(stat -f '%m' \$0) '+%Y%m%d%H%M.%S');  /usr/bin/sed -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g'  -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$0;  touch -mt \$mtime \$0" {} \; || /usr/bin/true
===>   libxml2-2.7.8_5 depends on executable: gmake - not found
===>    Verifying install for gmake in /usr/ports/devel/gmake
===>   Returning to build of libxml2-2.7.8_5

..

configure: creating ./config.status
config.status: creating libxml2.spec
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/libxml/Makefile
config.status: creating doc/Makefile
config.status: creating doc/examples/Makefile
config.status: creating doc/devhelp/Makefile
config.status: creating example/Makefile
config.status: creating python/Makefile
config.status: creating python/tests/Makefile
config.status: creating xstc/Makefile
config.status: creating include/libxml/xmlversion.h
config.status: creating xml2-config
config.status: creating libxml-2.0.pc
config.status: creating libxml-2.0-uninstalled.pc
config.status: creating python/setup.py
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
Done configuring
===>  Building for libxml2-2.7.8_5
env: gmake: No such file or directory
*** [do-build] Error code 1

Stop in /usr/ports/textproc/libxml2.
*** [lib-depends] Error code 1

Stop in /usr/ports/databases/postgresql90-client.
*** [install] Error code 1

Stop in /usr/ports/databases/postgresql90-client.
*** [lib-depends] Error code 1

Stop in /usr/ports/databases/py-PyGreSQL.
>How-To-Repeat:
cd /usr/ports/devel/gmake; make install
# Mount same ports tree in a chroot or over NFS without devel/gmake installed.
cd /usr/ports/textproc/libxml2; make install
>Fix:
If the dependency was not fulfilled for a given package, the port should be cleaned (there's no telling what the port was build for previously, so instead of being smart, it's best to rebuild the port).

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211200349.qAK3nFBX017880>