libmythtv-0.24-0 violates -fPIC policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Binary package hint: mythtv
In reviewing the mythtv binaries in the NEW queue, I came across these lintian errors:
$ lintian libmyth-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
E: libmyth-0.24-0: shlib-with-
This is in violation of section 10.2 of the Ubuntu Policy manual (http://
"If the package is _architecture: any_, then the shared library compilation and linking flags must have `-fPIC', or the package shall not build on some of the supported architectures. Any exception to this rule must be discussed on the mailing list <email address hidden>, and a rough consensus obtained. The reasons for not compiling with `-fPIC' flag must be recorded in the file `README.Debian', and care must be taken to either restrict the architecture or arrange for `-fPIC' to be used on architectures where it is required."
Changed in mythtv (Ubuntu): | |
importance: | Undecided → High |
importance: | High → Critical |
I've forced -fPIC on as much of the build as possible.
------- ------- ------- ------- -------
>-fPIC support<
-------
The builds do have --enable-pic passed to them which should enable -fPIC where
applicable. There are certain portions of the ffmpeg code that intentionally
disable this functionality though. The same libraries in the 'ffmpeg'
package don't have -fPIC either.
These are all caused by inline assmebly referring to absolute memory on
x86/x86_64 that matches on MMX flags.
On other architectures this code will not be compiled.
libmyth-0.24-0: shlib-with- non-pic- code usr/lib/ libmythavcodec. so.52.86. 1 external/ FFmpeg/ libavcodec/ x86/vp8dsp- init.c
- mythtv/
- ff_vp8dsp_init_x86
libmyth-0.24-0: shlib-with- non-pic- code usr/lib/ libmythpostproc .so.51. 2.0 external/ libpostproc/ postprocess. c mode_by_ name_and_ quality
- mythtv/
- pp_get_
libmyth-0.24-0: shlib-with- non-pic- code usr/lib/ libmythswscale. so.0.11. 0 ntext ilter
- libswscale/utils.c
- sws_rgb2rgb_init
- sws_getCachedCo
- sws_getDefaultF