public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Module-CPANTS-Analyse] epel8: Use relative symlinks rather than absolute symlinks in test (GH#51)
Date: Thu, 09 Jul 2026 10:48:11 GMT	[thread overview]
Message-ID: <178359409188.1.14961635599645542330.rpms-perl-Module-CPANTS-Analyse-7bcd98f59c9a@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-07-09 10:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178359409188.1.14961635599645542330.rpms-perl-Module-CPANTS-Analyse-7bcd98f59c9a@fedoraproject.org \
    --to=paul@city-fan.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox