[haiku-bugs] Re: [Haiku] #11466: Package management: define the install location

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 14 Nov 2014 05:47:21 -0000

#11466: Package management: define the install location
--------------------------------------+----------------------------
   Reporter:  Giova84                 |      Owner:  bonefish
       Type:  enhancement             |     Status:  new
   Priority:  normal                  |  Milestone:  R1
  Component:  Servers/package_daemon  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by bonefish):

 Defining a default installation location would just be confusing IMO, but
 if I understand your argument correctly, you're actually proposing a
 required installation location. We have gone to great length to ensure
 that it is generally possible to build location independent packages. A
 "home" installation location requirement would just encourage incorrectly
 built packages IMO. At least I can't think of any reason why a package
 would need to be installed there other than having hard-coded absolute
 paths to home. Which is something that should fixed rather than worked
 around.

 A "system" installation location requirement could be useful, though. E.g.
 a package with a kernel driver needs to be installed in "system". We do
 already have a system package flag (`B_PACKAGE_FLAG_SYSTEM_PACKAGE`). Its
 semantics is a bit fuzzy. It is [https://dev.haiku-
 
os.org/wiki/PackageManagement/FileFormat#B_HPKG_ATTRIBUTE_ID_PACKAGE_FLAGSpackage:flags
 documented] as indicating a package being installed under "/boot/system".
 HaikuDepot -- the only code that checks it ATM -- interprets it somewhat
 differently, though (as a package that makes up part of the system (and
 thus cannot be uninstalled)). We need to clarify the semantics. If we go
 with the stricter HaikuDepot semantics (stricter because it would also
 imply the installation location), the installation location of a package
 that itself is not a system package could be enforced by declaring a
 system package (e.g. the "haiku" package) as a base package.

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

Other related posts: