public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Module-CPANTS-Analyse] epel8: Use relative symlinks rather than absolute symlinks in test (GH#51)
@ 2026-07-09 10:48 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-07-09 10:48 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/perl-Module-CPANTS-Analyse
            Branch : epel8
            Commit : 7bcd98f59c9ac56efd557b4c760cc40faaaec98b
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2026-07-09T11:44:10+01:00
            Stats  : +30/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-Module-CPANTS-Analyse/c/7bcd98f59c9ac56efd557b4c760cc40faaaec98b?branch=epel8

            Log:
            Use relative symlinks rather than absolute symlinks in test (GH#51)

This fixes FTBFS with perl-Archive-Tar-2.30-2.el8_10 onwards.

---
diff --git a/Module-CPANTS-Analyse-0.99-symlink.patch b/Module-CPANTS-Analyse-0.99-symlink.patch
new file mode 100644
index 0000000..3ca043c
--- /dev/null
+++ b/Module-CPANTS-Analyse-0.99-symlink.patch
@@ -0,0 +1,20 @@
+--- t/analyse/manifest.t
++++ t/analyse/manifest.t
+@@ -50,7 +50,7 @@ test_distribution {
+ MANIFEST
+ EOF
+ 
+-  eval { symlink "$dir/MANIFEST", "$dir/MANIFEST.lnk" };
++  eval { symlink "MANIFEST", "$dir/MANIFEST.lnk" };
+   if ($@) {
+     diag "symlink is not supported";
+     return;
+@@ -66,7 +66,7 @@ test_distribution {
+ MANIFEST
+ EOF
+ 
+-  eval { symlink "$dir/MANIFEST", "$dir/MANIFEST.lnk" };
++  eval { symlink "MANIFEST", "$dir/MANIFEST.lnk" };
+   if ($@) {
+     diag "symlink is not supported";
+     return;

diff --git a/perl-Module-CPANTS-Analyse.spec b/perl-Module-CPANTS-Analyse.spec
index f7cf27d..5857f07 100644
--- a/perl-Module-CPANTS-Analyse.spec
+++ b/perl-Module-CPANTS-Analyse.spec
@@ -2,12 +2,13 @@
 
 Name:           perl-Module-CPANTS-Analyse
 Version:        0.99
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Generate Kwalitee ratings for a distribution
 License:        GPL+ or Artistic
 URL:            https://metacpan.org/release/Module-CPANTS-Analyse
 Source0:        https://cpan.metacpan.org/modules/by-module/Module/Module-CPANTS-Analyse-%{version}.tar.gz
 Source1:        https://raw.githubusercontent.com/cpants/Module-CPANTS-Analyse/master/xt/kwalitee/has_meta_json.t
+Patch1:         Module-CPANTS-Analyse-0.99-symlink.patch
 BuildArch:      noarch
 # Module Build
 BuildRequires:  coreutils
@@ -92,10 +93,15 @@ metadata for all distributions on CPAN.
 %prep
 %setup -q -n Module-CPANTS-Analyse-%{version}
 
+
 # File missing from dist, needed for xt/kwalitee.t
 # https://github.com/cpants/Module-CPANTS-Analyse/issues/38
 cp -p %{SOURCE1} xt/kwalitee/
 
+# Use relative symlinks rather than absolute symlinks in test
+# https://github.com/cpants/Module-CPANTS-Analyse/pull/51
+%patch -P 1
+
 %build
 perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -137,6 +143,9 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
 %{_mandir}/man3/Module::CPANTS::Kwalitee::Version.3*
 
 %changelog
+* Thu Jul  9 2026 Paul Howarth <paul@city-fan.org> - 0.99-2
+- Use relative symlinks rather than absolute symlinks in test (GH#51)
+
 * Tue Jan 15 2019 Paul Howarth <paul@city-fan.org> - 0.99-1
 - Update to 0.99
   - Module::CPANTS::Kwalitee now uses Module::Find to find Kwalitee modules

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-09 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-09 10:48 [rpms/perl-Module-CPANTS-Analyse] epel8: Use relative symlinks rather than absolute symlinks in test (GH#51) Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox