Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83800 - PATCHSET native build of x86 libraries contained in emul-linux-x86-soundlibs for 2005.0 profile
Summary: PATCHSET native build of x86 libraries contained in emul-linux-x86-soundlibs ...
Status: RESOLVED REMIND
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-03-02 04:03 UTC by Dario Birtic
Modified: 2005-07-11 06:47 UTC (History)
2 users (show)

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


Attachments
patch part one (alsa-lib-1.0.8-amd64.2005.0.patch,1.86 KB, patch)
2005-03-02 04:04 UTC, Dario Birtic
Details | Diff
patch part two (alsa-oss-1.0.8-amd64.2005.0.patch,1.33 KB, patch)
2005-03-02 04:07 UTC, Dario Birtic
Details | Diff
patch for alsa-lib-1.0.8 (alsa-lib-1.0.8-amd64.2005.0.patch,1.85 KB, patch)
2005-03-03 04:39 UTC, Dario Birtic
Details | Diff
patch for alsa-oss-1.0.8 (alsa-oss-1.0.8-amd64.2005.0.patch,1.34 KB, patch)
2005-03-03 04:43 UTC, Dario Birtic
Details | Diff
Fake ebuild (emul-linux-x86-soundlibs-1000.ebuild,576 bytes, application/octet-stream)
2005-03-07 12:48 UTC, jack_mort
Details
patch for alsa-lib-1.0.8 (alsa-lib-1.0.8-amd64.2005.0.patch,1.84 KB, patch)
2005-03-07 18:56 UTC, Dario Birtic
Details | Diff
patch for alsa-oss-1.0.8 (alsa-oss-1.0.8-amd64.2005.0.patch,1.32 KB, patch)
2005-03-07 18:56 UTC, Dario Birtic
Details | Diff
patch for libsndfile-1.0.11 (libsndfile-1.0.11-amd64.2005.0.patch,1.88 KB, patch)
2005-03-07 18:57 UTC, Dario Birtic
Details | Diff
patch for jack-audio-connection-kit-0.99.0-r1 (jack-audio-connection-kit-0.99.0-r1-amd64.2005.0.patch,2.31 KB, patch)
2005-03-07 18:58 UTC, Dario Birtic
Details | Diff
patch for alsa-jack-1.0.8 (alsa-jack-1.0.8-amd64.2005.0.patch,1.78 KB, patch)
2005-03-07 18:58 UTC, Dario Birtic
Details | Diff
patch for alsa-lib-1.0.8 (alsa-lib-1.0.8-amd64.2005.0.patch,1.58 KB, patch)
2005-03-08 01:54 UTC, Dario Birtic
Details | Diff
patch for alsa-oss-1.0.8 (alsa-oss-1.0.8-amd64.2005.0.patch,1.19 KB, patch)
2005-03-08 01:56 UTC, Dario Birtic
Details | Diff
patch for libsndfile-1.0.11 (libsndfile-1.0.11-amd64.2005.0.patch,1.67 KB, patch)
2005-03-08 01:58 UTC, Dario Birtic
Details | Diff
patch for jack-audio-connection-kit-0.99.0-r1 (jack-audio-connection-kit-0.99.0-r1-amd64.2005.0.patch,2.04 KB, patch)
2005-03-08 02:00 UTC, Dario Birtic
Details | Diff
patch for alsa-jack-1.0.8 (alsa-jack-1.0.8-amd64.2005.0.patch,1.65 KB, patch)
2005-03-08 02:02 UTC, Dario Birtic
Details | Diff
Patch for alsa-lib-1.0.8 (alsa-lib-1.0.8-amd64.2005.0.patch,1.83 KB, patch)
2005-03-08 05:12 UTC, jack_mort
Details | Diff
Patch for alsa-oss-1.0.8 (alsa-oss-1.0.8-amd64.2005.0.patch,1.30 KB, patch)
2005-03-08 05:13 UTC, jack_mort
Details | Diff
New fake ebuild (emul-linux-x86-soundlibs-1000.ebuild,623 bytes, text/plain)
2005-03-08 05:16 UTC, jack_mort
Details
patch for alsa-oss-1.0.8-r1 (alsa-oss-1.0.8-r1-amd64.2005.0.patch,1.29 KB, patch)
2005-03-09 23:15 UTC, Dario Birtic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dario Birtic 2005-03-02 04:03:51 UTC
This is part one of patching alsa ebuilds to compile and emerge cleanly on a working 2005.0 profile system. This is against alsa-lib-1.0.8.ebuild

I have isolated the case for amd64 multilib only, so other ebuilds shouldn't have been affected.

With this and second part (alsa-oss-1.0.8.ebuild patch) we can drop emul-linux-x86-soundlibs dependency from the 2005.0 profile.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Dario Birtic 2005-03-02 04:04:55 UTC
Created attachment 52447 [details, diff]
patch part one
Comment 2 Dario Birtic 2005-03-02 04:07:42 UTC
Created attachment 52448 [details, diff]
patch part two

This is part two of patching alsa ebuilds to compile and emerge cleanly on a
working 2005.0 profile system. This is against alsa-oss-1.0.8.ebuild
Comment 3 Dario Birtic 2005-03-02 04:09:54 UTC
Please assign this patch to the correct team :-)

I suggest assigning it to the sound@gentoo.org or/and amd64@gentoo.org

Thanks
Comment 4 Dario Birtic 2005-03-03 04:39:05 UTC
Created attachment 52537 [details, diff]
patch for alsa-lib-1.0.8

cleanup and sanity check

- versionator not needed
- lib -> lib64
Comment 5 Dario Birtic 2005-03-03 04:43:31 UTC
Created attachment 52538 [details, diff]
patch for alsa-oss-1.0.8

sanity check

- lib -> lib64
Comment 6 Dario Birtic 2005-03-03 04:45:25 UTC
I've been testing this patches for a day on variety of programs both using 64-bit and 32-bit library backend. No problems to report thus far.
Comment 7 Dario Birtic 2005-03-07 09:41:51 UTC
Any comments on this?

I've been using modified/patched ebuild for a week now. 
Here are the results;

32-bit applications without problems:
1. armyops (aka America's Army) 
2. doom3 (linux native version)
3. vmware 
4. cedega

64-bit applications without problems:
1. xmms
2. bmp
3. xine
4. mplayer
5. esd and artsd

I haven't noticed any glitches using this patched ebuild whatsoever. Is there a reason why nobody commented on this? Since it would replace only emul-linux-x86-soundlibs package, and there are no deep dependencies on this, I strongly suggest applying this to the portage tree. And I would be very pleased if someone would comment on this.

Thanks
Comment 8 jack_mort 2005-03-07 09:54:16 UTC
I knew I had something to test about emul libs... But didn't had time... I'll get it up and let give some feedback tomorrow or in a few days !
Comment 9 Dario Birtic 2005-03-07 10:45:21 UTC
Thanks, I appriciate it. On the side note, other patches I did are quite simmiliar to this one, but there are too many packages affected by the changes, and I think that testing process would be enourmous enterprise. Here, the situation is clear, emul-linux-x86-soundlibs doesn't have parent dependencies apart of the glibc. And since we are talking about multilib aware 2005.0 profile, that shouldn't pose a problem.

Dario

P.S.
  regarding emul-linux-x86-compat patch (the libstdc++-v3 ebuild) http://bugs.gentoo.org/show_bug.cgi?id=83904 it is pretty trivial and usable, since there are only few lines of changes and multilib was already there but switched off. The problem is that only libstdc++.so.5 which it provides, doesn't cover all of the contest of emul-linux-x86-compat package.
Comment 10 jack_mort 2005-03-07 11:29:52 UTC
Well, your patch applied properly, and emerging went fine. Everything seems to be OK (given the way you made the patch, it wouldn't seem to make sense if something breaks... but, who knows ^_^) however a couple of comments :

- as it blocks emul-linux-x86-soundlibs, it should be quite reasonable to make a fake ebuild as for glibc (emul-linux-x86-glib-1000), and that's what I did
- the blocking of emul-linux-x86-soundlibs is quite strange : while I wanted to rebuild alsa-lib, portage complains about the bloking, so I unmerged soundlibs, but after the emerging of alsa-lib, it wanted to merge soundlibs, without talking about blocking packages !?
- at least, still about the blocking of emul-linux-x86-soundlibs : the emul package provides a bit more than just alsa-lib in 32bits. There is also jack and libsndfile. So I suppose, it could be a good idea to patch these ebuils the same way you did ;-)

PS : Could you see also my comment on #83904 ?
Comment 11 Dario Birtic 2005-03-07 12:01:10 UTC
- fake ebuild is a good idea, I'll look into it
- about blocking, I did a lame thing around it, actually, I think when I make a fakey, that dependency should be in both ways, because now there is no mention of alsa-lib-* in the emul-linux-x86-soundlibs package so it doesn't block it
- you are right, I'll add missing libsndfile and alsajack to it
Comment 12 jack_mort 2005-03-07 12:48:08 UTC
Created attachment 52865 [details]
Fake ebuild
Comment 13 jack_mort 2005-03-07 12:51:02 UTC
I added the fake ebuild ;-)

In fact, blocking alsa-lib from emul package is a bad idea I think, because of the same reasons why there is a fake ebuild for emul-glibc : too many packages to update (well, for soundlibs, there are far less than glibc...).
Comment 14 Dario Birtic 2005-03-07 13:04:04 UTC
Okay, I agree, but ... if we don't block emul-* stuff for soundlibs, do I need to correct libsndfile and jack to be incorporated into this (since they are separate ebuilds)? This way, environment would pick up alsa from /usr/lib32 because of precedence of directories, we would have duplicate of libasound and libalsaoss this way, on the other hand ...
Comment 15 jack_mort 2005-03-07 13:58:03 UTC
Well... in fact, wouldn't the best way be to correct the ebuilds which provides files contained in emul-* packages with patches as you did for alsa ?

Actually, I don't understand quite well what you wanted to say in your last comment...

BTW, I think a discussion like this should take place in the forums or by mail/msn/irc, no ?
Comment 16 Dario Birtic 2005-03-07 18:56:08 UTC
Created attachment 52881 [details, diff]
patch for alsa-lib-1.0.8

- adds emul-linux-x86-soundlibs-1000 awareness
- absoulute path changed to relative path
Comment 17 Dario Birtic 2005-03-07 18:56:44 UTC
Created attachment 52882 [details, diff]
patch for alsa-oss-1.0.8

- adds emul-linux-x86-soundlibs-1000 awareness
- absoulute path changed to relative path
Comment 18 Dario Birtic 2005-03-07 18:57:49 UTC
Created attachment 52883 [details, diff]
patch for libsndfile-1.0.11
Comment 19 Dario Birtic 2005-03-07 18:58:26 UTC
Created attachment 52884 [details, diff]
patch for jack-audio-connection-kit-0.99.0-r1
Comment 20 Dario Birtic 2005-03-07 18:58:56 UTC
Created attachment 52885 [details, diff]
patch for alsa-jack-1.0.8
Comment 21 Dario Birtic 2005-03-07 19:01:00 UTC
This should be all there is in emul-linux-x86-soundlibs package. After some additional testing I think we could remove old emul-*-*-soundlibs version from the 2005.0 profile.

Dario
Comment 22 jack_mort 2005-03-08 01:10:26 UTC
Well, good job ! ... But I don't think it's necessary to make these ebuilds depend on emul-soundlibs : it isn't needed for them to work, but for other progs, which already depend on emul-soundlibds. The fake ebuild is only here not to break this dependency and make the upgrade more easy (=> no need to edit *every* ebuild depending on emul-soundlibds). But as the ebuild doesn't install anything, it's clearly harmless to depend on it... Just a question of sanity ;-)
Comment 23 Dario Birtic 2005-03-08 01:53:40 UTC
Okay, sanity check :-)
Comment 24 Dario Birtic 2005-03-08 01:54:39 UTC
Created attachment 52907 [details, diff]
patch for alsa-lib-1.0.8
Comment 25 Dario Birtic 2005-03-08 01:56:24 UTC
Created attachment 52908 [details, diff]
patch for alsa-oss-1.0.8
Comment 26 Dario Birtic 2005-03-08 01:58:21 UTC
Created attachment 52909 [details, diff]
patch for libsndfile-1.0.11
Comment 27 Dario Birtic 2005-03-08 02:00:21 UTC
Created attachment 52910 [details, diff]
patch for jack-audio-connection-kit-0.99.0-r1
Comment 28 Dario Birtic 2005-03-08 02:02:04 UTC
Created attachment 52911 [details, diff]
patch for alsa-jack-1.0.8
Comment 29 jack_mort 2005-03-08 05:12:38 UTC
Created attachment 52929 [details, diff]
Patch for alsa-lib-1.0.8

Block old emul-linux-x86-soundlibs packages.
Comment 30 jack_mort 2005-03-08 05:13:05 UTC
Created attachment 52930 [details, diff]
Patch for alsa-oss-1.0.8

Block old emul-linux-x86-soundlibs packages.
Comment 31 jack_mort 2005-03-08 05:16:50 UTC
Created attachment 52932 [details]
New fake ebuild

Make emul-linux-x86-soundlibs depend on alsa-lib and alsa-oss.
Comment 32 Dario Birtic 2005-03-08 06:49:18 UTC
Updated my local portage tree with latest changes. No issues so far. 
Comment 33 Dario Birtic 2005-03-09 21:44:37 UTC
I've been using the corrected ebuild for a few days now, no problems to report whatsoever. I have noticed version bump on the alsa-oss-1.0.8 to -r1 in the portage tree, the only change is usr/lib -> /usr/${get_libdir}. Any news on the inclusion of this patches?
Comment 34 Dario Birtic 2005-03-09 23:15:57 UTC
Created attachment 53053 [details, diff]
patch for alsa-oss-1.0.8-r1

patch update to sync with portage tree
Comment 35 jack_mort 2005-03-10 02:33:56 UTC
I've created an overlay for this stuff : http://jackmort.free.fr/gentoo-2005.0-amd64/emul-soundlibs-overlay-1.0.tbz2

If someone wants to test, just create an overlay dir, extract this archive, and remerge packages.
Comment 36 Simon Stelling (RETIRED) gentoo-dev 2005-06-11 01:08:35 UTC
wow, really great work you did, Dario. I'm sure we can use this to create the
emul-* packages. However, don't expect this to work before 2006.0, since portage
isn't fully multilib-capable yet. The final goal is that *every* library in the
tree can be built in 32bit and 64bit, and it would be quite messy to patch every
single ebuild out there, so the changes will probably be made in portage itself,
not the tree.
Comment 37 Simon Stelling (RETIRED) gentoo-dev 2005-07-11 06:47:51 UTC
i'll close it for now as this is a long-term goal and we'll not need it before
2006.0