staging without root privileges

Anton Shterenlikht mexas at bris.ac.uk
Thu May 15 08:06:18 UTC 2014


>
>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



More information about the freebsd-ports mailing list