Ticket #3184 (new bug)

Opened 4 years ago

Last modified 9 months ago

package.conf should be under /var, not /usr

Reported by: igloo Owned by:
Priority: low Milestone: 7.6.2
Component: Package system Version: 6.10.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

fhs-2.3 says:

/usr is the second major section of the filesystem. /usr is shareable,
read-only data. That means that /usr should be shareable between various
FHS-compliant hosts and must not be written to. Any information that is
host-specific or varies with time is stored elsewhere.

package.conf is not shareable, as different machines may have different packages installed, so we should put it under /var instead.

Change History

in reply to: ↑ description   Changed 4 years ago by duncan

Replying to igloo:

package.conf is not shareable, as different machines may have different packages installed, so we should put it under /var instead.

Right. Note that the initial/pristine version of the package db could be stored along with ghc in lib. The first time ghc-pkg registers a new global package then the db should be made under /var. Either the pristine one should be copied to /var or the one in /var should extend the pristine one.

The point is, a binary install should still be relocatable. Instllation should not have to create any global db in /var. That can be defered to runtime rather than install time. Like the way ghc-pkg makes the per-user db on demand.

  Changed 4 years ago by simonmar

  • component changed from Compiler to Package system

  Changed 4 years ago by igloo

  • failure set to None/Unknown
  • milestone changed from 6.12.1 to 6.14.1

punting

  Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

  Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

  Changed 21 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1

  Changed 16 months ago by igloo

  • priority changed from normal to low
  • milestone changed from 7.4.1 to 7.6.1

  Changed 9 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.