Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301721 - app-portage/portage-utils-0.3.1 strips executable bit for q-reinitialize upon re-installation
Summary: app-portage/portage-utils-0.3.1 strips executable bit for q-reinitialize upon...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-21 14:32 UTC by Klaus Birkelund Jensen
Modified: 2010-06-08 05:05 UTC (History)
2 users (show)

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


Attachments
Possible patch (portage-utils-0.3.1.ebuild.patch,1.46 KB, patch)
2010-01-21 14:37 UTC, Klaus Birkelund Jensen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Birkelund Jensen 2010-01-21 14:32:07 UTC
portage-utils installs q-reinitialize (/etc/portage/postsync.d) with doins. The executable bit (enabled manually upon first install) is thus discarded when re-installing portage-utils.

Reproducible: Always

Steps to Reproduce:
1. emerge portage-utils
2. chmod +x /etc/portage/postsync.d/q-reinitialize
3. emerge portage-utils

Actual Results:  
+x has been stripped from q-reinitialize.

Expected Results:  
q-reinitialize keeps +x
Comment 1 Klaus Birkelund Jensen 2010-01-21 14:37:03 UTC
Created attachment 217083 [details, diff]
Possible patch

This is a possible (quick'n'dirty) patch. Not sure if I'm using ${ROOT} correctly.
Comment 2 SpanKY gentoo-dev 2010-01-22 04:14:22 UTC
you cant use ROOT in src_*

i'm pretty sure this is a one time issue.  previous ebuilds didnt install the files as part of src_*, but current ones do.
Comment 3 solar (RETIRED) gentoo-dev 2010-01-23 04:00:52 UTC
(In reply to comment #2)
> you cant use ROOT in src_*
Please don't say such things. It's WRONG.
Comment 4 SpanKY gentoo-dev 2010-01-24 21:20:18 UTC
it is not wrong.  you cannot change the contents of $D based on $ROOT otherwise you completely screw up binpkg support.
Comment 5 R. David Murray 2010-02-11 23:19:05 UTC
I want a severity setting called "pain in the ass" to use on this bug.  At least now, having been bitten by it at least twice, I'm remembering to check.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-04-17 06:11:12 UTC
(In reply to comment #2)
> i'm pretty sure this is a one time issue.  previous ebuilds didnt install the
> files as part of src_*, but current ones do.

what do you mean by "one time"?  I can confirm this happens every time portage-utils is emerged.

Comment 7 SpanKY gentoo-dev 2010-06-08 05:05:52 UTC
guess portage changed behavior wrt pushing permission bits on existing files.  ebuild should sync the bits itself now.

http://sources.gentoo.org/app-portage/portage-utils/portage-utils-0.3.1.ebuild?r1=1.2&r2=1.3