SCIENTIFIC-LINUX-DEVEL Archives

June 2008

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dr Andrew C Aitchison <[log in to unmask]>
Reply To:
Dr Andrew C Aitchison <[log in to unmask]>
Date:
Fri, 13 Jun 2008 16:48:59 +0100
Content-Type:
multipart/mixed
Parts/Attachments:
TEXT/PLAIN (826 bytes) , SL_rpm_show_arch.patch (130 bytes)

Whilst updating to 5.2 on a machine with a non default umask
I got caught by an "interesting" problem with the rpm command.

On this the default umask is 066 (user request, but I think I'll
revert to 022 for root). After updating rpm and SL_rpm_show_arch
the rpm command failed with permission problems.

We eventually tracked this down to SL_rpm_show_arch modifying
/usr/lib/rpm/macros in such a way that the permissions are changed
from the default in the package.

Not sure whether to fix this by replacing the mv with cat and rm
or to use the sed -i option.
The untested patch attached illustrates
both options. Note that there are three instances of the problem
in the spec file - %post, %postun, and %triggerin.

-- 
Dr. Andrew C. Aitchison		Computer Officer, DPMMS, Cambridge
[log in to unmask]	http://www.dpmms.cam.ac.uk/~werdna



/home/src/redhat/SPECS /home/src/redhat/SPECS /home/src/redhat/SPECS /home/src/redhat/SPECS /home/src/redhat/SPECS /tmp/werdna ~

ATOM RSS1 RSS2