Hello community,
here is the log from the commit of package perl-Config-AutoConf for
openSUSE:Factory checked in at 2018-04-26 13:34:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Config-AutoConf (Old)
and /work/SRC/openSUSE:Factory/.perl-Config-AutoConf.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Config-AutoConf"
Thu Apr 26 13:34:13 2018 rev:11 rq:599328 version:0.316
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Config-AutoConf/perl-Config-AutoConf.changes
2017-08-12 19:42:09.174821434 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Config-AutoConf.new/perl-Config-AutoConf.changes
2018-04-26 13:34:14.552411009 +0200
@@ -1,0 +2,10 @@
+Wed Apr 18 05:06:48 UTC 2018 - [email protected]
+
+- updated to 0.316
+ see /usr/share/doc/packages/perl-Config-AutoConf/Changes
+
+ 0.316 2018-04-12
+ - deal with pkg-config errors
+ - allow more search_lib others
+
+-------------------------------------------------------------------
Old:
----
Config-AutoConf-0.315.tar.gz
New:
----
Config-AutoConf-0.316.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Config-AutoConf.spec ++++++
--- /var/tmp/diff_new_pack.cndlAz/_old 2018-04-26 13:34:15.296383748 +0200
+++ /var/tmp/diff_new_pack.cndlAz/_new 2018-04-26 13:34:15.300383602 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Config-AutoConf
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,11 +17,11 @@
Name: perl-Config-AutoConf
-Version: 0.315
+Version: 0.316
Release: 0
%define cpan_name Config-AutoConf
Summary: Module to Implement Some of Autoconf Macros in Pure Perl
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Config-AutoConf/
Source0:
https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
++++++ Config-AutoConf-0.315.tar.gz -> Config-AutoConf-0.316.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/Changes
new/Config-AutoConf-0.316/Changes
--- old/Config-AutoConf-0.315/Changes 2017-08-02 19:34:02.000000000 +0200
+++ new/Config-AutoConf-0.316/Changes 2018-04-17 11:15:46.000000000 +0200
@@ -1,5 +1,9 @@
Revision history for Config-AutoConf
+0.316 2018-04-12
+ - deal with pkg-config errors
+ - allow more search_lib others
+
0.315 2017-08-02
- add check_builtin
- perltidy code and add perltidy test (taken from MooX::Options)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/META.json
new/Config-AutoConf-0.316/META.json
--- old/Config-AutoConf-0.315/META.json 2017-08-02 21:12:26.000000000 +0200
+++ new/Config-AutoConf-0.316/META.json 2018-04-17 11:45:32.000000000 +0200
@@ -5,7 +5,7 @@
"Jens Rehsack <[email protected]"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter
version 2.150010",
+ "generated_by" : "ExtUtils::MakeMaker version 7.32, CPAN::Meta::Converter
version 2.150010",
"license" : [
"perl_5"
],
@@ -88,6 +88,6 @@
"x_IRC" : "irc://irc.perl.org/#toolchain",
"x_MailingList" : "mailto:[email protected]'"
},
- "version" : "0.315",
- "x_serialization_backend" : "JSON::PP version 2.94"
+ "version" : "0.316",
+ "x_serialization_backend" : "JSON::PP version 2.97001"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/META.yml
new/Config-AutoConf-0.316/META.yml
--- old/Config-AutoConf-0.315/META.yml 2017-08-02 21:12:26.000000000 +0200
+++ new/Config-AutoConf-0.316/META.yml 2018-04-17 11:45:32.000000000 +0200
@@ -9,7 +9,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.32, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -43,5 +43,5 @@
homepage: https://metacpan.org/release/Config-AutoConf
license: http://dev.perl.org/licenses/
repository: https://github.com:ambs/Config-AutoConf.git
-version: '0.315'
+version: '0.316'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/README.md
new/Config-AutoConf-0.316/README.md
--- old/Config-AutoConf-0.315/README.md 2016-04-07 11:12:24.000000000 +0200
+++ new/Config-AutoConf-0.316/README.md 2018-04-17 11:15:46.000000000 +0200
@@ -226,12 +226,6 @@
language. If _lang_ specified, it's asserted that the current used language
equals to specified language (helps finding control flow bugs).
-## lang\_call( \[prologue\], function )
-
-Builds program which simply calls given function.
-When given, prologue is prepended otherwise, the default
-includes are used.
-
## lang\_build\_program( prologue, body )
Builds program for current chosen language. If no prologue is given
@@ -265,6 +259,17 @@
}
#endif
+## lang\_call( \[prologue\], function )
+
+Builds program which simply calls given function.
+When given, prologue is prepended otherwise, the default
+includes are used.
+
+## lang\_builtin( \[prologue\], builtin )
+
+Builds program which simply proves whether a builtin is known to
+language compiler.
+
## lang\_build\_bool\_test (prologue, test, \[@decls\])
Builds a static test which will fail to compile when test
@@ -398,6 +403,21 @@
each symbol checked using ["check\_func"](#check_func) receiving the symbol as
first
argument.
+## check\_builtin( $builtin, \\%options? )
+
+This method actually tests whether _$builtin_ is a supported built-in
+known by the compiler. Either, by giving us the type of the built-in or
+by taking the value from `__has_builtin`. This method caches its result
+in the ac\_cv\_builtin\_FUNCTION variable.
+
+If the very last parameter contains a hash reference, `CODE` references
+to _action\_on\_true_ or _action\_on\_false_ are executed, respectively.
+If any of _action\_on\_cache\_true_, _action\_on\_cache\_false_ is defined,
+both callbacks are passed to ["check\_cached"](#check_cached) as
_action\_on\_true_ or
+_action\_on\_false_ to `check_cached`, respectively.
+
+Returns: True if the function was found, false otherwise
+
## check\_type( $symbol, \\%options? )
Check whether type is defined. It may be a compiler builtin type or defined
@@ -674,8 +694,10 @@
of a directory entry name by passing a pointer to a `struct dirent` to
the `NAMLEN` macro.
+For the found header, the macro HAVE\_DIRENT\_IN\_${header} is defined.
+
This method might be obsolescent, as all current systems with directory
-libraries have `<<dirent.h>`>. Programs supporting only newer OS
+libraries have `<dirent.h>`. Programs supporting only newer OS
might not need to use this method.
If the very last parameter contains a hash reference, `CODE` references
@@ -791,9 +813,10 @@
If linking with library results in unresolved symbols that would be
resolved by linking with additional libraries, give those libraries as
-the _other-libraries_ argument: e.g., `[qw(Xt X11)]`. Otherwise, this
-method fails to detect that function is present, because linking the
-test program always fails with unresolved symbols.
+the _other-libraries_ argument: e.g., `[qw(Xt X11)]` or `[qw(intl),
+qw(intl iconv)]`. Otherwise, this method fails to detect that function
+is present, because linking the test program always fails with unresolved
+symbols.
The result of this test is cached in the ac\_cv\_search\_function variable
as "none required" if function is already available, as `0` if no
@@ -838,6 +861,8 @@
Search for pkg-config flags for package as specified. The flags which are
extracted are `--cflags` and `--libs`. The extracted flags are appended
to the global `extra_compile_flags` and `extra_link_flags`, respectively.
+In case, no _package configuration_ matching given criteria could be found,
+return a `false` value (`0`).
Call it with the package you're looking for and optional callback whether
found or not.
@@ -871,7 +896,7 @@
## check\_pureperl\_required
-This check method proves whether a pureperl build is wanted or not by
+This check method proves whether a pure perl build is wanted or not by
cached-checking `$self->_check_pureperl_required`.
## check\_produce\_xs\_build
@@ -879,7 +904,7 @@
This routine checks whether XS can be produced. Therefore it does
following checks in given order:
-- check pureperl environment variables
(["check\_pureperl\_required"](#check_pureperl_required)) or
+- check pure perl environment variables
(["check\_pureperl\_required"](#check_pureperl_required)) or
command line arguments and return false when pure perl is requested
- check whether a compiler is available
(["check\_valid\_compilers"](#check_valid_compilers)) and
return false if none found
@@ -1034,7 +1059,7 @@
# COPYRIGHT & LICENSE
-Copyright 2004-2016 by the Authors
+Copyright 2004-2017 by the Authors
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/lib/Config/AutoConf.pm
new/Config-AutoConf-0.316/lib/Config/AutoConf.pm
--- old/Config-AutoConf-0.315/lib/Config/AutoConf.pm 2017-08-02
19:30:02.000000000 +0200
+++ new/Config-AutoConf-0.316/lib/Config/AutoConf.pm 2018-04-17
11:15:46.000000000 +0200
@@ -92,7 +92,7 @@
=cut
-our $VERSION = '0.315';
+our $VERSION = '0.316';
$VERSION = eval $VERSION;
=head1 ABSTRACT
@@ -3157,9 +3157,10 @@
If linking with library results in unresolved symbols that would be
resolved by linking with additional libraries, give those libraries as
-the I<other-libraries> argument: e.g., C<[qw(Xt X11)]>. Otherwise, this
-method fails to detect that function is present, because linking the
-test program always fails with unresolved symbols.
+the I<other-libraries> argument: e.g., C<[qw(Xt X11)]> or C<[qw(intl),
+qw(intl iconv)]>. Otherwise, this method fails to detect that function
+is present, because linking the test program always fails with unresolved
+symbols.
The result of this test is cached in the ac_cv_search_function variable
as "none required" if function is already available, as C<0> if no
@@ -3198,29 +3199,45 @@
my @save_libs = @{$self->{extra_libs}};
my $have_lib = 0;
- foreach my $libstest (undef, @$libs)
- {
- # XXX would local work on array refs? can we omit @save_libs?
- $self->{extra_libs} = [@save_libs];
- defined($libstest) and unshift(@{$self->{extra_libs}}, $libstest,
@other_libs);
+
+ my $if_else_sub = sub {
+ my ($libstest, @other) = @_;
+ defined($libstest) and unshift(@{$self->{extra_libs}}, $libstest,
@other);
$self->link_if_else(
$conftest,
{
(
$options->{action_on_lib_true} && "CODE" eq ref
$options->{action_on_lib_true}
- ? (action_on_true => sub {
$options->{action_on_lib_true}->($libstest, @other_libs, @_) })
+ ? (action_on_true => sub {
$options->{action_on_lib_true}->($libstest, @other, @_) })
: ()
),
(
$options->{action_on_lib_false} && "CODE" eq ref
$options->{action_on_lib_false}
- ? (action_on_false => sub {
$options->{action_on_lib_false}->($libstest, @other_libs, @_) })
+ ? (action_on_false => sub {
$options->{action_on_lib_false}->($libstest, @other, @_) })
: ()
),
}
- )
- and ($have_lib = defined($libstest) ? $libstest : "none
required")
- and last;
+ ) and ($have_lib = defined($libstest) ? $libstest : "none
required");
+ };
+
+ LIBTEST:
+ foreach my $libstest (undef, @$libs)
+ {
+ # XXX would local work on array refs? can we omit @save_libs?
+ $self->{extra_libs} = [@save_libs];
+ if (defined $libstest and scalar(@other_libs) > 1 and
ref($other_libs[0]) eq "ARRAY")
+ {
+ foreach my $ol (@other_libs)
+ {
+ $if_else_sub->($libstest, @{$ol}) and last LIBTEST;
+ }
+ }
+ else
+ {
+ $if_else_sub->($libstest, @other_libs) and last LIBTEST;
+ }
}
+
$self->{extra_libs} = [@save_libs];
$have_lib
@@ -3356,6 +3373,8 @@
Search for pkg-config flags for package as specified. The flags which are
extracted are C<--cflags> and C<--libs>. The extracted flags are appended
to the global C<extra_compile_flags> and C<extra_link_flags>, respectively.
+In case, no I<package configuration> matching given criteria could be found,
+return a C<false> value (C<0>).
Call it with the package you're looking for and optional callback whether
found or not.
@@ -3378,7 +3397,7 @@
capture { system($_pkg_config_prog, @pkg_config_args); };
chomp $stdout;
0 == $exit and return $stdout;
- return;
+ return $exit;
}
sub pkg_config_package_flags
@@ -3396,25 +3415,35 @@
my (@pkg_cflags, @pkg_libs);
(my $ENV_CFLAGS = $package) =~ s/^(\w+).*?$/$1_CFLAGS/;
+ (my $ENV_LIBS = $package) =~ s/^(\w+).*?$/$1_LIBS/;
+
+ my $pkg_exists = 0 + (
+ defined $ENV{$ENV_CFLAGS}
+ or defined $ENV{$ENV_LIBS}
+ or _pkg_config_flag($package, "--exists") eq ""
+ );
+ looks_like_number($pkg_exists) and $pkg_exists == 0 and return 0;
+
my $CFLAGS =
defined $ENV{$ENV_CFLAGS}
? $ENV{$ENV_CFLAGS}
: _pkg_config_flag($package, "--cflags");
- $CFLAGS and @pkg_cflags = (
+ $CFLAGS and not looks_like_number($CFLAGS) and @pkg_cflags = (
map { $_ =~ s/^\s+//; $_ =~ s/\s+$//; Text::ParseWords::shellwords
$_; }
split(m/\n/, $CFLAGS)
) and push @{$self->{extra_preprocess_flags}}, @pkg_cflags;
- (my $ENV_LIBS = $package) =~ s/^(\w+).*?$/$1_LIBS/;
# do not separate between libs and extra (for now) - they come with -l
prepended
my $LIBS =
defined $ENV{$ENV_LIBS}
? $ENV{$ENV_LIBS}
: _pkg_config_flag($package, "--libs");
- $LIBS and @pkg_libs = (
+ $LIBS and not looks_like_number($LIBS) and @pkg_libs = (
map { $_ =~ s/^\s+//; $_ =~ s/\s+$//; Text::ParseWords::shellwords
$_; }
split(m/\n/, $LIBS)
- ) and push @{$self->{extra_link_flags}}, @pkg_libs;
+ );
+ @pkg_libs and push @{$self->{extra_link_flags}}, grep { $_ !~ m/^-l/ }
@pkg_libs;
+ @pkg_libs and push @{$self->{extra_libs}}, map { (my $l = $_) =~
s/^-l//; $l } grep { $_ =~ m/^-l/ } @pkg_libs;
my $pkg_config_flags = join(" ", @pkg_cflags, @pkg_libs);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/t/02.compile.t
new/Config-AutoConf-0.316/t/02.compile.t
--- old/Config-AutoConf-0.315/t/02.compile.t 2017-08-02 18:38:23.000000000
+0200
+++ new/Config-AutoConf-0.316/t/02.compile.t 2018-04-17 11:15:46.000000000
+0200
@@ -16,7 +16,7 @@
}
## OK, we really hope people have sdtio.h around
-ok(Config::AutoConf->check_header("stdio.h")) or plan skip_all => "No working
compile environment";
+Config::AutoConf->check_header("stdio.h") or plan skip_all => "No working
compile environment";
ok(!Config::AutoConf->check_header("astupidheaderfile.h"));
is(Config::AutoConf->check_headers("astupidheaderfile.h", "stdio.h"),
"stdio.h");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.315/t/03.link.t
new/Config-AutoConf-0.316/t/03.link.t
--- old/Config-AutoConf-0.315/t/03.link.t 2017-08-02 18:38:24.000000000
+0200
+++ new/Config-AutoConf-0.316/t/03.link.t 2018-04-17 11:15:46.000000000
+0200
@@ -14,6 +14,8 @@
}
}
+Config::AutoConf->check_header("stdio.h") or plan skip_all => "No working
compile environment";
+
my $ac_1;
ok($ac_1 = Config::AutoConf->new(logfile => "config3.log"), "Instantiating
Config::AutoConf for check_lib() tests");