Ticket #3187 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

ghc-pkg -f new.package.conf register foo.conf fails if new.package.conf does not exist.

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

Description

In GHC 6.1.0.2, ghc-pkg -f new.package.conf register foo.conf, fails if new.package.conf does not exist. In GHC 6.10.1 this worked fine. Not sure if this change is a bug or feature.

Change History

follow-up: ↓ 2   Changed 4 years ago by igloo

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to invalid

Thanks for the report. In this case it's a feature; from the release notes:

ghc-pkg will now complain if told to use a package.conf that doesn't exist.

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

  • status changed from closed to reopened
  • resolution invalid deleted

Replying to igloo:

Thanks for the report. In this case it's a feature;

Although the point of the feature was to fail when trying to read from a non-existent package db. I don't think we considered the case of writing to a non-existent db. (Though I thought that did not work previously anyway, I thought dbs had to be initialised to contain "[]".)

  Changed 4 years ago by simonmar

  • component changed from Compiler to Package system

  Changed 4 years ago by simonmar

  • status changed from reopened to closed
  • resolution set to invalid

Just echo "[]" >new.package.conf to initialise new.package.conf.

Note: See TracTickets for help on using tickets.