Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271476 - =media-video/transcode-1.1.7: text relocation in aclib
Summary: =media-video/transcode-1.1.7: text relocation in aclib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 22:50 UTC by Rafał Mużyło
Modified: 2011-12-06 13:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for "implicit decraration" and strict aliasing (cleanup.patch,3.26 KB, patch)
2009-05-27 22:52 UTC, Rafał Mużyło
Details | Diff
attempt at text relocation fix - incomplete (text-rel-fix.patch,13.52 KB, patch)
2009-05-27 22:54 UTC, Rafał Mużyło
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2009-05-27 22:50:59 UTC
These will going to be two patches:
first is (sort of) two part -
part that is correct and trivial ("implicit declaration" fixes)
and part that looks correct (strict aliasing fixes);
second is incomplete - it's an attempt to fix text relocations,
based on patch in bug 164425. I'm not sure if it's correct
and it's definitely incomplete, cause aclib/memcpy.c (I think)
still needs to be fixed.
Comment 1 Rafał Mużyło 2009-05-27 22:52:44 UTC
Created attachment 192645 [details, diff]
fix for "implicit decraration" and strict aliasing
Comment 2 Rafał Mużyło 2009-05-27 22:54:29 UTC
Created attachment 192646 [details, diff]
attempt at text relocation fix - incomplete

I do hope this part is correct.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-07-17 20:08:15 UTC
Rafał, sent any of these to upstream?
Comment 4 Rafał Mużyło 2009-07-17 21:07:15 UTC
Not really.
While the first one is most probably correct,
it's also nearly trivial, so the upstream probably
came up with it already.
As for the second one, as I'm not sure if it's correct
and cause it's incomplete, I don't see a point of sending it upstream,
unless at very least somebody verifies its correctness.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-07-18 09:21:49 UTC
(In reply to comment #4)
> and cause it's incomplete, I don't see a point of sending it upstream,
> unless at very least somebody verifies its correctness.

You got it wrong way around; upstream is best to review it's own code.
Comment 6 Rafał Mużyło 2009-07-18 10:39:27 UTC
AFAIK, transcode is neither upstream for tomsmocomp,
nor for the missing aclib bit (I think that part
is shared between a few projects).
Comment 7 Rafał Mużyło 2009-11-04 19:36:16 UTC
OK, libtomsmocomp is still a no-go, but for transcode 1.1.5,
(where most of the cleanup.patch problems were addressed)
there's a new '--disable-x86-textrels' switch that fixes
TEXTRELs in aclib.
Comment 8 Rafał Mużyło 2009-11-04 19:37:35 UTC
And, OK, I was wrong, transcode is (to a point)
upstream for aclib.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2011-12-06 07:47:50 UTC
We need refreshed test request and patches for 1.1.7, otherwise I'll close this in a few months as NEEDINFO
Comment 10 Rafał Mużyło 2011-12-06 11:36:59 UTC
Well, as I built it with "X a52 aac alsa dvd elibc_glibc iconv imagemagick jpeg kernel_linux mjpeg mmx mp3 mpeg ogg postproc quicktime sdl sse theora truetype userland_GNU v4l vorbis x264 x86 xml xvid", the only warning from the old set, that I still observed, was:
TEXTREL usr/lib/transcode/filter_yuvdenoise.so

That one, as mentioned in comment 7, gets fixed by adding "--disable-x86-textrels". Obviously, it's x86 specific.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2011-12-06 13:20:00 UTC
+  06 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> transcode-1.1.7.ebuild:
+  USE="pic" to control text relocation(s) in aclib wrt #271476 by Rafał
+  Mużyło