staging without root privileges

Baptiste Daroussin bapt at FreeBSD.org
Thu May 15 11:26:59 UTC 2014


On Thu, May 15, 2014 at 09:05:46AM +0100, Anton Shterenlikht wrote:
> >
> >Am 14.05.2014 17:51, schrieb Baptiste Daroussin:
> >
> >> Add USES=uidfix it should do the magic :)
> >
> >...added a note to the wiki ports/StageDir...
> 
> doesn't work for me:
> 
> without USES=uidfix:
> 
> ===>   slatec-4.1_2 depends on executable: gfortran47 - found
> ===>   Generating temporary packing list
> install -C -o root -g wheel -m 444   libslatec.a /tmp/usr/ports/math/slatec/work/stage/usr/local/lib
> install: /tmp/usr/ports/math/slatec/work/stage/usr/local/lib/libslatec.a: chown/chgrp: Operation not permitted
> *** Error code 71
> 
> with USES=uidfix:
> 
> $ make WRKDIRPREFIX=/tmp PACKAGES=/tmp clean all stage plist-check package
> ===>  Cleaning for slatec-4.1_2
> ===>  Found saved configuration for slatec-4.1_2
> ===>   slatec-4.1_2 depends on file: /usr/local/sbin/pkg - found
> ===> Fetching all distfiles required by slatec-4.1_2 for building
> ===>  Extracting for slatec-4.1_2
> => SHA256 Checksum OK for slatec/guide.
> => SHA256 Checksum OK for slatec/slatec_chk.tgz.
> => SHA256 Checksum OK for slatec/slatec_src.tgz.
> => SHA256 Checksum OK for slatec/toc.
> => SHA256 Checksum OK for slatec/d1mach.f.
> => SHA256 Checksum OK for slatec/i1mach.f.
> => SHA256 Checksum OK for slatec/r1mach.f.
> ===>  Patching for slatec-4.1_2
> ===>  Configuring for slatec-4.1_2
> ===>  Building for slatec-4.1_2
> --- objwarn ---
> --- aaaaaa.po ---
> --- objwarn ---
> Warning: Object directory not changed from original /tmp/usr/ports/math/slatec/work/src
> --- acosh.po ---
> --- aaaaaa.po ---
> f77 -pg -O -o aaaaaa.po -c aaaaaa.f
> f77: not found
> --- acosh.po ---
> f77 -pg -O -o acosh.po -c acosh.f
> --- aaaaaa.po ---
> *** [aaaaaa.po] Error code 127
> 
> make[2]: stopped in /tmp/usr/ports/math/slatec/work/src
> --- acosh.po ---
> f77: not found
> 
> From the Makefile:
> 
> USES=           fortran
> USE_LDCONFIG=   yes
> WRKSRC=         ${WRKDIR}/src
> SHLIB_MAJOR=    1
> 
> USES=           uidfix
> 
> Anton

You USES=uidfix is overwriting USES=fortran so it doesn't find the compiler, you
want to append it.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140515/913156b2/attachment.sig>


More information about the freebsd-ports mailing list