Bug 22039

Summary: /usr/ports/devel/commoncpp only builds as root
Product: Ports & Packages Reporter: jay.krell <jay.krell>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description jay.krell 2000-10-17 07:50:01 UTC
===>  Building for CommonC++-1.2.1_1
Making all in posix
gmake[1]: Entering directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/posix'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/posix'
Making all in common
gmake[1]: Entering directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/common'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/common'
gmake[1]: Entering directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1'
gmake  prefix=/usr/ports/devel/commoncpp/work/CommonC++-1.2.1 install-exec install-data
gmake[2]: Entering directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1'
Making install-exec in posix
gmake[3]: Entering directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/posix'
/bin/sh ../config/mkinstalldirs /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib
/bin/sh ../libtool  --mode=install /usr/bin/install -c -o root -g wheel libccxx.la /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccxx.la
/usr/bin/install -c -o root -g wheel .libs/libccxx.so.0 /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccxx.so.0
install: /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccxx.so.0: chown/chgrp: Operation not permitted
/bin/sh ../libtool  --mode=install /usr/bin/install -c -o root -g wheel libccio.la /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccio.la
/usr/bin/install -c -o root -g wheel .libs/libccio.so.0 /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccio.so.0
install: /usr/ports/devel/commoncpp/work/CommonC++-1.2.1/lib/libccio.so.0: chown/chgrp: Operation not permitted
gmake[3]: *** [install-libLTLIBRARIES] Error 71
gmake[3]: Leaving directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1/posix'
gmake[2]: *** [install-exec-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1'
gmake[1]: *** [all-local] Error 2
gmake[1]: Leaving directory `/usr/ports/devel/commoncpp/work/CommonC++-1.2.1'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/devel/commoncpp.
*** Error code 1

Stop in /usr/ports/devel/commoncpp.
*** Error code 1

Stop in /usr/ports/devel/commoncpp.

Fix: 

I haven't looked at many other ports to know if this is obvious, but if you 
cd work/C*
grep root *

you see they use install -o root -g wheel and I think the port, like, installs into the work dir during build, which judging by the path .libs, I think is normal. So the fix I think might be to patch their files to remove the -o root -g wheel. Then I don't know if real install works, if it requires those.
How-To-Repeat: cd /usr/ports/devel/commoncpp
chown -R notroot:notroot *
make
Comment 1 Steve Price freebsd_committer freebsd_triage 2001-02-26 02:57:36 UTC
State Changed
From-To: open->closed

There a number of ports like this in the tree.  Please work up a patch 
that fixes it or take up the problem with the developers of this software 
as this really isn't a FreeBSD-specific issue.  Thanks.