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

2005-09-28 Thread Steve Langasek
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.
[EMAIL PROTECTED]   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 <[EMAIL PROTECTED]>  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.
 


signature.asc
Description: Digital signature


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

2005-08-01 Thread Roger Leigh
Package: gs-esp
Version: 8+8.15rc3.dfsg.1-1
Severity: normal

[EMAIL PROTECTED]:~/build$ lintian -i
gs-esp_8+8.15rc3.dfsg.1-1_powerpc.changes
E: gs-esp: shlib-with-non-pic-code usr/lib/gs-esp/8.15/X11.so
N:
N:   The listed shared libraries contain object code that was compiled
N:   without -fPIC. All object code in shared libraries should be
N:   recompiled separately from the static libraries with the -fPIC option.
N:
N:   Another common mistake that causes this problem is linking with ``gcc
N:   -Wl,-shared'' instead of ``gcc -shared''.
N:
N:   Refer to Policy Manual, section 10.2 for details.
N:


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages gs-esp depends on:
ii  gs-common 0.3.7  Common files for different Ghostsc
ii  libc6 2.3.2.ds1-22   GNU C Library: Shared libraries an
ii  libcupsimage2 1.1.23-11  Common UNIX Printing System(tm) - 
ii  libcupsys2-gnutls10   1.1.23-11  Common UNIX Printing System(tm) - 
ii  libglib2.0-0  2.6.5-1The GLib library of C routines
ii  libjpeg62 6b-10  The Independent JPEG Group's JPEG 
ii  libpaper1 1.1.14-3   Library for handling paper charact
ii  libpng12-01.2.8rel-1 PNG library - runtime
ii  libstdc++64.0.1-3The GNU Standard C++ Library v3
ii  libtiff4  3.7.3-1Tag Image File Format (TIFF) libra
ii  libx11-6  6.8.2.dfsg.1-4 X Window System protocol client li
ii  libxext6  6.8.2.dfsg.1-4 X Window System miscellaneous exte
ii  libxt66.8.2.dfsg.1-4 X Toolkit Intrinsics
ii  xlibs 6.8.2.dfsg.1-4 X Window System client libraries m
ii  zlib1g1:1.2.3-1  compression library - runtime

Versions of packages gs-esp recommends:
ii  gsfonts   8.14+v8.11+urw-0.2 Fonts for the Ghostscript interpre
ii  psfontmgr 0.11.8-0.1 PostScript font manager -- part of

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]