-
Notifications
You must be signed in to change notification settings - Fork 2
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
Messed '%s' value #12
Comments
Indeed To get the original behavior you can set The recommend route if you need to run |
1.07 has both the documentation and the bug fix. |
This use alienfile;
use Config;
plugin 'PkgConfig' => (
pkg_name => 'MagickWand',
);
share {
start_url 'http://www.imagemagick.org/download/ImageMagick.tar.gz';
plugin 'Download';
plugin 'Extract' => format => 'tar.gz';
my $use_threads = $Config{usethreads} ? '' : '--without-threads';
my $enable_shared = ( ( $Config{useshrplib} || '' ) eq 'false' ) ? '' : '--enable-shared';
meta->prop->{env_interpolate} = 1;
meta->prop->{env}->{LDFLAGS} = "-L%{perl.config.archlib}/CORE";
plugin 'Build::Autoconf';
build [
"%{configure} --with-perl=%{perl} $enable_shared $use_threads",
'%{make}',
'%{make} install',
];
}; |
Hi. |
I suppose different variable name would have been possible, and might have been a little more clear. It's really change in behavior though, and the old behavior was problematic. The fact that that part of the documentation didn't get updated was an oversight.
👍 great. |
Hi
Accordingly with the docs,
%s
is "The full path to the final installed location of the share directory (builder method alien_library_destination). This is where the library should install itself; for autoconf style installs this will look like".Nevertheless, I am getting:
./configure --prefix=/root/.cpanm/work/1574460480.32178/Alien-ImageMagick-0.07/blib/lib/auto/share/dist/Alien-ImageMagick ...
And of course that doesn't make sense.
Although the resulting files get installed in the proper place (as blib is copied) the C code from the library is configured with this specific path hardcoded, and when running, it will search for that path to get its dependencies.
Is there something I might be missing? Or is it a bug and can be fixed?
Thanks
The text was updated successfully, but these errors were encountered: