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

Should not create empty directories in setup install/copy #89

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

Should not create empty directories in setup install/copy #89

bos opened this issue May 24, 2012 · 2 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #97, reported by @dcoutts on 2006-10-31)

When installing a library, in this case MissingH 0.16, I get the error:

ghc-pkg: /opt/local/lib/MissingH-0.16.0/ghc-6.6/include doesn't exist or isn't a directory (use --force to override)
Error: Target com.apple.activate returned: shell command "/opt/local/libexec/missingh/register.sh" returned error 1
Command output: Reading package info from stdin ... done.
ghc-pkg: /opt/local/lib/MissingH-0.16.0/ghc-6.6/include doesn't exist or isn't a directory (use --force to override)
Warning: the following items did not execute (for missingh):
com.apple.activate
Error: Status 1 encountered during processing.
(the above is the output of the `MacPorts?` portfile.)

The problem is that when the build is staged into a temporary
location so the files can be inventoried, an empty directory,
<prefix>/lib/MissingH-0.16.0/ghc-6.6/include is created. MacPorts?
deletes this empty directory (along with a number of other unused
directories it creates in the staging process). The registration
process requires the empty directory to be present and fails, as shown above, if it is not.

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

bos commented May 24, 2012

(Imported comment by ross on 2006-10-31)

It is untidy of Cabal to create an unnecessary directory, but it is clearly a bug for MacPorts? to remove a directory it did not create.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-02-25)

The include dir will now only be made and noted in the package registration info if we actually install some include files.

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