mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
perl: add Authen::SASL::XS module
Required by Authen::SASL to have actual plug-ins to handle the protocol. Uses Devel::CheckLib which doesn't work with cross-compilation with the current perlmod.mk machinery. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
--- a/Makefile.PL 2009-09-22 16:22:09.000000000 -0600
|
||||
+++ b/Makefile.PL 2018-01-01 18:54:13.023366252 -0700
|
||||
@@ -1,7 +1,6 @@
|
||||
# Do yourself a favour, and don't edit this file, see README for build instructions
|
||||
|
||||
use ExtUtils::MakeMaker;
|
||||
-use Devel::CheckLib;
|
||||
|
||||
my @inc_search = qw(/opt/local/include /usr/local/include);
|
||||
my @lib_search = qw(/opt/local/lib64 /usr/local/lib64 /opt/local/lib /usr/local/lib);
|
||||
@@ -12,15 +12,7 @@ unless (exists $args{INC} or exists $arg
|
||||
|
||||
my @incpath = grep {-d} @inc_search;
|
||||
my @libpath = grep {-d} @lib_search;
|
||||
- my $have_sasl2 = eval {
|
||||
- assert_lib(
|
||||
- lib => "sasl2",
|
||||
- header => "sasl/sasl.h",
|
||||
- libpath => \@libpath,
|
||||
- incpath => \@incpath
|
||||
- );
|
||||
- 1;
|
||||
- };
|
||||
+ my $have_sasl2 = 1;
|
||||
|
||||
if ($have_sasl2) {
|
||||
$mmopt{DEFINE} = "-DSASL2" unless $use_sasl2;
|
||||
@@ -28,13 +27,6 @@ unless (exists $args{INC} or exists $arg
|
||||
}
|
||||
else {
|
||||
exit(0) if $use_sasl2;
|
||||
- @incpath = grep {-d} map { ("$_/sasl", $_) } @inc_search;
|
||||
- check_lib_or_exit(
|
||||
- lib => "sasl",
|
||||
- header => "sasl.h",
|
||||
- libpath => \@libpath,
|
||||
- incpath => \@incpath
|
||||
- );
|
||||
}
|
||||
|
||||
$mmopt{INC} = join " ", map {"-I$_"} @incpath;
|
||||
@@ -58,7 +50,6 @@ WriteMakefile(
|
||||
repository => 'http://github.com/gbarr/perl-authen-sasl-xs',
|
||||
},
|
||||
build_requires => {
|
||||
- 'Devel::CheckLib' => 0,
|
||||
},
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user