[packages/newt] drop gold patch entirely and force GNU_LD=1
atler
atler at pld-linux.org
Sat Nov 26 19:06:21 CET 2022
commit 2d6b6c90c6a12dd8c928e4935cb0e45988b38e3b
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Nov 26 19:01:08 2022 +0100
drop gold patch entirely and force GNU_LD=1
any modern linker, including lld and mold, supports --version-script and
-soname so skip this check. especially that logic does not involve
$LDFLAGS which might affect used linker through -fuse-ld.
gold.patch | 11 -----------
newt.spec | 3 +--
2 files changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/newt.spec b/newt.spec
index d9e2490..b67f4b7 100644
--- a/newt.spec
+++ b/newt.spec
@@ -25,7 +25,6 @@ Source0: https://releases.pagure.org/newt/%{name}-%{version}.tar.gz
Patch0: %{name}-0.51.6-if1close.patch
Patch1: %{name}-nopython.patch
Patch2: %{name}-make.patch
-Patch3: gold.patch
URL: https://pagure.io/newt
BuildRequires: autoconf >= 2.50
%if %{with doc}
@@ -183,7 +182,6 @@ przyjazny.
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
%build
%{__autoconf}
@@ -196,6 +194,7 @@ CPPFLAGS="%{rpmcppflags} -I/usr/include/slang"
%{__make} \
PYTHONVERS="%{?with_python2:python%{py_ver}} %{?with_python3:python%{py3_ver}}" \
LIBTCL=-ltcl \
+ GNU_LD=1 \
%{!?with_python:SNACKSO=}
%if %{with doc}
diff --git a/gold.patch b/gold.patch
deleted file mode 100644
index 91ba806..0000000
--- a/gold.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- newt-0.52.13/configure.ac.wiget 2011-07-17 17:07:20.843018152 +0200
-+++ newt-0.52.13/configure.ac 2011-07-17 17:09:11.307821301 +0200
-@@ -19,7 +19,7 @@ AC_PROG_GREP
- AC_MSG_CHECKING([for GNU ld])
- LD=$($CC -print-prog-name=ld 2>&5)
-
--if test $($LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld") = 0; then
-+if test $($LD -v 2>&1 | $ac_cv_path_GREP -E -c "GNU (go)?ld") = 0; then
- # Not
- GNU_LD=""
- AC_MSG_RESULT([no])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/newt.git/commitdiff/2d6b6c90c6a12dd8c928e4935cb0e45988b38e3b
More information about the pld-cvs-commit
mailing list