Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306831 - app-editors/emacs directly refers to /usr/lib/crt0.o , etc.
Summary: app-editors/emacs directly refers to /usr/lib/crt0.o , etc.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL: http://debbugs.gnu.org/cgi/bugreport....
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2010-02-25 15:21 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2010-05-25 01:07 UTC (History)
1 user (show)

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


Attachments
emacs-22-23-crtn.o-fix.patch (emacs-22-23-crtn.o-fix.patch,2.18 KB, text/plain)
2010-02-25 15:26 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emacs-22.3-crt-dir.patch (emacs-22.3-crt-dir.patch,4.96 KB, patch)
2010-04-25 17:40 UTC, Ulrich Müller
Details | Diff
emacs-23.1-crt-dir.patch (emacs-23.1-crt-dir.patch,4.75 KB, patch)
2010-04-25 17:41 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-02-25 15:21:34 UTC
There is already a hack in emacs's ebuilds to workaround this problem on freebsd machines. I will attach a patch to do the same for linux machines.

This matters for portage-multilib people.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-02-25 15:26:39 UTC
Created attachment 221151 [details]
emacs-22-23-crtn.o-fix.patch

This workaround builds on the existing freebsd workaround and enables me to install emacs on my portage-multilib system.
Comment 2 Ulrich Müller gentoo-dev 2010-02-26 23:20:22 UTC
Please report this upstream. This should really be properly fixed, not by adding further hacks.

When an upstream fix is available, we can backport it to Emacs 21 and 22.
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-01 02:07:06 UTC
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5655
Comment 4 Ulrich Müller gentoo-dev 2010-03-01 07:52:43 UTC
Thanks for reporting it upstream.

Probably I was a bit brief in my previous reply. The problem with -print-file-name is that it is a GCC specific option, so it would break things for users of other compilers (e.g. ICC). So it really is a workaround only.

I think the proper solution is to link to /usr/lib32/crt*.o for the 32-bit ABI and to /usr/lib64/crt*.o for the 64-bit ABI (i.e. /usr/$(get_libdir)/crt*.o)?
Comment 5 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-04-24 15:33:13 UTC
(In reply to comment #4)
> Thanks for reporting it upstream.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5655#13 seems to indicate that upstream is passing the responsibility back downstream ;-). I'm not sure when this'll make it into a release or if it works, but just to note...
Comment 6 Ulrich Müller gentoo-dev 2010-04-25 17:40:30 UTC
Created attachment 229109 [details, diff]
emacs-22.3-crt-dir.patch
Comment 7 Ulrich Müller gentoo-dev 2010-04-25 17:41:13 UTC
Created attachment 229111 [details, diff]
emacs-23.1-crt-dir.patch
Comment 8 Ulrich Müller gentoo-dev 2010-04-25 17:47:02 UTC
See previous two attachments for the upstream patch backported to Emacs 22 and Emacs 23, respectively. (Feel free to backport to Emacs 21, too. ;-)

The ebuilds need the following changes:
- Add "multilib" to inherit line.
- Add "--with-crt-dir=/usr/$(get_libdir)" to econf.

Please test.
Comment 9 Ulrich Müller gentoo-dev 2010-04-25 17:47:54 UTC
(In reply to comment #8)
> The ebuilds need the following changes:
> - Add "multilib" to inherit line.
> - Add "--with-crt-dir=/usr/$(get_libdir)" to econf.

Apart from applying the patch, of course.
Comment 10 Ulrich Müller gentoo-dev 2010-05-08 08:47:08 UTC
I've added the --with-crt-dir configure option in emacs-23.2 and emacs-vcs-24.0.9999. Please test.