Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182516 - x11-base/xorg-server should build xf86config with -fPIC
Summary: x11-base/xorg-server should build xf86config with -fPIC
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2007-06-18 22:30 UTC by Robert Buchholz (RETIRED)
Modified: 2007-08-02 00:58 UTC (History)
0 users

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


Attachments
pyxf86config-0.3.33.ebuild (pyxf86config-0.3.33.ebuild,1.08 KB, text/plain)
2007-06-18 22:31 UTC, Robert Buchholz (RETIRED)
Details
pyxf86config-0.3.33.ebuild (pyxf86config-0.3.33-Makefile-fPIC.patch,376 bytes, patch)
2007-06-18 22:31 UTC, Robert Buchholz (RETIRED)
Details | Diff
Output of compile with -fPIC (a,13.87 KB, text/plain)
2007-06-18 22:33 UTC, Robert Buchholz (RETIRED)
Details
Output of compile without -fPIC (a,13.02 KB, text/plain)
2007-06-18 22:34 UTC, Robert Buchholz (RETIRED)
Details
emerge --info (info,4.22 KB, text/plain)
2007-06-18 22:35 UTC, Robert Buchholz (RETIRED)
Details
xorg-x11-server-1.0.1-fpic-libxf86config.patch from fedora (xorg-x11-server-1.0.1-fpic-libxf86config.patch,332 bytes, patch)
2007-06-18 23:59 UTC, Robert Buchholz (RETIRED)
Details | Diff
1.3.0.0-shared-xf86config.patch (1.3.0.0-shared-xf86config.patch,1.96 KB, patch)
2007-06-22 23:09 UTC, Robert Buchholz (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:30:32 UTC
When trying to compile pyxf86config on amd64, the compile fails. The ebuild does not have amd64 keywords yet, but I believe having these is desireable.

The reason is that by default, it does not compile its shared libraries with -fPIC. When adding -fPIC to the ebuild, it still fails because it links to xorg's (non-fPIC) /usr/lib64/libxf86config.a.

I tried this with both the current pyxf86config-0.3.30 and with a bumped ebuild for pyxf86config-0.3.33 (see attachments). Also tried with xorg-server-1.2.0-r3 and 1.3.0.0.

If this is a bug in xorg-server, please reassign.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:31:26 UTC
Created attachment 122482 [details]
pyxf86config-0.3.33.ebuild

Ebuild that was (also) used for compiling this with -fPIC. You could use this to version bump :-)
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:31:46 UTC
Created attachment 122483 [details, diff]
pyxf86config-0.3.33.ebuild

Patch to add -fPIC
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:33:18 UTC
Created attachment 122485 [details]
Output of compile with -fPIC
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:34:55 UTC
Created attachment 122486 [details]
Output of compile without -fPIC
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 22:35:25 UTC
Created attachment 122487 [details]
emerge --info
Comment 6 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 23:58:26 UTC
Reassigning to x11, as I believe this is a xorg bug. I'll attach a patch that Redhat includes in their xorg-server sources since 1.0.1.

The attached patch fixes the problem (along with the pyxf86config-0.3.33.ebuild + patch earlier).
Comment 7 Robert Buchholz (RETIRED) gentoo-dev 2007-06-18 23:59:27 UTC
Created attachment 122490 [details, diff]
xorg-x11-server-1.0.1-fpic-libxf86config.patch from fedora
Comment 8 Robert Buchholz (RETIRED) gentoo-dev 2007-06-22 23:09:37 UTC
Created attachment 122842 [details, diff]
1.3.0.0-shared-xf86config.patch

Second solution that libtools the library so a non-PIC .a and a PICed .a can be built.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2007-06-22 23:16:03 UTC
(In reply to comment #8)
> Created an attachment (id=122842) [edit]
> 1.3.0.0-shared-xf86config.patch
> 
> Second solution that libtools the library so a non-PIC .a and a PICed .a can be
> built.

Looks mostly good. I assume you meant "PICed .so" above. In the patch, the reference to ../../...foo.la should be relative to $(top_builddir) instead of using ..'s.
Comment 10 Robert Buchholz (RETIRED) gentoo-dev 2007-07-15 17:42:39 UTC
What's the current status of this?
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2007-07-16 06:16:17 UTC
(In reply to comment #10)
> What's the current status of this?

I'd like a way to split this into an entirely standalone package upstream with separate releases etc. But I suspect git will, at best, force me to have a humongous repo with all history from the full X server. My goal is to somehow get it separate, but apparently file slicing of this type is not yet available in git (and may never be?).
Comment 12 Robert Buchholz (RETIRED) gentoo-dev 2007-07-18 23:18:52 UTC
(In reply to comment #11)
> I'd like a way to split this into an entirely standalone package upstream with
> separate releases etc. 

I appreciate the effort, but for the current release splitting the package is not option anymore.
If the bug could be fixed before 1.3.0 enters stable, it would avoid stable systems from recompiling to fix the issue and would enable amd64 to use the virt-manager.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2007-07-18 23:34:54 UTC
I agree, but I'm not interested in adding patches that will be in Gentoo indefinitely. That's why I want a clear route to an upstream solution.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2007-08-02 00:58:54 UTC
Added the simple PIC .a patch to 1.3.0.0. I'm going to mark this UPSTREAM now for a better solution.