public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/biber] epel10: Use relative symbolic links in the tests
@ 2026-08-18 11:23 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-18 11:23 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/biber
Branch : epel10
Commit : 7e0a1ebed7ec6b8005be53774ccdbe2746992ca8
Author : Petr Písař <ppisar@redhat.com>
Date   : 2022-05-25T13:23:44+02:00
Stats  : +9/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/biber/c/7e0a1ebed7ec6b8005be53774ccdbe2746992ca8?branch=epel10

Log:
Use relative symbolic links in the tests

---
diff --git a/biber.spec b/biber.spec
index 3c82dcb..8c9a536 100644
--- a/biber.spec
+++ b/biber.spec
@@ -210,15 +210,21 @@ perl Build.PL installdirs=vendor
 mkdir -p %{buildroot}%{_libexecdir}/%{name}
 cp -a t %{buildroot}%{_libexecdir}/%{name}
 mkdir -p %{buildroot}%{_libexecdir}/%{name}/data/schemata
-ln -s %{perl_vendorlib}/Biber/biber-tool.conf \
+ln -s "$(realpath --relative-to \
+        %{buildroot}%{_libexecdir}/%{name}/data \
+        %{buildroot}%{perl_vendorlib}/Biber/biber-tool.conf)" \
     %{buildroot}%{_libexecdir}/%{name}/data
 for F in {bcf,config}.{rnc,rng}; do
+    # Keep absolute symlinls. Relative ones break the tests.
     ln -s %{perl_vendorlib}/Biber/"$F" \
         %{buildroot}%{_libexecdir}/%{name}/data/schemata
 done
 %if %{with biber_enables_extra_test}
 mkdir %{buildroot}%{_libexecdir}/%{name}/bin
-ln -s %{_bindir}/%{name} %{buildroot}%{_libexecdir}/%{name}/bin
+ln -s "$(realpath --relative-to \
+        %{buildroot}%{_libexecdir}/%{name}/bin \
+        %{buildroot}%{_bindir}/%{name})" \
+    %{buildroot}%{_libexecdir}/%{name}/bin
 %endif
 cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
 #!/usr/bin/bash
@@ -261,6 +267,7 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print
 %changelog
 * Wed May 25 2022 Petr Pisar <ppisar@redhat.com> - 2.17-3
 - Adapt to Perl 5.36
+- Use relative symbolic links in the tests
 
 * Mon Jan 31 2022 Petr Pisar <ppisar@redhat.com> - 2.17-2
 - Provide bcfversion for textlive-biblatex to depend on (bug #2048536)

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

only message in thread, other threads:[~2026-08-18 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 11:23 [rpms/biber] epel10: Use relative symbolic links in the tests 

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