Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2006 18:39:20 GMT
From:      Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/100039: linux_base-fc4 not upgradable with portupgrade -s
Message-ID:  <200607101839.k6AIdKoP078212@www.freebsd.org>
Resent-Message-ID: <200607101840.k6AIeGU5089117@freefall.freebsd.org>

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

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



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