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

Bug#320851: usr/lib/gs-esp/8.15/X11.so: Shared library is not PIC



tags 320851 patch
thanks

Attached please find a patch for this bug which forces the use of -fPIC when
building all of the .o files used in X11.so.  I'm currently in the process
of doing a test build with this patch on paer, and will plan to upload an
NMU for this bug if it works, if you don't beat me to it.  Even though there
is another open RC bug against gs-esp, this particular FTBFS bug is
preventing other packages from being buildable on hppa.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/
diff -u gs-esp-8+8.15rc4.dfsg.1/debian/changelog gs-esp-8+8.15rc4.dfsg.1/debian/changelog
--- gs-esp-8+8.15rc4.dfsg.1/debian/changelog
+++ gs-esp-8+8.15rc4.dfsg.1/debian/changelog
@@ -1,3 +1,12 @@
+gs-esp (8+8.15rc4.dfsg.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Medium-urgency upload for RC bugfix.
+  * Use -fPIC for building all objects which will be linked into the
+    X11.so DSO.  Closes: #320851.
+
+ -- Steve Langasek <vorlon@debian.org>  Wed, 28 Sep 2005 00:58:49 -0700
+
 gs-esp (8+8.15rc4.dfsg.1-2) unstable; urgency=low
 
   * Disabled FAPI.  It caused too much headaches - closes: #323430, #322553, #322159, #321436, #321205, #321049
only in patch2:
unchanged:
--- gs-esp-8+8.15rc4.dfsg.1.orig/src/devs.mak
+++ gs-esp-8+8.15rc4.dfsg.1/src/devs.mak
@@ -457,7 +457,7 @@
 	$(GLCCSHARED) $(XINCLUDE) $(GLO_)gdevx.$(OBJ) $(C_) $(GLSRC)gdevx.c
 
 $(GLOBJ)gdevxcmp.$(OBJ) : $(GLSRC)gdevxcmp.c $(GDEVX) $(math__h)
-	$(GLCC) $(XINCLUDE) $(GLO_)gdevxcmp.$(OBJ) $(C_) $(GLSRC)gdevxcmp.c
+	$(GLCCSHARED) $(XINCLUDE) $(GLO_)gdevxcmp.$(OBJ) $(C_) $(GLSRC)gdevxcmp.c
 
 $(GLOBJ)gdevxini.$(OBJ) : $(GLSRC)gdevxini.c $(GDEVX) $(memory__h)\
  $(gserrors_h) $(gsparamx_h) $(gxdevmem_h) $(gdevbbox_h)
@@ -467,7 +467,7 @@
 # const/non-const cast required by the X headers that we can't work around.
 $(GLOBJ)gdevxres.$(OBJ) : $(GLSRC)gdevxres.c $(std_h) $(x__h)\
  $(gsmemory_h) $(gstypes_h) $(gxdevice_h) $(gdevx_h)
-	$(CC_NO_WARN) $(GLCCFLAGS) $(XINCLUDE) $(GLO_)gdevxres.$(OBJ) $(C_) $(GLSRC)gdevxres.c
+	$(GLCCSHARED) $(GLCCFLAGS) $(XINCLUDE) $(GLO_)gdevxres.$(OBJ) $(C_) $(GLSRC)gdevxres.c
 
 $(GLOBJ)gdevxxf.$(OBJ) : $(GLSRC)gdevxxf.c $(GDEVX) $(math__h) $(memory__h)\
  $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
only in patch2:
unchanged:
--- gs-esp-8+8.15rc4.dfsg.1.orig/src/lib.mak
+++ gs-esp-8+8.15rc4.dfsg.1/src/lib.mak
@@ -847,7 +847,7 @@
 $(GLOBJ)gsparamx.$(OBJ) : $(GLSRC)gsparamx.c $(string__h)\
  $(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gsparamx_h)\
  $(gstypes_h)
-	$(GLCC) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
+	$(GLCCSHARED) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
 
 # Future replacement for gsparams.c
 $(GLOBJ)gsparam2.$(OBJ) : $(GLSRC)gsparam2.c $(GXERR) $(memory__h)\
@@ -1045,7 +1045,7 @@
 
 # Provide a mapping between StandardEncoding and ISOLatin1Encoding.
 $(GLOBJ)gdevemap.$(OBJ) : $(GLSRC)gdevemap.c $(AK) $(std_h)
-	$(GLCC) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
+	$(GLCCSHARED) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
 
 ###### Create a pseudo-"feature" for the entire graphics library.
 

Attachment: signature.asc
Description: Digital signature


Reply to: