Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-ExtUtils-CChecker for
openSUSE:Factory checked in at 2024-04-07 22:04:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-CChecker (Old)
and /work/SRC/openSUSE:Factory/.perl-ExtUtils-CChecker.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-CChecker"
Sun Apr 7 22:04:37 2024 rev:13 rq:1165826 version:0.120.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-ExtUtils-CChecker/perl-ExtUtils-CChecker.changes
2021-07-20 15:39:22.409462656 +0200
+++
/work/SRC/openSUSE:Factory/.perl-ExtUtils-CChecker.new.1905/perl-ExtUtils-CChecker.changes
2024-04-07 22:04:45.035843899 +0200
@@ -1,0 +2,14 @@
+Tue Mar 5 03:07:04 UTC 2024 - Tina Müller <[email protected]>
+
+- updated to 0.12
+ see /usr/share/doc/packages/perl-ExtUtils-CChecker/Changes
+
+ 0.12 2024-03-02
+ [CHANGES]
+ * Document the `->define` method
+ * Overall module style updates
+ + `use v5.14` in all files
+ + use `package NAME VER` syntax
+ + Use `Test2::V0` instead of `Test::More` + `Test::Fatal`
+
+-------------------------------------------------------------------
Old:
----
ExtUtils-CChecker-0.11.tar.gz
New:
----
ExtUtils-CChecker-0.12.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-ExtUtils-CChecker.spec ++++++
--- /var/tmp/diff_new_pack.apjmUX/_old 2024-04-07 22:04:46.991915535 +0200
+++ /var/tmp/diff_new_pack.apjmUX/_new 2024-04-07 22:04:46.991915535 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-ExtUtils-CChecker
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,24 @@
%define cpan_name ExtUtils-CChecker
Name: perl-ExtUtils-CChecker
-Version: 0.11
+Version: 0.120.0
Release: 0
-Summary: Configure-time utilities for using C headers,
+# 0.12 -> normalize -> 0.120.0
+%define cpan_version 0.12
License: Artistic-1.0 OR GPL-1.0-or-later
+Summary: Configure-time utilities for using C headers,
URL: https://metacpan.org/release/%{cpan_name}
-Source0:
https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::CBuilder)
-BuildRequires: perl(Module::Build) >= 0.400400
-BuildRequires: perl(Test::Fatal)
-BuildRequires: perl(Test::More) >= 0.88
+BuildRequires: perl(Module::Build) >= 0.4004
+BuildRequires: perl(Test2::V0)
Requires: perl(ExtUtils::CBuilder)
+Provides: perl(ExtUtils::CChecker) = %{version}
+%undefine __perllib_provides
%{perl_requires}
%description
@@ -50,17 +53,17 @@
also provides assistance here.
%prep
-%autosetup -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{cpan_version}
%build
-perl Build.PL installdirs=vendor
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
++++++ ExtUtils-CChecker-0.11.tar.gz -> ExtUtils-CChecker-0.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/.editorconfig
new/ExtUtils-CChecker-0.12/.editorconfig
--- old/ExtUtils-CChecker-0.11/.editorconfig 1970-01-01 01:00:00.000000000
+0100
+++ new/ExtUtils-CChecker-0.12/.editorconfig 2024-03-04 22:26:02.000000000
+0100
@@ -0,0 +1,4 @@
+root = true
+
+[*.{pm,pl,t}]
+indent_size = 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/Build.PL
new/ExtUtils-CChecker-0.12/Build.PL
--- old/ExtUtils-CChecker-0.11/Build.PL 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/Build.PL 2024-03-04 22:26:02.000000000 +0100
@@ -7,11 +7,12 @@
my $build = Module::Build->new(
module_name => 'ExtUtils::CChecker',
requires => {
+ 'perl' => '5.014',
+
'ExtUtils::CBuilder' => 0,
},
test_requires => {
- 'Test::More' => '0.88', # done_testing
- 'Test::Fatal' => 0,
+ 'Test2::V0' => 0,
},
configure_requires => {
'Module::Build' => '0.4004', # test_requires
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/Changes
new/ExtUtils-CChecker-0.12/Changes
--- old/ExtUtils-CChecker-0.11/Changes 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/Changes 2024-03-04 22:26:02.000000000 +0100
@@ -1,5 +1,13 @@
Revision history for ExtUtils-CChecker
+0.12 2024-03-02
+ [CHANGES]
+ * Document the `->define` method
+ * Overall module style updates
+ + `use v5.14` in all files
+ + use `package NAME VER` syntax
+ + Use `Test2::V0` instead of `Test::More` + `Test::Fatal`
+
0.11 2021-07-12
[CHANGES]
* Added `try_find_cflags_for`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/LICENSE
new/ExtUtils-CChecker-0.12/LICENSE
--- old/ExtUtils-CChecker-0.11/LICENSE 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/LICENSE 2024-03-04 22:26:02.000000000 +0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2021 by Paul Evans <[email protected]>.
+This software is copyright (c) 2024 by Paul Evans <[email protected]>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2021 by Paul Evans <[email protected]>.
+This software is Copyright (c) 2024 by Paul Evans <[email protected]>.
This is free software, licensed under:
@@ -270,110 +270,143 @@
That's all there is to it!
---- The Artistic License 1.0 ---
+--- The Perl Artistic License 1.0 ---
-This software is Copyright (c) 2021 by Paul Evans <[email protected]>.
+This software is Copyright (c) 2024 by Paul Evans <[email protected]>.
This is free software, licensed under:
- The Artistic License 1.0
+ The Perl Artistic License 1.0
-The Artistic License
-Preamble
-The intent of this document is to state the conditions under which a Package
-may be copied, such that the Copyright Holder maintains some semblance of
-artistic control over the development of the package, while giving the users of
-the package the right to use and distribute the Package in a more-or-less
-customary fashion, plus the right to make reasonable modifications.
+
+
+ The "Artistic License"
+
+ Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
Definitions:
- - "Package" refers to the collection of files distributed by the Copyright
- Holder, and derivatives of that collection of files created through
- textual modification.
- - "Standard Version" refers to such a Package if it has not been modified,
- or has been modified in accordance with the wishes of the Copyright
- Holder.
- - "Copyright Holder" is whoever is named in the copyright or copyrights for
- the package.
- - "You" is you, if you're thinking about copying or distributing this
Package.
- - "Reasonable copying fee" is whatever you can justify on the basis of media
- cost, duplication charges, time of people involved, and so on. (You will
- not be required to justify it to the Copyright Holder, but only to the
- computing community at large as a market that must bear the fee.)
- - "Freely Available" means that no fee is charged for the item itself, though
- there may be fees involved in handling the item. It also means that
- recipients of the item may redistribute it under the same conditions they
- received it.
+ "Package" refers to the collection of files distributed by the
+ Copyright Holder, and derivatives of that collection of files
+ created through textual modification.
+
+ "Standard Version" refers to such a Package if it has not been
+ modified, or has been modified in accordance with the wishes
+ of the Copyright Holder as specified below.
+
+ "Copyright Holder" is whoever is named in the copyright or
+ copyrights for the package.
+
+ "You" is you, if you're thinking about copying or distributing
+ this Package.
+
+ "Reasonable copying fee" is whatever you can justify on the
+ basis of media cost, duplication charges, time of people involved,
+ and so on. (You will not be required to justify it to the
+ Copyright Holder, but only to the computing community at large
+ as a market that must bear the fee.)
+
+ "Freely Available" means that no fee is charged for the item
+ itself, though there may be fees involved in handling the item.
+ It also means that recipients of the item may redistribute it
+ under the same conditions they received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
-2. You may apply bug fixes, portability fixes and other modifications derived
-from the Public Domain or from the Copyright Holder. A Package modified in such
-a way shall still be considered the Standard Version.
-
-3. You may otherwise modify your copy of this Package in any way, provided that
-you insert a prominent notice in each changed file stating how and when you
-changed that file, and provided that you do at least ONE of the following:
-
- a) place your modifications in the Public Domain or otherwise make them
- Freely Available, such as by posting said modifications to Usenet or an
- equivalent medium, or placing the modifications on a major archive site
- such as ftp.uu.net, or by allowing the Copyright Holder to include your
- modifications in the Standard Version of the Package.
-
- b) use the modified Package only within your corporation or organization.
-
- c) rename any non-standard executables so the names do not conflict with
- standard executables, which must also be provided, and provide a separate
- manual page for each non-standard executable that clearly documents how it
- differs from the Standard Version.
-
- d) make other distribution arrangements with the Copyright Holder.
-
-4. You may distribute the programs of this Package in object code or executable
-form, provided that you do at least ONE of the following:
-
- a) distribute a Standard Version of the executables and library files,
- together with instructions (in the manual page or equivalent) on where to
- get the Standard Version.
-
- b) accompany the distribution with the machine-readable source of the Package
- with your modifications.
-
- c) accompany any non-standard executables with their corresponding Standard
- Version executables, giving the non-standard executables non-standard
- names, and clearly documenting the differences in manual pages (or
- equivalent), together with instructions on where to get the Standard
- Version.
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain or from the Copyright Holder. A Package
+modified in such a way shall still be considered the Standard Version.
- d) make other distribution arrangements with the Copyright Holder.
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
-5. You may charge a reasonable copying fee for any distribution of this
-Package. You may charge any fee you choose for support of this Package. You
-may not charge a fee for this Package itself. However, you may distribute this
-Package in aggregate with other (possibly commercial) programs as part of a
-larger (possibly commercial) software distribution provided that you do not
-advertise this Package as a product of your own.
-
-6. The scripts and library files supplied as input to or produced as output
-from the programs of this Package do not automatically fall under the copyright
-of this Package, but belong to whomever generated them, and may be sold
-commercially, and may be aggregated with this Package.
+ a) place your modifications in the Public Domain or otherwise make them
+ Freely Available, such as by posting said modifications to Usenet or
+ an equivalent medium, or placing the modifications on a major archive
+ site such as uunet.uu.net, or by allowing the Copyright Holder to include
+ your modifications in the Standard Version of the Package.
+
+ b) use the modified Package only within your corporation or organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided, and provide
+ a separate manual page for each non-standard executable that clearly
+ documents how it differs from the Standard Version.
-7. C or perl subroutines supplied by you and linked into this Package shall not
-be considered part of this Package.
+ d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where
+ to get the Standard Version.
+
+ b) accompany the distribution with the machine-readable source of
+ the Package with your modifications.
+
+ c) give non-standard executables non-standard names, and clearly
+ document the differences in manual pages (or equivalent), together
+ with instructions on where to get the Standard Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package. You may charge any fee you choose for support of this
+Package. You may not charge a fee for this Package itself. However,
+you may distribute this Package in aggregate with other (possibly
+commercial) programs as part of a larger (possibly commercial) software
+distribution provided that you do not advertise this Package as a
+product of your own. You may embed this Package's interpreter within
+an executable of yours (by linking); this shall be construed as a mere
+form of aggregation, provided that the complete Standard Version of the
+interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package. If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of this Package with a commercial distribution is always
+permitted provided that the use of this Package is embedded; that is,
+when no overt attempt is made to make this Package's interfaces visible
+to the end user of the commercial distribution. Such use shall not be
+construed as a distribution of this Package.
-8. The name of the Copyright Holder may not be used to endorse or promote
+9. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
-9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-The End
+ The End
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/MANIFEST
new/ExtUtils-CChecker-0.12/MANIFEST
--- old/ExtUtils-CChecker-0.11/MANIFEST 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/MANIFEST 2024-03-04 22:26:02.000000000 +0100
@@ -1,11 +1,8 @@
+.editorconfig
Build.PL
Changes
lib/ExtUtils/CChecker.pm
-LICENSE
MANIFEST This list of files
-META.json
-META.yml
-README
t/00use.t
t/01run.t
t/02assert.t
@@ -14,3 +11,7 @@
t/05defines_to.t
t/10find_cflags.t
t/99pod.t
+README
+LICENSE
+META.yml
+META.json
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/META.json
new/ExtUtils-CChecker-0.12/META.json
--- old/ExtUtils-CChecker-0.11/META.json 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/META.json 2024-03-04 22:26:02.000000000
+0100
@@ -4,7 +4,7 @@
"Paul Evans <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.4231",
+ "generated_by" : "Module::Build version 0.4234",
"license" : [
"perl_5"
],
@@ -21,20 +21,20 @@
},
"runtime" : {
"requires" : {
- "ExtUtils::CBuilder" : "0"
+ "ExtUtils::CBuilder" : "0",
+ "perl" : "5.014"
}
},
"test" : {
"requires" : {
- "Test::Fatal" : "0",
- "Test::More" : "0.88"
+ "Test2::V0" : "0"
}
}
},
"provides" : {
"ExtUtils::CChecker" : {
"file" : "lib/ExtUtils/CChecker.pm",
- "version" : "0.11"
+ "version" : "0.12"
}
},
"release_status" : "stable",
@@ -43,6 +43,6 @@
"http://dev.perl.org/licenses/"
]
},
- "version" : "0.11",
- "x_serialization_backend" : "JSON::PP version 4.05"
+ "version" : "0.12",
+ "x_serialization_backend" : "JSON::PP version 4.16"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/META.yml
new/ExtUtils-CChecker-0.12/META.yml
--- old/ExtUtils-CChecker-0.11/META.yml 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/META.yml 2024-03-04 22:26:02.000000000 +0100
@@ -3,12 +3,11 @@
author:
- 'Paul Evans <[email protected]>'
build_requires:
- Test::Fatal: '0'
- Test::More: '0.88'
+ Test2::V0: '0'
configure_requires:
Module::Build: '0.4004'
dynamic_config: 1
-generated_by: 'Module::Build version 0.4231, CPAN::Meta::Converter version
2.150010'
+generated_by: 'Module::Build version 0.4234, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -17,10 +16,11 @@
provides:
ExtUtils::CChecker:
file: lib/ExtUtils/CChecker.pm
- version: '0.11'
+ version: '0.12'
requires:
ExtUtils::CBuilder: '0'
+ perl: '5.014'
resources:
license: http://dev.perl.org/licenses/
-version: '0.11'
+version: '0.12'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/README
new/ExtUtils-CChecker-0.12/README
--- old/ExtUtils-CChecker-0.11/README 2021-07-12 17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/README 2024-03-04 22:26:02.000000000 +0100
@@ -44,7 +44,7 @@
new
- $cc = ExtUtils::CChecker->new( %args )
+ $cc = ExtUtils::CChecker->new( %args );
Returns a new instance of a ExtUtils::CChecker object. Takes the
following named parameters:
@@ -70,48 +70,55 @@
include_dirs
- $dirs = $cc->include_dirs
+ $dirs = $cc->include_dirs;
Returns the currently-configured include directories in an ARRAY
reference.
extra_compiler_flags
- $flags = $cc->extra_compiler_flags
+ $flags = $cc->extra_compiler_flags;
Returns the currently-configured extra compiler flags in an ARRAY
reference.
extra_linker_flags
- $flags = $cc->extra_linker_flags
+ $flags = $cc->extra_linker_flags;
Returns the currently-configured extra linker flags in an ARRAY
reference.
push_include_dirs
- $cc->push_include_dirs( @dirs )
+ $cc->push_include_dirs( @dirs );
Adds more include directories
push_extra_compiler_flags
- $cc->push_extra_compiler_flags( @flags )
+ $cc->push_extra_compiler_flags( @flags );
Adds more compiler flags
push_extra_linker_flags
- $cc->push_extra_linker_flags( @flags )
+ $cc->push_extra_linker_flags( @flags );
Adds more linker flags
+ define
+
+ $cc->define( $symbol );
+
+ Adds a new defined symbol directly; either by appending to the compiler
+ flags or writing it into the defines file.
+
try_compile_run
- $success = $cc->try_compile_run( %args )
+ $success = $cc->try_compile_run( %args );
- $success = $cc->try_compile_run( $source )
+ $success = $cc->try_compile_run( $source );
Try to compile, link, and execute a C program whose source is given.
Returns true if the program compiled and linked, and exited
@@ -142,7 +149,7 @@
assert_compile_run
- $cc->assert_compile_run( %args )
+ $cc->assert_compile_run( %args );
Calls try_compile_run. If it fails, die with an OS unsupported message.
Useful to call from Build.PL or Makefile.PL.
@@ -157,7 +164,7 @@
try_find_cflags_for
- $success = $cc->try_find_cflags_for( %args )
+ $success = $cc->try_find_cflags_for( %args );
Since version 0.11.
@@ -188,7 +195,7 @@
try_find_include_dirs_for
- $success = $cc->try_find_include_dirs_for( %args )
+ $success = $cc->try_find_include_dirs_for( %args );
Try to compile, link and execute the given source, using extra include
directories.
@@ -219,7 +226,7 @@
try_find_libs_for
- $success = $cc->try_find_libs_for( %args )
+ $success = $cc->try_find_libs_for( %args );
Try to compile, link and execute the given source, when linked against
a given set of extra libraries.
@@ -250,15 +257,15 @@
find_cflags_for
- $cc->find_cflags_for( %args )
+ $cc->find_cflags_for( %args );
find_include_dirs_for
- $cc->find_include_dirs_for( %args )
+ $cc->find_include_dirs_for( %args );
find_libs_for
- $cc->find_libs_for( %args )
+ $cc->find_libs_for( %args );
Calls try_find_cflags_for, try_find_include_dirs_for or
try_find_libs_for respectively. If it fails, die with an OS unsupported
@@ -274,7 +281,7 @@
extend_module_build
- $cc->extend_module_build( $build )
+ $cc->extend_module_build( $build );
Since version 0.11.
@@ -282,7 +289,7 @@
new_module_build
- $mb = $cc->new_module_build( %args )
+ $mb = $cc->new_module_build( %args );
Construct and return a new Module::Build object, preconfigured with the
include_dirs, extra_compiler_flags and extra_linker_flags options that
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/lib/ExtUtils/CChecker.pm
new/ExtUtils-CChecker-0.12/lib/ExtUtils/CChecker.pm
--- old/ExtUtils-CChecker-0.11/lib/ExtUtils/CChecker.pm 2021-07-12
17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/lib/ExtUtils/CChecker.pm 2024-03-04
22:26:02.000000000 +0100
@@ -1,16 +1,13 @@
# You may distribute under the terms of either the GNU General Public License
# or the Artistic License (the same terms as Perl itself)
#
-# (C) Paul Evans, 2010-2021 -- [email protected]
+# (C) Paul Evans, 2010-2024 -- [email protected]
-package ExtUtils::CChecker;
+package ExtUtils::CChecker 0.12;
-use v5;
-use strict;
+use v5.14;
use warnings;
-our $VERSION = '0.11';
-
use Carp;
use ExtUtils::CBuilder;
@@ -65,7 +62,7 @@
=head2 new
- $cc = ExtUtils::CChecker->new( %args )
+ $cc = ExtUtils::CChecker->new( %args );
Returns a new instance of a C<ExtUtils::CChecker> object. Takes the following
named parameters:
@@ -124,7 +121,7 @@
=head2 include_dirs
- $dirs = $cc->include_dirs
+ $dirs = $cc->include_dirs;
Returns the currently-configured include directories in an ARRAY reference.
@@ -139,7 +136,7 @@
=head2 extra_compiler_flags
- $flags = $cc->extra_compiler_flags
+ $flags = $cc->extra_compiler_flags;
Returns the currently-configured extra compiler flags in an ARRAY reference.
@@ -154,7 +151,7 @@
=head2 extra_linker_flags
- $flags = $cc->extra_linker_flags
+ $flags = $cc->extra_linker_flags;
Returns the currently-configured extra linker flags in an ARRAY reference.
@@ -169,7 +166,7 @@
=head2 push_include_dirs
- $cc->push_include_dirs( @dirs )
+ $cc->push_include_dirs( @dirs );
Adds more include directories
@@ -183,7 +180,7 @@
=head2 push_extra_compiler_flags
- $cc->push_extra_compiler_flags( @flags )
+ $cc->push_extra_compiler_flags( @flags );
Adds more compiler flags
@@ -197,7 +194,7 @@
=head2 push_extra_linker_flags
- $cc->push_extra_linker_flags( @flags )
+ $cc->push_extra_linker_flags( @flags );
Adds more linker flags
@@ -245,6 +242,15 @@
die $message;
}
+=head2 define
+
+ $cc->define( $symbol );
+
+Adds a new defined symbol directly; either by appending to the compiler flags
+or writing it into the defines file.
+
+=cut
+
sub define
{
my $self = shift;
@@ -265,9 +271,9 @@
=head2 try_compile_run
- $success = $cc->try_compile_run( %args )
+ $success = $cc->try_compile_run( %args );
- $success = $cc->try_compile_run( $source )
+ $success = $cc->try_compile_run( $source );
Try to compile, link, and execute a C program whose source is given. Returns
true if the program compiled and linked, and exited successfully. Returns
@@ -360,7 +366,7 @@
=head2 assert_compile_run
- $cc->assert_compile_run( %args )
+ $cc->assert_compile_run( %args );
Calls C<try_compile_run>. If it fails, die with an C<OS unsupported> message.
Useful to call from F<Build.PL> or F<Makefile.PL>.
@@ -390,7 +396,7 @@
=head2 try_find_cflags_for
- $success = $cc->try_find_cflags_for( %args )
+ $success = $cc->try_find_cflags_for( %args );
I<Since version 0.11.>
@@ -446,7 +452,7 @@
=head2 try_find_include_dirs_for
- $success = $cc->try_find_include_dirs_for( %args )
+ $success = $cc->try_find_include_dirs_for( %args );
Try to compile, link and execute the given source, using extra include
directories.
@@ -502,7 +508,7 @@
=head2 try_find_libs_for
- $success = $cc->try_find_libs_for( %args )
+ $success = $cc->try_find_libs_for( %args );
Try to compile, link and execute the given source, when linked against a
given set of extra libraries.
@@ -558,15 +564,15 @@
=head2 find_cflags_for
- $cc->find_cflags_for( %args )
+ $cc->find_cflags_for( %args );
=head2 find_include_dirs_for
- $cc->find_include_dirs_for( %args )
+ $cc->find_include_dirs_for( %args );
=head2 find_libs_for
- $cc->find_libs_for( %args )
+ $cc->find_libs_for( %args );
Calls C<try_find_cflags_for>, C<try_find_include_dirs_for> or
C<try_find_libs_for> respectively. If it fails, die with an
@@ -603,7 +609,7 @@
=head2 extend_module_build
- $cc->extend_module_build( $build )
+ $cc->extend_module_build( $build );
I<Since version 0.11.>
@@ -628,7 +634,7 @@
=head2 new_module_build
- $mb = $cc->new_module_build( %args )
+ $mb = $cc->new_module_build( %args );
Construct and return a new L<Module::Build> object, preconfigured with the
C<include_dirs>, C<extra_compiler_flags> and C<extra_linker_flags> options
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/00use.t
new/ExtUtils-CChecker-0.12/t/00use.t
--- old/ExtUtils-CChecker-0.11/t/00use.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/00use.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,11 +1,11 @@
#!/usr/bin/perl
-use v5;
+use v5.14;
use warnings;
-use strict;
-use Test::More;
+use Test2::V0;
-use_ok( "ExtUtils::CChecker" );
+require ExtUtils::CChecker;
+pass( 'Modules loaded' );
done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/01run.t
new/ExtUtils-CChecker-0.12/t/01run.t
--- old/ExtUtils-CChecker-0.11/t/01run.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/01run.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,17 +1,16 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
use ExtUtils::CChecker;
my $cc = ExtUtils::CChecker->new;
ok( defined $cc, 'defined $cc' );
-isa_ok( $cc, "ExtUtils::CChecker", '$cc' );
+isa_ok( $cc, [ "ExtUtils::CChecker" ], '$cc' );
ok( $cc->try_compile_run( "int main(void) { return 0; }\n" ), 'Trivial C
program compiles and runs' );
ok( !$cc->try_compile_run( "int foo bar splot\n" ), 'Broken C program does not
compile and run' );
@@ -23,6 +22,6 @@
define => "HAVE_C",
);
-is_deeply( $cc->extra_compiler_flags, [ "-DHAVE_C" ], 'HAVE_C defined' );
+is( $cc->extra_compiler_flags, [ "-DHAVE_C" ], 'HAVE_C defined' );
done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/02assert.t
new/ExtUtils-CChecker-0.12/t/02assert.t
--- old/ExtUtils-CChecker-0.11/t/02assert.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/02assert.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,23 +1,20 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
-use Test::Fatal;
+use Test2::V0;
use ExtUtils::CChecker;
my $cc = ExtUtils::CChecker->new;
-ok(
- !exception { $cc->assert_compile_run( source => "int main(void) { return 0;
}\n", diag => "OK source" ); },
+ok( !dies { $cc->assert_compile_run( source => "int main(void) { return 0;
}\n", diag => "OK source" ); },
'Trivial C program'
);
like(
- exception { $cc->assert_compile_run( source => "int foo bar splot\n", diag
=> "broken source" ); },
+ dies { $cc->assert_compile_run( source => "int foo bar splot\n", diag =>
"broken source" ); },
qr/^OS unsupported - broken source$/,
'Broken C program does not compile and run'
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/03accessors.t
new/ExtUtils-CChecker-0.12/t/03accessors.t
--- old/ExtUtils-CChecker-0.11/t/03accessors.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/03accessors.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,28 +1,27 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
use ExtUtils::CChecker;
my $cc = ExtUtils::CChecker->new;
-is_deeply( $cc->include_dirs, [], 'include_dirs empty initially' );
+is( $cc->include_dirs, [], 'include_dirs empty initially' );
$cc->push_include_dirs( "/usr/include/foo" );
-is_deeply( $cc->include_dirs, [ "/usr/include/foo" ], 'include_dirs after
push_include_dirs' );
+is( $cc->include_dirs, [ "/usr/include/foo" ], 'include_dirs after
push_include_dirs' );
-is_deeply( $cc->extra_compiler_flags, [], 'extra_compiler_flags empty
initially' );
+is( $cc->extra_compiler_flags, [], 'extra_compiler_flags empty initially' );
$cc->push_extra_compiler_flags( "-DHAVE_FOO" );
-is_deeply( $cc->extra_compiler_flags, [ "-DHAVE_FOO" ], 'extra_compiler_flags
after push_extra_compiler_flags' );
+is( $cc->extra_compiler_flags, [ "-DHAVE_FOO" ], 'extra_compiler_flags after
push_extra_compiler_flags' );
-is_deeply( $cc->extra_linker_flags, [], 'extra_linker_flags empty initially' );
+is( $cc->extra_linker_flags, [], 'extra_linker_flags empty initially' );
$cc->push_extra_linker_flags( "-lfoo" );
-is_deeply( $cc->extra_linker_flags, [ "-lfoo" ], 'extra_linker_flags after
push_extra_linker_flags' );
+is( $cc->extra_linker_flags, [ "-lfoo" ], 'extra_linker_flags after
push_extra_linker_flags' );
done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/04module_build.t
new/ExtUtils-CChecker-0.12/t/04module_build.t
--- old/ExtUtils-CChecker-0.11/t/04module_build.t 2021-07-12
17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/t/04module_build.t 2024-03-04
22:26:02.000000000 +0100
@@ -1,10 +1,9 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
use ExtUtils::CChecker;
@@ -14,7 +13,7 @@
{
my $build = $cc->new_module_build( module_name => "ExtUtils::CChecker" );
- isa_ok( $build, "Module::Build", '$build' );
+ isa_ok( $build, [ "Module::Build" ], '$build' );
is( $build->module_name, "ExtUtils::CChecker", '$build->module_name in
default config' );
}
@@ -27,11 +26,11 @@
{
my $build = $cc->new_module_build( module_name => "ExtUtils::CChecker" );
- is_deeply( $build->include_dirs, [ "/usr/include/foo" ],
+ is( $build->include_dirs, [ "/usr/include/foo" ],
'$build->include_dirs' );
- is_deeply( $build->extra_compiler_flags, [ "-DHAVE_FOO" ],
+ is( $build->extra_compiler_flags, [ "-DHAVE_FOO" ],
'$build->extra_compiler_flags' );
- is_deeply( $build->extra_linker_flags, [ "-lfoo" ],
+ is( $build->extra_linker_flags, [ "-lfoo" ],
'$build->extra_linker_flags' );
}
@@ -44,11 +43,11 @@
extra_linker_flags => [ "-lbar" ],
);
- is_deeply( $build->include_dirs, [ "/usr/include/foo",
"/usr/include/bar" ],
+ is( $build->include_dirs, [ "/usr/include/foo", "/usr/include/bar"
],
'$build->include_dirs merged ');
- is_deeply( $build->extra_compiler_flags, [ "-DHAVE_FOO", "-DHAVE_BAR" ],
+ is( $build->extra_compiler_flags, [ "-DHAVE_FOO", "-DHAVE_BAR" ],
'$build->extra_compiler_flags merged' );
- is_deeply( $build->extra_linker_flags, [ "-lfoo", "-lbar" ],
+ is( $build->extra_linker_flags, [ "-lfoo", "-lbar" ],
'$build->extra_linker_flags merged' );
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/05defines_to.t
new/ExtUtils-CChecker-0.12/t/05defines_to.t
--- old/ExtUtils-CChecker-0.11/t/05defines_to.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/05defines_to.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,10 +1,9 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
use ExtUtils::CChecker;
@@ -15,14 +14,14 @@
END { -e "test-config.h" and unlink "test-config.h"; }
ok( defined $cc, 'defined $cc' );
-isa_ok( $cc, "ExtUtils::CChecker", '$cc' );
+isa_ok( $cc, [ "ExtUtils::CChecker" ], '$cc' );
$cc->try_compile_run(
source => "int main(void) { return 0; }\n",
define => "HAVE_C",
);
-is_deeply( $cc->extra_compiler_flags, [], 'extra_compiler_flags does not have
-D' );
+is( $cc->extra_compiler_flags, [], 'extra_compiler_flags does not have -D' );
ok( -e "test-config.h", 'test-config.h exists' );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/10find_cflags.t
new/ExtUtils-CChecker-0.12/t/10find_cflags.t
--- old/ExtUtils-CChecker-0.11/t/10find_cflags.t 2021-07-12
17:30:33.000000000 +0200
+++ new/ExtUtils-CChecker-0.12/t/10find_cflags.t 2024-03-04
22:26:02.000000000 +0100
@@ -1,10 +1,9 @@
#!/usr/bin/perl
-use v5;
-use strict;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
use ExtUtils::CChecker;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-CChecker-0.11/t/99pod.t
new/ExtUtils-CChecker-0.12/t/99pod.t
--- old/ExtUtils-CChecker-0.11/t/99pod.t 2021-07-12 17:30:33.000000000
+0200
+++ new/ExtUtils-CChecker-0.12/t/99pod.t 2024-03-04 22:26:02.000000000
+0100
@@ -1,9 +1,9 @@
#!/usr/bin/perl
-use v5;
+use v5.14;
use warnings;
-use Test::More;
+use Test2::V0;
eval "use Test::Pod 1.00";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;