pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libXt x11/libXt: Fix pie-bitrotted cross-build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2baa1f86bde0
branches:  trunk
changeset: 376289:2baa1f86bde0
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Mon Apr 04 12:41:24 2022 +0000

description:
x11/libXt: Fix pie-bitrotted cross-build.

diffstat:

 x11/libXt/distinfo                       |   3 ++-
 x11/libXt/patches/patch-util_Makefile.in |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r ab169dac53ac -r 2baa1f86bde0 x11/libXt/distinfo
--- a/x11/libXt/distinfo        Mon Apr 04 12:35:43 2022 +0000
+++ b/x11/libXt/distinfo        Mon Apr 04 12:41:24 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.17 2021/10/26 11:34:07 nia Exp $
+$NetBSD: distinfo,v 1.18 2022/04/04 12:41:24 riastradh Exp $
 
 BLAKE2s (libXt-1.2.1.tar.bz2) = c6ce46ac3e89ecb54ad821be76578f6c4e60b6a7ae0d98c0df167f8196889987
 SHA512 (libXt-1.2.1.tar.bz2) = 6877af61ba91eeed6b6f80471b84f354ad0ec0827249c7ee0a00c13508063fe8d2696dd400a4bdbc6ca2ff67cbe1317ad5ac24522fd96099dc56535e33ca052c
 Size (libXt-1.2.1.tar.bz2) = 784610 bytes
+SHA1 (patch-util_Makefile.in) = 388bc6eeed85f30f13daa93d9efc48b31ef1b76d
diff -r ab169dac53ac -r 2baa1f86bde0 x11/libXt/patches/patch-util_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libXt/patches/patch-util_Makefile.in  Mon Apr 04 12:41:24 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-util_Makefile.in,v 1.1 2022/04/04 12:41:24 riastradh Exp $
+
+The rules to build the makestrs tool go through libtool, which goes
+through the wrong wrappers as if for cross-compiling, which is wrong
+for a tool that is run during the build.  In practice, this manifests
+as a PIE linking failure: the .o file was built without -fPIE, but the
+wrapper causes linker to be invoked with -pie.  Just use CC_FOR_BUILD
+directly to avoid this.
+
+--- util/Makefile.in.orig      2021-01-24 14:47:52.000000000 +0000
++++ util/Makefile.in
+@@ -394,7 +394,11 @@ clean-noinstPROGRAMS:
+ 
+ makestrs$(EXEEXT): $(makestrs_OBJECTS) $(makestrs_DEPENDENCIES) $(EXTRA_makestrs_DEPENDENCIES) 
+       @rm -f makestrs$(EXEEXT)
+-      $(AM_V_CCLD)$(LINK) $(makestrs_OBJECTS) $(makestrs_LDADD) $(LIBS)
++      $(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(makestrs_OBJECTS) $(LIBS_FOR_BUILD)
++
++makestrs.$(OBJEXT): makestrs.c
++      $(AM_V_CC)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
++      $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+ 
+ mostlyclean-compile:
+       -rm -f *.$(OBJEXT)



Home | Main Index | Thread Index | Old Index