[haiku-bugs] Re: [Haiku] #11502: Package management: implement the ability to write data out of read only directories

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 22 Nov 2014 19:13:39 -0000

#11502: Package management: implement the ability to write data out of read only
directories
--------------------------------------+----------------------------
   Reporter:  Giova84                 |      Owner:  bonefish
       Type:  enhancement             |     Status:  closed
   Priority:  low                     |  Milestone:  R1
  Component:  Servers/package_daemon  |    Version:  R1/Development
 Resolution:  no change required      |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  x86
--------------------------------------+----------------------------
Changes (by bonefish):

 * status:  new => closed
 * resolution:   => no change required


Comment:

 Replying to [ticket:11502 Giova84]:
 > Well, currently when we install a package, the only way to write data
 out of the read only directories, atm, is to rely on post_install scripts.

 Global settings/configuration files can be written using the "global-
 writable-file". E.g. cf. the "man" package.

 > In this page [https://dev.haiku-os.org/wiki/PackageManagement/TODO] I've
 read that someday the package system will get rid of these post_install
 scripts,

 That is not what the TODO item means. It refers to the post_install
 scripts that the Haiku build system installs ("default_deskbar_items.sh"
 and "add_catalog_entry_attributes.sh"). Those tasks can be performed by
 the build system and shouldn't use post_install scripts at all.

 > and I agree: would be a better and more clean way achieve this ability
 (write data out of read only directories) in the structure of HPKG's
 files. There is some task about?
 > As reference I have seen this similar ticket #10025 which is about
 Desktop symlinks (in that ticket i read about "allow the desktop directory
 to be replaced with a virtual directory") , but would be also useful (for
 those which, eg like TTcoder, prepare packages/OEM installations for
 customers) implementing this ability for any other directory. Eg, to
 mention some of these, to "/boot/home/config/settings/Tracker/Tracker New
 Templates." or "/boot/home/config/settings/boot/launch"
 > I also do something similar as TTcoder does, since I work in IT support
 (and I'm waiting for Haiku R1B1 to start to promote a little bit more this
 nice OS).
 > For some OEM installations, there would be the necessity to supply
 everything as default, for some particular situations and customers, to
 provide them a system which is ready to use, also in terms of
 applications, settings and behaviour.

 I don't really see what this has to do with packages at all. When
 creating/customizing the image for the customer, you can just copy the
 settings and other data, create desktop symlinks, etc. at your heart's
 desire. If you really need to provide you customization via a package (for
 whatever reason) you can use the post_install script mechanism (it won't
 go away anytime soon, respectively will only be replaced by an at least
 equally powerful mechanism).

--
Ticket URL: <https://dev.haiku-os.org/ticket/11502#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: