Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

honor alien_provides_* on system install #131

Merged
merged 2 commits into from Jul 8, 2015
Merged

honor alien_provides_* on system install #131

merged 2 commits into from Jul 8, 2015

Conversation

plicease
Copy link
Contributor

@plicease plicease commented Jul 1, 2015

alien_provides_cflags and alien_provides_libs aren't honored currently when the library is provided by the system (either with or without pkg-config). This PR will fix that. I have a test for the builder itself. I have tested this with

https://github.com/plicease/Alien-Libbz2

To ensure that it also works once installed. I will add that to the travis for AB so that we can catch any regressions there.

@plicease
Copy link
Contributor Author

plicease commented Jul 2, 2015

The first commit worked on OS X with PkgConfig.pm but was failing on Linux with a real pkg-config.

You can see the failure here:

https://travis-ci.org/plicease/Alien-Base/builds/69209383

The second commit makes it work with a real pkg-config.

I verified it with a travis branch:

https://travis-ci.org/plicease/Alien-Base/builds/69229344

I will update .travis.yml to test with Alien::Libbz2 once the next release of AB makes it to cpan, and I can put Alien::Libbz2 on CPAN.

@plicease plicease mentioned this pull request Jul 6, 2015
On OS X with PkgConfig.pm it was sufficient to augment the pkg-config
output.  On Linux with a real pkg-config we need to ignore failures
in order to fallback on alien_provides_*
@plicease plicease merged commit da4632c into Perl5-Alien:master Jul 8, 2015
@plicease plicease deleted the alien_provides_system_install branch July 13, 2015 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant