Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

craft workaround for gentoo which allows them to generate package.conf file but not register #45

Closed
bos opened this issue May 24, 2012 · 5 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #38, reported by @SyntaxPolice on 2006-01-09)

Currently, cabal can either register a package or generate a script to register the package later. Unfortunitely, gentoo would like to register the package themselves, but we don't generate a package.conf file for them.

A possible solution is to generate a package.conf file at a given location. The problem is that this breaks abstraction from ghc-pkg. Probably will do it anyway.

@ghost ghost assigned SyntaxPolice May 24, 2012
@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2006-01-09)

Yeah, that pretty much sums it up.

At the moment we use this nasty hack:

sed -i 's:ghc-pkg:/usr/bin/true:' .setup-config
./setup register || die "setup register failed"
if [[ -f .installed-pkg-config ]]; then
    do-something-with .installed-pkg-config
fi
That is we call setup register having hacked the ghc-pkg command to be /usr/bin/true. This creates the .installed-pkg-config file which we then stash away and later register it ourselves.

This is obviously relying on the implementation and not on any spec. So if we can make a proper way of getting the package conf file then that'd be great.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by guest on 2006-01-09)

If we're going to do something, we should do it for the next major release

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-05-24)

Done. setup register --gen-pkg-config=... flag added.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by ross on 2007-08-04)

The interface change is not documented in the User's Guide.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-08-23)

Now documented.

@bos bos closed this as completed May 24, 2012
hvr added a commit that referenced this issue Nov 2, 2015
The only change between process 1.3 and 1.4 is:

"Added child_user and child_group to CreateProcess for unix. #45"

And the relevant code in Cabal doesn't seem affected by those additional
members.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants