Parcourir la source

fix linking of DB_File under Solaris (where OS librt is required because of fdatasync call in OpenPKG's libdb)

Ralf S. Engelschall il y a 20 ans
Parent
commit
149e5330af
2 fichiers modifiés avec 15 ajouts et 1 suppressions
  1. 12 0
      perl-db/perl-db.patch
  2. 3 1
      perl-db/perl-db.spec

+ 12 - 0
perl-db/perl-db.patch

@@ -0,0 +1,12 @@
+Index: DB_File-1.814/Makefile.PL
+--- DB_File-1.814/Makefile.PL.orig	2005-11-16 20:34:27.731275036 +0100
++++ DB_File-1.814/Makefile.PL	2005-11-16 20:40:58.010193923 +0100
+@@ -29,7 +29,7 @@
+ }
+ 
+ # Solaris is special.
+-#$LIBS .= " -lthread" if $^O eq 'solaris' ;
++$LIBS .= " -lrt" if $^O eq 'solaris' ;
+ 
+ # AIX is special.
+ $LIBS .= " -lpthread" if $^O eq 'aix' ;

+ 3 - 1
perl-db/perl-db.spec

@@ -39,12 +39,13 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20051112
+Release:      20051116
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/BerkeleyDB/BerkeleyDB-%{V_berkeleydb}.tar.gz
 Source1:      http://www.cpan.org/modules/by-module/DB_File/DB_File-%{V_db_file}.tar.gz
 Source2:      http://www.cpan.org/modules/by-module/DB_File/DB_File-Lock-%{V_db_file_lock}.tar.gz
+Patch0:       perl-db.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -83,6 +84,7 @@ AutoReqProv:  no
     %setup -q -c
     %setup -q -T -D -a 1
     %setup -q -T -D -a 2
+    %patch -p0
 
 %build