Hello community,
here is the log from the commit of package perl-Config-AutoConf for
openSUSE:Factory checked in at 2020-10-03 18:54:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Config-AutoConf (Old)
and /work/SRC/openSUSE:Factory/.perl-Config-AutoConf.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Config-AutoConf"
Sat Oct 3 18:54:23 2020 rev:14 rq:838729 version:0.319
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Config-AutoConf/perl-Config-AutoConf.changes
2020-01-06 16:02:15.909728210 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Config-AutoConf.new.4249/perl-Config-AutoConf.changes
2020-10-03 18:54:28.109413573 +0200
@@ -1,0 +2,14 @@
+Wed Sep 30 03:07:20 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 0.319
+ see /usr/share/doc/packages/perl-Config-AutoConf/Changes
+
+ 0.319 2020-09-29
+ - add optional extra_link_flags to search_libs
+ - fix check_prog to not find directories (RT#132993), thanks
+ RJBS for reporting
+ - include .perltidyrc to allow CPAN distribution downloaders
+ creating sane patches
+ - tooling improvements
+
+-------------------------------------------------------------------
Old:
----
Config-AutoConf-0.318.tar.gz
New:
----
Config-AutoConf-0.319.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Config-AutoConf.spec ++++++
--- /var/tmp/diff_new_pack.EiPbLk/_old 2020-10-03 18:54:29.309414902 +0200
+++ /var/tmp/diff_new_pack.EiPbLk/_new 2020-10-03 18:54:29.313414907 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Config-AutoConf
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: perl-Config-AutoConf
-Version: 0.318
+Version: 0.319
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-or-later
Group: Development/Libraries/Perl
-Url: https://metacpan.org/release/%{cpan_name}
+URL: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
++++++ Config-AutoConf-0.318.tar.gz -> Config-AutoConf-0.319.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/.perltidyrc
new/Config-AutoConf-0.319/.perltidyrc
--- old/Config-AutoConf-0.318/.perltidyrc 1970-01-01 01:00:00.000000000
+0100
+++ new/Config-AutoConf-0.319/.perltidyrc 2018-05-09 08:50:26.000000000
+0200
@@ -0,0 +1,17 @@
+-b
+-bl
+-noll
+-pt=2
+-bt=2
+-sbt=2
+-vt=0
+-vtc=0
+-dws
+-aws
+-nsfs
+-asc
+-bbt=0
+-cab=0
+-l=130
+-ole=unix
+--noblanks-before-comments
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/Changes
new/Config-AutoConf-0.319/Changes
--- old/Config-AutoConf-0.318/Changes 2020-01-02 17:10:49.000000000 +0100
+++ new/Config-AutoConf-0.319/Changes 2020-09-29 11:47:21.000000000 +0200
@@ -1,5 +1,13 @@
Revision history for Config-AutoConf
+0.319 2020-09-29
+ - add optional extra_link_flags to search_libs
+ - fix check_prog to not find directories (RT#132993), thanks
+ RJBS for reporting
+ - include .perltidyrc to allow CPAN distribution downloaders
+ creating sane patches
+ - tooling improvements
+
0.318 2020-01-02
- use File::Slurper instead of File::Slurp::Tiny
- use cached pkg_config_prog, when available
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/MANIFEST
new/Config-AutoConf-0.319/MANIFEST
--- old/Config-AutoConf-0.318/MANIFEST 2020-01-02 17:35:54.000000000 +0100
+++ new/Config-AutoConf-0.319/MANIFEST 2020-09-29 12:31:58.000000000 +0200
@@ -1,3 +1,4 @@
+.perltidyrc
ARTISTIC-1.0
Changes
GPL-1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/MANIFEST.SKIP
new/Config-AutoConf-0.319/MANIFEST.SKIP
--- old/Config-AutoConf-0.318/MANIFEST.SKIP 2020-01-02 17:10:49.000000000
+0100
+++ new/Config-AutoConf-0.319/MANIFEST.SKIP 2020-09-29 11:21:15.000000000
+0200
@@ -25,12 +25,10 @@
^_build/.*
~$
.*\.planner
-.perltidyrc
.travis.yml
Config-AutoConf-.*
^applied_patches/
\bxt
-^MYMETA\.json$
-^MYMETA\..*$
+^MYMETA\..*
cover_db
nytprof
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/META.json
new/Config-AutoConf-0.319/META.json
--- old/Config-AutoConf-0.318/META.json 2020-01-02 17:35:53.000000000 +0100
+++ new/Config-AutoConf-0.319/META.json 2020-09-29 12:31:58.000000000 +0200
@@ -5,7 +5,7 @@
"Jens Rehsack <[email protected]"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.42, CPAN::Meta::Converter
version 2.150010",
+ "generated_by" : "ExtUtils::MakeMaker version 7.46, 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.318",
- "x_serialization_backend" : "JSON::PP version 4.04"
+ "version" : "0.319",
+ "x_serialization_backend" : "JSON::PP version 4.05"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/META.yml
new/Config-AutoConf-0.319/META.yml
--- old/Config-AutoConf-0.318/META.yml 2020-01-02 17:35:53.000000000 +0100
+++ new/Config-AutoConf-0.319/META.yml 2020-09-29 12:31:57.000000000 +0200
@@ -9,7 +9,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.42, CPAN::Meta::Converter version
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.46, 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.318'
+version: '0.319'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/lib/Config/AutoConf.pm
new/Config-AutoConf-0.319/lib/Config/AutoConf.pm
--- old/Config-AutoConf-0.318/lib/Config/AutoConf.pm 2020-01-02
17:10:49.000000000 +0100
+++ new/Config-AutoConf-0.319/lib/Config/AutoConf.pm 2020-09-29
11:47:47.000000000 +0200
@@ -92,7 +92,7 @@
=cut
-our $VERSION = '0.318';
+our $VERSION = '0.319';
$VERSION = eval $VERSION;
=head1 ABSTRACT
@@ -271,12 +271,13 @@
{
for my $e (@exe_exts)
{
- my $cmd = $self->_sanitize_prog(File::Spec->catfile($p, $ac_prog .
$e));
- -x $cmd
+ my $cmd = $self->_sanitize_prog(File::Spec->catfile($p,
$ac_prog . $e));
+ my $is_executable = -x $cmd and -f $cmd;
+ $is_executable
and $options->{action_on_true}
and ref $options->{action_on_true} eq "CODE"
and $options->{action_on_true}->();
- -x $cmd and return $cmd;
+ $is_executable and return $cmd;
}
}
@@ -2201,7 +2202,7 @@
"#ifndef offsetof",
"# ifdef __ICC",
"# define offsetof(type,memb) ((size_t)(((char
*)(&((type*)0)->memb)) - ((char *)0)))",
- "# else", "# define offsetof(type,memb)
((size_t)&((type*)0)->memb)",
+ "# else", "# define offsetof(type,memb)
((size_t)&((type*)0)->memb)",
"# endif", "#endif"
);
@@ -3137,7 +3138,15 @@
);
}
-=head2 search_libs( function, search-libs, @other-libs?, \%options? )
+=head2 search_libs( function, search-libs, @other-libs?, @extra_link_flags?,
\%options? )
+
+ Config::AutoConf->search_libs("gethostent", "nsl", [qw(socket net)], {
+ action_on_true => sub { ... }
+ });
+ Config::AutoConf->search_libs("log4cplus_initialize", ["log4cplus"],
+ [[qw(stdc++)], [qw(stdc++ unwind)]],
+ [qw(-pthread -thread)]
+ );
Search for a library defining function if it's not already available.
This equates to calling
@@ -3179,7 +3188,7 @@
my $options = {};
scalar @_ > 1 and ref $_[-1] eq "HASH" and $options = pop @_;
my $self = shift->_get_instance();
- my ($func, $libs, @other_libs) = @_;
+ my ($func, $libs, @other_libs, @other_link_flags) = @_;
(defined($libs) and "ARRAY" eq ref($libs) and scalar(@{$libs}) > 0)
or return 0; # XXX would prefer croak
@@ -3189,12 +3198,17 @@
and ref($other_libs[0]) eq "ARRAY"
and @other_libs = @{$other_libs[0]};
+ scalar(@other_link_flags) == 1
+ and ref($other_link_flags[0]) eq "ARRAY"
+ and @other_link_flags = @{$other_link_flags[0]};
+
my $cache_name = $self->_cache_name("search", $func);
my $check_sub = sub {
my $conftest = $self->lang_call("", $func);
- my @save_libs = @{$self->{extra_libs}};
- my $have_lib = 0;
+ my @save_libs = @{$self->{extra_libs}};
+ my @save_extra = @{$self->{extra_link_flags}};
+ my $have_lib = 0;
my $if_else_sub = sub {
my ($libstest, @other) = @_;
@@ -3219,18 +3233,22 @@
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 $linkextra (undef, @other_link_flags)
{
- foreach my $ol (@other_libs)
+ # XXX would local work on array refs? can we omit @save_libs?
+ $self->{extra_libs} = [@save_libs];
+ $self->{extra_link_flags} = [@save_extra];
+ if (defined $libstest and scalar(@other_libs) > 1 and
ref($other_libs[0]) eq "ARRAY")
{
- $if_else_sub->($libstest, @{$ol}) and last LIBTEST;
+ foreach my $ol (@other_libs)
+ {
+ $if_else_sub->($libstest, @{$ol}) and last LIBTEST;
+ }
+ }
+ else
+ {
+ $if_else_sub->($libstest, @other_libs) and last LIBTEST;
}
- }
- else
- {
- $if_else_sub->($libstest, @other_libs) and last LIBTEST;
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Config-AutoConf-0.318/t/03.link.t
new/Config-AutoConf-0.319/t/03.link.t
--- old/Config-AutoConf-0.318/t/03.link.t 2020-01-02 16:26:29.000000000
+0100
+++ new/Config-AutoConf-0.319/t/03.link.t 2020-09-29 11:11:03.000000000
+0200
@@ -39,7 +39,7 @@
## OK, we really hope people have -lm around
ok(!$ac_1->check_lib("m", "foobar"), "foobar() not in -lm");
- ok($ac_1->check_lib("m", "atan"), "atan() in -lm");
+ ok($ac_1->check_lib("m", "atan"), "atan() in -lm");
my ($where_atan, $ac_2);
ok($ac_2 = Config::AutoConf->new(logfile => "config4.log"),
"Instantiating Config::AutoConf for search_libs() tests");