Bug 119175 - rpmbuild -ta constructs srpm with permissions 600 for spec file
Summary: rpmbuild -ta constructs srpm with permissions 600 for spec file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-25 23:05 UTC by Patrice Dumas
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-03-27 23:26:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Patrice Dumas 2004-03-25 23:05:11 UTC
Description of problem:

Doing a rpmbuild -ta on a package. After that running rpmlint on the 
package rpmlint complains that the spec file has permissions 0600.

The spec file in the package has permission 0644:
[pat@localhost src]$ ls -l texi2html-1.70/texi2html.spec
-rw-r--r--  1 pat pat 1652 mar 25 02:06 texi2html-1.70/texi2html.spec

I do a 
[pat@localhost src]$ rpmbuild -ta texi2html-1.70.tar.bz2

It builds fine. Then rpmlint gives:

[pat@localhost src]$ rpmlint
~/rpmbuild/SRPMS/texi2html-1.70-0.fdr.1.src.rpm
E: texi2html no-packager-tag
E: texi2html no-signature
W: texi2html strange-permission texi2html.spec 0600

Version-Release number of selected component (if applicable):

4.3.0-0.22

How reproducible:

Always.

Steps to Reproduce:
1. do a rpmbuild -ta on a package tarball 
2. run rpmlint on the generated sepm
3.
  
Actual results:

W: texi2html strange-permission texi2html.spec 0600

Expected results:

No warning.

Additional info:

Comment 1 Jeff Johnson 2004-03-27 23:26:20 UTC
Fix your umask setting.

Comment 2 Patrice Dumas 2004-04-15 20:29:03 UTC
I may be wrong but it seems to me that my umask setting is right:
[pat@localhost pat]$ umask -S
u=rwx,g=rwx,o=rx
[pat@localhost pat]$ umask
0002




Note You need to log in before you can comment on or make changes to this bug.