[packages/epic4] - remove broken perl misdetection

baggins baggins at pld-linux.org
Fri Aug 26 09:36:49 CEST 2022


commit 2fe6836b6c94d25807d1b1ef2d6a6de3d266d7a5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Aug 26 09:36:11 2022 +0200

    - remove broken perl misdetection

 epic4.spec        |  2 ++
 perl-config.patch | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
---
diff --git a/epic4.spec b/epic4.spec
index 4c91584..e5f190b 100644
--- a/epic4.spec
+++ b/epic4.spec
@@ -14,6 +14,7 @@ Patch0:		%{name}-DESTDIR.patch
 Patch1:		%{name}-gethostname_is_in_libc_aka_no_libnsl.patch
 Patch2:		%{name}-config_file_path.patch
 Patch3:		gcc10.patch
+Patch4:		perl-config.patch
 URL:		http://www.epicsol.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -39,6 +40,7 @@ program wykorzystywany do łączenia się z serwerami IRC na całym
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__aclocal}
diff --git a/perl-config.patch b/perl-config.patch
new file mode 100644
index 0000000..1b516dd
--- /dev/null
+++ b/perl-config.patch
@@ -0,0 +1,25 @@
+--- epic4-2.10.6/configure.in~	2022-08-26 09:31:02.000000000 +0200
++++ epic4-2.10.6/configure.in	2022-08-26 09:34:48.375184978 +0200
+@@ -639,20 +639,12 @@
+ [  --with-perl[=PATH]       Compile with perl support.],
+ [ test -z "$withval" && withval=yes ],
+ )
+-test "xno" != "x$withval" && for base in $withval /usr/local /usr /
+-do
+-	FOUND=
+-	for ext in so a dll ; do
+-		test -r $base/lib/libperl.$ext && FOUND=1
+-		test -r $base/libperl.$ext && FOUND=1
+-	done
+-	test -n "$FOUND" || continue
++if test "xno" != "x$withval"; then
+ 	AC_MSG_RESULT(yes)
+ 	LIBS="$LIBS `perl -MExtUtils::Embed -e ldopts`"
+ 	PERLDOTOH="perl.o"
+ 	AC_DEFINE(PERL)
+-	break
+-done
++fi
+ test -z "$PERLDOTOH" && AC_MSG_RESULT(no)
+ withval=''
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/epic4.git/commitdiff/2fe6836b6c94d25807d1b1ef2d6a6de3d266d7a5



More information about the pld-cvs-commit mailing list