ports/100039: linux_base-fc4 not upgradable with portupgrade -s

Stefan Sperling freebsd-gnats at stsp.in-berlin.de
Mon Jul 10 18:40:16 UTC 2006


>Number:         100039
>Category:       ports
>Synopsis:       linux_base-fc4 not upgradable with portupgrade -s
>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:   Mon Jul 10 18:40:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Sperling
>Release:        FreeBSD 6.1-RELEASE-p2
>Organization:
>Environment:
FreeBSD dice.stsp.lan 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #8: Sun Jun 18 01:52:22 CEST 2006     stsp at dice.stsp.lan:/usr/mylocal/obj/usr/src/sys/DICE  i386
>Description:
Running 'portupgrade -sf linux_base-fc-4_6' as user in group wheel with the line '%wheel          ALL = (ALL) NOPASSWD: ALL' in the sudoers file fails with a couple of error messages by brandelf:

brandelf: error opening file /usr/mylocal/workdir/usr/ports/emulators/linux_base-fc4/work/usr/bin/db42_checkpoint: Permission denied

The reason seems to be that some files unpacked from the db42 rpm package are not writable:
[stsp at dice /usr/mylocal/workdir/usr/ports/emulators/linux_base-fc4/work/usr/bin]$ ls -l db*
-r-xr-xr-x  1 stsp  wsrc   6.2K 10 Jul 20:34 db41_archive*
-r-xr-xr-x  1 stsp  wsrc   7.7K 10 Jul 20:34 db41_checkpoint*
etc.



I originally noticed this error while upgrading all my ports with 'portupgrade -saP'. It has been present since the switch from linux_base-8 to linux_base-fc-4.

Upgrading the package as root works fine.
>How-To-Repeat:

>Fix:
Maybe a simple chmod after unpacking the rpm could fix this.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list