Your message dated Thu, 13 Oct 2016 23:58:45 +0200
with message-id <645bda10-6c13-2b4c-21c2-6f623daf0...@googlemail.com>
and subject line Re: Bug#528080: ffmpeg-debian: ffmpeg still has 
shlib-with-non-pic-code lintian errors
has caused the Debian Bug report #528080,
regarding ffmpeg-debian: Libraries have text relocations
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
528080: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528080
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libswscale0
Version: 0.svn20080206-8
Severity: normal

http://etbe.coker.com.au/2007/02/10/execmod/

The above URL has background information on the execmod denial from SE
Linux.

The following command shows that some parts of the library have not been
comiled with -fpic or -fPIC - in this case it's actually assembly code
which is not position independent.

# eu-findtextrel /usr/lib/libswscale.so.0|uniq

The following patch fixes this.

diff -ru ffmpeg-free-0.svn20080206/libswscale/rgb2rgb.c 
fixed/libswscale/rgb2rgb.c
--- ffmpeg-free-0.svn20080206/libswscale/rgb2rgb.c      2008-01-29 
14:58:10.000000000 +0000
+++ fixed/libswscale/rgb2rgb.c  2008-08-04 10:15:06.000000000 +0000
@@ -158,6 +158,9 @@
 #define RENAME(a) a ## _C
 #include "rgb2rgb_template.c"
 
+/* The MMX, MMX2, and 3DNOW versions all have text relocations */
+# if 0
+
 #if defined(ARCH_X86) && defined(CONFIG_GPL)
 
 //MMX versions
@@ -188,6 +191,7 @@
 #include "rgb2rgb_template.c"
 
 #endif //ARCH_X86 || ARCH_X86_64
+#endif
 
 /*
  rgb15->rgb16 Original by Strepto/Astral



--- End Message ---
--- Begin Message ---
Hi,

This only affects i386, where non-pic code is used for performance reasons.

I'm closing this wontfix bug now, because I think the topic is sufficiently
documented in the lintian overrides, e.g.:
# According to Debian policy [1], non position independent code is permitted
# in a shared library on i386 and position independent code may have a
# performance penalty, especially on i386.
# Therefore -fPIC is not used by the upstream build system on i386.
# 1: https://www.debian.org/doc/debian-policy/footnotes.html#f83
libavcodec57 [i386]: shlib-with-non-pic-code usr/lib/i386*/libavcodec.so.*

Best regards,
Andreas

--- End Message ---
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to