View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3858
|
Posted: Sun Sep 22, 2024 10:37 pm Post subject: quickpkg vs emerge --buildpkgonly file rights [fixed] |
|
|
quickpkg does -rw-r----- whereas
emerge --buildpkgonly does -rw-r--r--.
Because here is multiple systems with common -march,
it would be nice if both were doing the same things, preferably chmod o+r here.
since packages build on system A can run on system B.
Only non root user can connect to another system here.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Mon Sep 23, 2024 6:14 am; edited 1 time in total |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 373
|
Posted: Mon Sep 23, 2024 12:39 am Post subject: |
|
|
quickpkg --help wrote: | Code: | --umask UMASK umask used during package creation (default is 0077) |
|
|
|
Back to top |
|
|
eschwartz Developer
Joined: 29 Oct 2023 Posts: 223
|
Posted: Mon Sep 23, 2024 2:09 pm Post subject: |
|
|
Due to hysterical raisins, quickpkg assumes that when you bundle up files that were already installed, some of those files could have secret material in them that is only readable by root and shouldn't actually be in a binpackage at all, so it uses a restrictive umask that emerge --buildpkg doesn't use as a workaround for the bad quickpkg package creation process. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3858
|
Posted: Mon Sep 23, 2024 5:45 pm Post subject: |
|
|
bstaletic,
Nice; from a operational pov the clue seems: Code: | quickpkg --umask 0072 |
eschwartz,
I was expecting such an explanation when I first posted.
That brings complexity to the casual user, imho.
typo raisins -> reasons?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
eschwartz Developer
Joined: 29 Oct 2023 Posts: 223
|
Posted: Mon Sep 23, 2024 6:01 pm Post subject: |
|
|
CaptainBlood wrote: | bstaletic,
Nice; from a operational pov the clue seems: Code: | quickpkg --umask 0072 |
eschwartz,
I was expecting such an explanation when I first posted.
That brings complexity to the casual user, imho.
|
Certainly, and another form of complexity for the casual user is that --include-unmodified-config defaults to NO instead of YES.
That default is apparently because quickpkg cannot know whether the currently installed version of a package was installed from a quickpkg that used --include-config=y with modified configs, meaning there is no way to tell whether a config was actually modified or not.
quickpkg was originally implemented in a mistaken manner and in the grand tradition of the worst kind of "initial problematic design", fixing it would result in a different kind of breakage. That means there is not currently foreseen to be a way to fix the problem and therefore the defaults cannot change.
Call it an "early mover dis-advantage", if you will.
CaptainBlood wrote: |
typo raisins -> reasons?
|
See the variant spelling at http://www.catb.org/esr/jargon/html/H/hysterical-reasons.html |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3858
|
Posted: Mon Sep 23, 2024 7:28 pm Post subject: |
|
|
eschwartz wrote: | Certainly, and another form of complexity for the casual user is that --include-unmodified-config defaults to NO instead of YES. | Thks pointing that out.
Got bitten hard with --include-config activated in alias (e.g. sys-boot/grub), now removed.
This other option seems another story. I'll think over adding it instead.
Thks 4 improving my english.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|