Gor ony writes:

« HTML content follows »

OK, now I'm quite confused.
 
[pclark@c3po x86_64]$ rpm -q --showrc courier-imap-4.12.0-1.18.x86_64.rpm | grep umask
  umask 022
[pclark@c3po x86_64]$

[pclark@c3po downloads.courier]$ rpmbuild -ta courier-imap-4.12.0.tar.bz2
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0tOD6K
+ umask 022
+ cd /home/pclark/rpm/BUILD
+ cd /home/pclark/rpm/BUILD
+ rm -rf courier-imap-4.12.0
+ /usr/bin/bzip2 -dc /home/pclark/downloads.courier/courier- imap-4.12.0.tar.bz2
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd courier-imap-4.12.0
(rest of build).
 


But it's still drwxr-x--- bin:bin for the output rpm. What else would set it that way?

The explicit command that creates the installation directory. umask is just the default umask, and you've verified that the default umask is set correctly.

It's later down the road when the installation image for the package gets prepared, as everything that goes into a package gets installed into a temporary directory. Something like this:

make  install-exec-am install-data-am
make[2]: Entering directory `/home/mrsam/src/courier-imap'
:
list='imapd pop3d maildirmake maildiracl deliverquota maildirkw'; test -n "/usr/lib/courier-imap/bin" || list=; \
if test -n "$list"; then \
 echo " /usr/bin/mkdir -p '/tmp/inst-root/usr/lib/courier-imap/bin'"; \
 /usr/bin/mkdir -p "/tmp/inst-root/usr/lib/courier-imap/bin" || exit 1; \
fi; \


With the default umask, and mkdir -p, this should set the permissions correctly. But the actual command that gets executed, to create the bin directory, might be something else, it's set up by the configure script. Perhaps, in your case, it's using install-sh, or something else.

In any case, this is not some unknown, deep mystery. File permissions don't just get set up randomly, on a whim. There must be a reason for that, and it's just that matter of tracking it down.

Attachment: pgpg_05jUWB4z.pgp
Description: PGP signature

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to