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

architecture dependand files installed in /usr/share #2

Closed
arekm opened this issue Jul 17, 2014 · 3 comments
Closed

architecture dependand files installed in /usr/share #2

arekm opened this issue Jul 17, 2014 · 3 comments

Comments

@arekm
Copy link

arekm commented Jul 17, 2014

/usr/share is meant for architecture independant files (http://www.pathname.com/fhs/2.2/fhs-4.11.html).

Unfortunately Alien-LibGumbo installs architecture dependand files there, example:

        /usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.a
        /usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.la
        /usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.so
        /usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.so.1
        /usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.so.1.0.0

These should be installed somewhere in /usr/lib64/perl5/vendor_perl/5.18.0/x86_64-pld-linux-thread-multi/ (on my distro) aka in /usr/lib64/...

@plicease
Copy link
Contributor

plicease commented Aug 5, 2015

This is actually an issue with Alien::Base, not Alien::LibGumbo. I attempted to get AB based dists to install in arch directories by default, but could not secure consensus on this. See GitHub issues:

Perl5-Alien/Alien-Base#118
Perl5-Alien/Alien-Base#119

TL;DR: there is an ALIEN_ARCH environment variable that you can set to change the default behavior. This is especially useful for people working in non-homogeneous environments (like AFS) or for linux distribution vendors. However, if you are a distro vendor packager, you should consider using the system library (in which case you will not see arch dependent files in the share directory) instead #3 should make this possible.

For a lot more detail please see my blog on the subject:

http://blogs.perl.org/users/graham_ollis/2015/07/alienbase-system-integrators-vs-cpan-authors.html

If the use of ALIEN_ARCH environment variable seems onerous, please do consider commenting on one of the AB issues above or join us on #native on irc.perl.org, as I may be able to gain consensus for changing the default if more people ask for it.

@ruz
Copy link
Owner

ruz commented Feb 21, 2018

Reopen it if Alien-Base fixed this and I have to do something with the module to get it in sync and fix this.

@ruz ruz closed this as completed Feb 21, 2018
@plicease
Copy link
Contributor

Issue is not with Alien::Base, but with the installer.

The older installer Alien::Base::ModuleBuild installs into lib not arch. I personally did not agree with this approach, but the consensus was to keep the old behavior. Once again, this is not likely to change without user advocacy.

The newer installer alienfile/Alien::Build installs to the arch directory by default (the argument being that most Aliens will be arch dependent, and the newer installer did not have to be backward compatible with AB::MB). There are other advantages to alienfile/Alien::Build like fewer dependencies and the code base is being actively developed rather than in maintenance mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants