Package: pdl
Version: 1:2.095-1
Tags: patch ftbfs
Usertags: hppa

The attached trivial patch fixes the build failure on hppa as can be
found in this log:
https://buildd.debian.org/status/fetch.php?pkg=pdl&arch=hppa&ver=1%3A2.095-1&stamp=1730718136&raw=0

Please apply it to the next upload of pdl.
Ideally, could you please push the patch upstream (if OK) as well?

Please note that I uploaded a manually built package in the meantime
to allow building dependend packages....

Thanks!
Helge

---

[PATCH] Fix slatec build failure on hppa platform

On hppa the object files for shared libraries need to be compiled with -fPIC to
avoid those link failures:
/usr/bin/ld: slatec/j4save.o: relocation R_PARISC_DPREL21L can not be used when 
making a shared object; recompile with -fPIC
/usr/bin/ld: slatec/tqlrat.o: relocation R_PARISC_DPREL21L can not be used when 
making a shared object; recompile with -fPIC
/usr/bin/ld: slatec/xersve.o: relocation R_PARISC_DPREL21L can not be used when 
making a shared object; recompile with -fPIC
/usr/bin/ld: BFD (GNU Binutils for Debian) 2.43.1 internal error, aborting at 
../../bfd/elf32-hppa.c:3906 in elf32_hppa_relocate_section

Fix the problem by adding hppa to the lists which need fPIC.

Signed-off-by: Helge Deller <del...@gmx.de>

diff -up ./Libtmp/Slatec/Makefile.PL.org ./Libtmp/Slatec/Makefile.PL
--- ./Libtmp/Slatec/Makefile.PL.org     2024-12-18 22:50:46.801570531 +0000
+++ ./Libtmp/Slatec/Makefile.PL 2024-12-18 22:51:28.925986224 +0000
@@ -81,7 +81,7 @@ undef &MY::postamble; # suppress warning
         my $mycompiler     = $f77->compiler();
         my $mycflags       = $f77->cflags();
        my $orig = pdlpp_postamble_int(@pack);
-       my $hack_64bit = $Config{archname}=~m/amd64|i686|x86_64/ ?" -fPIC " : 
"";
+       my $hack_64bit = $Config{archname}=~m/amd64|i686|x86_64|hppa|hppa64/ ?" 
-fPIC " : "";
        $orig =~ s/:\s*slatec\.pd/: slatec.pd/;
        $orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n";
        join "\n", $orig, map "$_\$(OBJ_EXT): $_.f

Reply via email to