Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105355 - net-print/poster ebuild needs chmod
Summary: net-print/poster ebuild needs chmod
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 117870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-09 03:35 UTC by Marcin Gryszkalis
Modified: 2006-01-14 13:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gryszkalis 2005-09-09 03:35:22 UTC
The directory in tarball is extracted with d--------- rights, so the build fails. 

Reproducible: Always
Steps to Reproduce:





The required change is:

--- /root/poster-0.1.ebuild.oryginal    2005-09-09 06:19:18.000000000 +0200
+++ poster-0.1.ebuild   2005-09-09 06:19:43.000000000 +0200
@@ -16,6 +16,7 @@

 src_unpack() {
        unpack ${A}
+       chmod u+rwx ./poster
        cd ${S}
        tar -zxf ./poster.tar.gz || die "tar failed"
 }
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-09 13:30:05 UTC
It installed fine for me.  Maybe the tarball was updated?  Try removing it from
$DISTDIR and re-emerging?
Comment 2 Marcin Gryszkalis 2005-09-09 14:42:21 UTC
Wouldn't it fail on md5 check if the tarball was changed?

hq distfiles # md5sum poster.tgz
cbd9368cf632bc56e1a7d5c80a82c659  poster.tgz

hq distfiles # tar -tzvf poster.tgz
d--------- root/other        0 2000-09-14 11:07:44 poster/
-rw-r--r-- root/other    21547 1995-09-27 17:02:47 poster/poster.tar.gz
-rw-r--r-- root/other     2414 1995-09-20 11:41:40 poster/getopt.c
-rw-r--r-- root/other     3783 1995-09-21 09:52:35 poster/README
-rw-r--r-- root/other    38128 1995-09-28 15:16:34 poster/poster.exe
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-09 14:46:46 UTC
Not if you haven't sync'd since they updated it.
Comment 4 Marcin Gryszkalis 2005-09-10 00:54:59 UTC
In this case oryginal tarball is really old (~1999?). Can you check md5sum on
your tgz and check the contents?
Comment 5 steveb 2005-10-09 16:02:42 UTC
I have exactly the same issue with the ebuild as Marcin Gryszkalis. I resynced 
the portage and deleted the file from the distfiles, but the problem still 
stays. 
Comment 6 Marcin Gryszkalis 2005-10-11 04:22:29 UTC
The patch I posted in comment is working (steve - maybe you could test it and
confirm) - couldn't someone commit it?
Comment 7 Andrzej 2005-10-30 01:52:04 UTC
I can confirm that I see the same thing on my notebook (as of Oct 30, synced today).
Comment 8 Paul Worrall 2005-12-07 14:49:10 UTC
You see this problem only if you have the userpriv feature selected 
Comment 9 steveb 2005-12-29 18:45:21 UTC
Disabling userpriv helps :)
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-01-05 04:14:26 UTC
*** Bug 117870 has been marked as a duplicate of this bug. ***
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-14 13:18:01 UTC
thanks, I added the chmod to the ebuild