-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add pkg-config support #47
Conversation
This has several problems in the "Determine some more variables at configure time" commit.
|
Namely LIBDIR, INCDIR and VERSION. Prefix paths with INSTROOT when installing. This is not very useful as is, but will make substituting the variables onto the pkg-config .pc file at configure time possible. Moreover, it will be easier for distributors which use multilib to override LIBDIR on 64-bit systems. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Rename ${DESTDIR} to ${prefix} and only let make expand it. This is basically analogous to what autotools do. It will be useful for generating a proper pkg-config file (where the prefix is called ${prefix} and is expected to be unexpanded). DESTDIR name was used inconsistently with what the rest of the world does (where it modifies the installation prefix, sort of what our ${INSTROOT} does). Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
This makes it convenient for external plugins to determine path to install into. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Thanks. Addressed the review. I've also added one more change. That one is required so that the .pc file is "relocatable" -- the prefix is expanded later and thus can be overridden. That is useful when whoever consumes the file chooses an alternate installation prefix after the build is done (e.g. what autotools' "make distcheck" does when checking sanity of the installation). |
@lkundrak: Can you rebase your PR? |
I'd also vouch for this as maintenance of network-manager-sstp and sstp-client would be easier. |
@enaess: I think the best solution, badly, is to create a new PR... :/ |
@Neustradamus I'll have a look |
This adds pppd.pc into $(INSTROOT)/$(LIBDIR)/pkgconfig. On some distributions this would be /lib/pkgconfig, or /usr/lib/pkgconfig, but other distributions may consider specifying --libdir=/usr/lib/x86_x64-linux-gnu/ and the pkgconfig directory would be under that. Allowing --libdir to be specified at configure time fixes ppp-project#223, providing pkgconfig support fixes ppp-project#19 and allows third party packages pickup the plugin directory. Manually cherry picking parts of two commits by @lkundrak from: https://github.com/NetworkManager/ppp/tree/lr/pkgconfig Mainly, the difference between the original commit is not to replace DESTDIR with "prefix". Leave DESTDIR alone, and add needed pkgconfig (pppd.pc.in) as a part of the linux distribution (previously in pppd/plugin directory). This fixes GitHub issues: ppp-project#19 ppp-project#47 and ppp-project#223 Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
This adds pppd.pc into $(INSTROOT)/$(LIBDIR)/pkgconfig. On some distributions this would be /lib/pkgconfig, or /usr/lib/pkgconfig, but other distributions may consider specifying --libdir=/usr/lib/x86_x64-linux-gnu/ and the pkgconfig directory would be under that. Allowing --libdir to be specified at configure time fixes #223, providing pkgconfig support fixes #19 and allows third party packages pickup the plugin directory. Manually cherry picking parts of two commits by @lkundrak from: https://github.com/NetworkManager/ppp/tree/lr/pkgconfig Mainly, the difference between the original commit is not to replace DESTDIR with "prefix". Leave DESTDIR alone, and add needed pkgconfig (pppd.pc.in) as a part of the linux distribution (previously in pppd/plugin directory). This fixes GitHub issues: #19 #47 and #223 Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
Hello, should this PR be closed now that pkg-config has been merged ? c.f. #270 |
@lkundrak @paulusmack could you please close this PR? |
Hii,
plese review this and consider merging it. It will make it simpler for us to determine the location where to put the NetworkManger pppd plugin.
Thank you!
Lubo