Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290036 - net-misc/asterisk should preferably not use recursive chown/chmod on already existing (potentially large) folders
Summary: net-misc/asterisk should preferably not use recursive chown/chmod on already ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 17:21 UTC by Jaco Kroon
Modified: 2009-10-22 14:46 UTC (History)
1 user (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 Jaco Kroon 2009-10-21 17:21:46 UTC
I've got a setup with ~400GB in /var/spool/asterisk/monitor and the recursive chown/chmod on this takes forever.

I would suggest rather installing the folders (and pre-populated files) with the appropriate permissions and ownership in src_install already (insopts and diropts calls where appropriate).

An existing install should already have this correct, and a new install will get it correct from the above.  An upgrade should (preferably) not modify any custom permissions/ownerships that an administrator may have set up.

At a minimum a way to avoid the chmod/own recursive updates in postinst would be very much appreciated (A USE_THE_FORCE_LUKE type of option via environment variable/use flag ... not sure which is the generally accepted correct way of doing this, I've seen both before).

Reproducible: Always

Steps to Reproduce:
.
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2009-10-22 14:46:50 UTC
+*asterisk-1.6.1.6-r1 (22 Oct 2009)
+
+  22 Oct 2009; <chainsaw@gentoo.org> +asterisk-1.6.1.6-r1.ebuild,
+  +files/1.6.1/asterisk-1.6.1.6-fxsks-hookstate.patch,
+  +files/1.6.1/asterisk.initd, -asterisk-1.2.32.ebuild,
+  +files/1.6.1/asterisk-1.6.1.6-transfer-segfault.patch:
+  Revision bump. Init script now depends on dahdi, not zaptel (bug #279436).
+  FXO ports can now carry outbound calls immediately, without requiring an
+  inbound call first (bug #281467) and transferring queue calls no longer
+  segfaults. With thanks to Jaco Kroon. Troublesome H323 support removed due
+  to pwlib dependency in openh323 (bug #290065) and IMAP support removed as
+  it never worked right (bug #265567). Bug reports on either only accepted
+  with patches.