CULVER CITY, CA, June 14, 2007: 4Front Technologies is proud to announce the release of the source code to Open Sound System (OSS) v4.0. The software currently runs on Linux, Solaris, SCO UnixWare and FreeBSD platforms. Open Sound System is now available under 3 licenses: -GNU Public License (GPL) version 2 -Common Development and Distribution License (CDDL) for all operating systems that have full source code available under the BSD or CDDL licenses. -4Front commercial license for using Open Sound incompatible with open source licenses listed above. Commercial licenses are also available for entities not wishing to use Open Sound System under any of the above open source licenses Sources can be downloaded from http://developer.opensound.com/sources/ Reproducible: Always
*** Bug 184274 has been marked as a duplicate of this bug. ***
Ive found two ebuilds in audio overlay: http://gimpel.ath.cx/~tom/files/portage-overlay/gimpel/media-sound/oss-linux/oss-linux-4.0_rc8.ebuild http://gimpel.ath.cx/~tom/files/portage-overlay/gimpel/media-sound/oss/oss-4.0.ebuild But dosnot works both for me. Upstream source distribution compiled succefully (by hand, outside ebuild environment)
Created attachment 129295 [details] media-sound/oss4-1004.ebuild Attached ebuild is not too nice, but successfully emerges oss4
Created attachment 129654 [details] oss-4.0.1006.ebuild it is based on desowin's but a little more polished enjoy! Caution!!! I'm a beginner so it may have some flaws, but it seems to work.
Created attachment 129655 [details, diff] 4.0.1006-change-cflags.patch cflags patch
Created attachment 129657 [details, diff] 4.0.1006-make.patch patching makefiles these patches replace desowin's sed commands, actually that's how i made them.
Created attachment 129658 [details] oss Simple gentoo initscript for OSS4. I think I got this one from Monkeh, Thanks!
Expected file structure by my ebuild (applies to current source drop): ${OVERLAY}/media-sound/oss/oss-4.0.1006.ebuild ${OVERLAY}/media-sound/oss/files/4.0.1006-change-cflags.patch ${OVERLAY}/media-sound/oss/files/4.0.1006-make.patch ${OVERLAY}/media-sound/oss/files/oss Any improvements are welcome, hopefully one day this will get into portage. Cristi (majeru) Magherusan
Comment on attachment 129654 [details] oss-4.0.1006.ebuild improved ebuild for oss-v4
Comment on attachment 129657 [details, diff] 4.0.1006-make.patch patches the makefiles
Comment on attachment 129658 [details] oss simple initscript
Created attachment 131327 [details] oss-4.0.1007.ebuild Hello, New in this version: * Bumped the version to build 1007. * Switched back to sed commands for the Makefiles, for easier maintainance. * Included a small patch written by seawright that works around the ossxmix crashes. Enjoy! Regards, Cristi
Created attachment 131329 [details, diff] ossxmix_fix_segfault.patch works around the ossxmix segfaults
Created attachment 133153 [details] oss-4.0.1008.ebuild bump to build 1008 and minor fixes The 4.0.1007-ossxmix_fix_segfault.patch file must be renamed ossxmix_fix_segfault.patch Cristi
Comment on attachment 131329 [details, diff] ossxmix_fix_segfault.patch renamed the patch to be version-independent
WARNING! The init script should be called something DIFFERENT and not "oss", as oss itself apparently installs a gentoo-unfriendly script into /etc/init.d by that name at the first run of soundon, thus overwriting ours. I suggest the gentoo script be called "oss4".
Created attachment 134965 [details] This version installs the init script as /etc/init.d/oss4 as opposed to /etc/init.d/oss - see comment for reason
Created attachment 135027 [details, diff] soundon_no_libsalsa.patch I've found a most disturbing behavior in soundon. It overwrites the alsa library symlinks with the libsalsa emulation library. Too bad that libsalsa is far from production quality, and practically kills all alsa-dependent apps. I created a patch to disable this behavior, and a new ebuild that uses the patch.
Created attachment 135029 [details] oss-4.0.1008-r2.ebuild
(In reply to comment #16) > The init script should be called something DIFFERENT and not "oss", as oss > itself apparently installs a gentoo-unfriendly script into /etc/init.d by that > name at the first run of soundon, thus overwriting ours. > > I suggest the gentoo script be called "oss4". Shouldn't we just patch it to don't install that gentoo-unfriendly script? or perhaps overwrite setup/Linux/oss/etc/S89oss with our own script?
Created attachment 135932 [details] oss-4.0.1009.ebuild Hello, I have updated the ebuild, as follows: New in this version (2007-11-14): * version bump to build 1009 * got rid of a couple of sed's * removed the ossxmix patch, not needed anymore * introduced the libsalsa patch from Jozsef Daniel, but didn't tested it * the libsalsa patch was modified to be applied at unpack() * made our initscript install as it should, by overwriting the default one
Created attachment 135933 [details] soundon_no_libsalsa.patch modified it so it can be applied at unpack()
I've emerged oss-4.0.1009 but I'm getting: # /etc/init.d/oss start * Caching service dependencies ... [ ok ] * Starting OSS ... /usr/sbin/soundon: line 38: 7872 Segmentation fault /usr/sbin/ossdetect -v >> $LOG No /usr/lib/oss/etc/installed_drivers - cannot continue /dev/mixer: No such device or address * Failed to start OSS So I've created file: /usr/lib/oss/etc/installed_drivers # /etc/init.d/oss start * Starting OSS ... Relinking OSS kernel modules for "2.6.24-rc3-zen1 SMP preempt mod_unload CORE2 " This may take few moments - please stand by... Relinking OSS kernel modules finished /usr/sbin/soundon: line 181: 14897 Segmentation fault /usr/sbin/ossdetect -d >> $LOG 2>&1 OSS started OK After that only osscore is loaded... OSS4 compiled by hand works great.
(In reply to comment #23) > /usr/sbin/soundon: line 38: 7872 Segmentation fault /usr/sbin/ossdetect -v emerge --info please
(In reply to comment #24) > emerge --info > please > http://tallica.pl/emerge-info
No offense, but if you really want to get some help stop being a ricer and use a normal/supported/official kernel.
(In reply to comment #26) > No offense, but if you really want to get some help stop being a ricer and use > a normal/supported/official kernel. > Why do you think its kernel... as you can see above OSS4 compiled manually works perfect...
On gentoo-sources (normal/supported/official kernel :]): # /etc/init.d/oss start * Caching service dependencies ... [ ok ] * Starting OSS ... /usr/sbin/soundon: line 38: 12935 Segmentation fault /usr/sbin/ossdetect -v >> $LOG No /usr/lib/oss/etc/installed_drivers - cannot continue /dev/mixer: No such file or directory * Failed to start OSS # touch /usr/lib/oss/etc/installed_drivers # /etc/init.d/oss start * Starting OSS ... Relinking OSS kernel modules for "2.6.22-gentoo-r8 SMP preempt mod_unload CORE2 " This may take few moments - please stand by... Relinking OSS kernel modules finished /usr/sbin/soundon: line 181: 18560 Segmentation fault /usr/sbin/ossdetect -d >> $LOG 2>&1 OSS started OK /dev/mixer: No such file or directory * Failed to start OSS As you can see it's not kernel problem....
I've just tried oss-4.0.1008-r2.ebuild and it works! Modules are loaded, no segmentation faults... WTF? I'm 99% sure its not my system configuration... Maybe 4front-tech changed something in source package: oss-v4.0-build1009-src-gpl.tar.bz2? And the problem is soundon_no_libsalsa.patch? Could someone make md5 sums of oss-v4.0-build1009-src-gpl.tar.bz2? Would be great if someone could rebuild oss4 with redownloaded source package. Thanks!
Ok, so if it's not a kernel issue let's see what can be done about this... I tried to reproduce it too: did a "rm -r /lib/modules/`uname -r`/kernel/oss" then "emerge oss;/etc/init.d/oss start" and it still works like a charm, so couldn't reproduce it. My kernel is 2.6.22-gentoo-r9. Please try debugging ossdetect with gdb or strace and see what makes it crash. Also you can modifyi the 1009 ebuild and restore the sed commands from 1008, remove the patch and see if that fixes anything. I removed the sources from the distfiles directory, and it seems the sources haven't changed since the release. This is the MD5: MD5 960d55170e9ec467e9200c6521dfc5ab oss-v4.0-build1009-src-gpl.tar.bz2 1327365
Created attachment 137503 [details] oss-v4.1test0-071114 test drop ebuild here is my ebuild for the oss-v4.1test0-071114 test drop this build builds against the 2.6.23 kernel ok, and contains the long awaited open sourced envy24* drivers! i also made one new patch, and updated the soundon_no_libsalsa patch to patch cleanly against this version... they'll follow this attachment
Created attachment 137504 [details, diff] updated for oss-v4.1test0-071114
Created attachment 137506 [details, diff] srcconf patch to make it configure correctly this patch is thanks to seawright, his original is found here: http://www.4front-tech.com/forum/viewtopic.php?p=6667&sid=e6de291573e3415834a0818e4842f184
If anyone wants to know how to jerry-rig Timidity onto this so Wine has a MIDI output path for older games, I've written up a guide. It's a bit fragile, but it works. http://blog.ssokolow.com/archives/2007/12/05/how-to-get-timidity-to-work-more-or-less-as-a-software-synth-with-oss-4/ I've been having some DNS problems lately, so if you see an error 404, try again later. I'm looking into alternate hosting.
What is wrong with using epatch in the ebuild? (In reply to comment #2) > Ive found two ebuilds in audio overlay: Uhoh, the 4.0 ebuild was never even tested nor meant to work. The rc8 one somewhat worked, but doing the patches was too much a pita.
(In reply to comment #35) > What is wrong with using epatch in the ebuild? well, the oss build system is what... this thing uses the most insane build system i've ever seen, and it makes epatch cry. it's possible to use epatch, but just horribly frustrating. as an example, it is impossible to apply my srcconf patch to the 4.1 testing branch using epatch. it just won't patch.
Created attachment 138566 [details] oss-v4.1test0-071126 test drop ebuild As far as I can tell, most of the changes are to Intel HDAudio. The srcconf problem is still there, and they haven't taken the clue to remove libsalsa yet.
Created attachment 138567 [details, diff] oss-v4.1test0-071126 patch to remove libsalsa i've decided to adjust my patching method a little, from now on, most of the time these patches will merely need to be version-bumped to work on new versions.
Created attachment 138569 [details] oss-v4.1test0-071126 patch to fix srcconf i've decided to adjust my patching method a little, from now on, most of the time these patches will merely need to be version-bumped to work on new versions.
Hello, I have set up a mercurial repo containing some OSS4 ebuilds, included the version bump to the last stable build, 1011. Some of the older ones may be broken, but who cares :p You can get it by running "hg clone http://hg.atheme.org/users/majeru/portage-overlay" Best regards, Cristi
Created attachment 139887 [details, diff] oss-gentoo_install_sh.patch I've ported my gentoo-install.sh patch to recent version. It simply makes the install.sh which is run on first soundon more gentoo'ish There is also a patch to gentoo'ify the remove/restore alsa modules and an ebuild with some basic kernel checks (alsa modules etc) in here: http://gimpel.ath.cx/svn/gimpel/media-sound/oss Maybe look over it and merge what you like in your ebuild (I don't want to mess up the attatchment list here by uploading all that)
Created attachment 142815 [details] OSS init file
Created attachment 142817 [details, diff] OSS install.sh patch
Created attachment 142819 [details, diff] OSS soundon no libsalsa patch
Created attachment 142820 [details] Ebuild for OSS 4.0 build1013 Some ossxmix seg. fault fixing included. Hope you'll like it!
hello, Thanks for your feedback, but could you please just post somewhere a hg diff output generated against my current overlay. It would be alot easier for me to merge that than more single files. Also, i guess that would make you the author of that particular changeset. Best regards, Cristi
Currently getting a compile error on ~amd64: seq_output.c: In function 'convert_event': seq_output.c:257: error: 'SND_SEQ_EVENT_SAMPLE' undeclared (first use in this function) seq_output.c:257: error: (Each undeclared identifier is reported only once seq_output.c:257: error: for each function it appears in.) seq_output.c:260: error: 'SND_SEQ_EVENT_SAMPLE_CLUSTER' undeclared (first use in this function) seq_output.c:263: error: 'SND_SEQ_EVENT_SAMPLE_START' undeclared (first use in this function) seq_output.c:266: error: 'SND_SEQ_EVENT_SAMPLE_STOP' undeclared (first use in this function) seq_output.c:269: error: 'SND_SEQ_EVENT_SAMPLE_FREQ' undeclared (first use in this function) seq_output.c:272: error: 'SND_SEQ_EVENT_SAMPLE_VOLUME' undeclared (first use in this function) seq_output.c:275: error: 'SND_SEQ_EVENT_SAMPLE_LOOP' undeclared (first use in this function) seq_output.c:278: error: 'SND_SEQ_EVENT_SAMPLE_POSITION' undeclared (first use in this function) seq_output.c:281: error: 'SND_SEQ_EVENT_SAMPLE_PRIVATE1' undeclared (first use in this function) seq_output.c:314: error: 'SND_SEQ_EVENT_INSTR_BEGIN' undeclared (first use in this function) seq_output.c:317: error: 'SND_SEQ_EVENT_INSTR_END' undeclared (first use in this function) seq_output.c:320: error: 'SND_SEQ_EVENT_INSTR_INFO' undeclared (first use in this function) seq_output.c:323: error: 'SND_SEQ_EVENT_INSTR_INFO_RESULT' undeclared (first use in this function) seq_output.c:326: error: 'SND_SEQ_EVENT_INSTR_FINFO' undeclared (first use in this function) seq_output.c:329: error: 'SND_SEQ_EVENT_INSTR_FINFO_RESULT' undeclared (first use in this function) seq_output.c:332: error: 'SND_SEQ_EVENT_INSTR_RESET' undeclared (first use in this function) seq_output.c:335: error: 'SND_SEQ_EVENT_INSTR_STATUS' undeclared (first use in this function) seq_output.c:338: error: 'SND_SEQ_EVENT_INSTR_STATUS_RESULT' undeclared (first use in this function) seq_output.c:341: error: 'SND_SEQ_EVENT_INSTR_PUT' undeclared (first use in this function) seq_output.c:344: error: 'SND_SEQ_EVENT_INSTR_GET' undeclared (first use in this function) seq_output.c:347: error: 'SND_SEQ_EVENT_INSTR_GET_RESULT' undeclared (first use in this function) seq_output.c:350: error: 'SND_SEQ_EVENT_INSTR_FREE' undeclared (first use in this function) seq_output.c:353: error: 'SND_SEQ_EVENT_INSTR_LIST' undeclared (first use in this function) seq_output.c:356: error: 'SND_SEQ_EVENT_INSTR_LIST_RESULT' undeclared (first use in this function) seq_output.c:359: error: 'SND_SEQ_EVENT_INSTR_CLUSTER' undeclared (first use in this function) seq_output.c:362: error: 'SND_SEQ_EVENT_INSTR_CLUSTER_GET' undeclared (first use in this function) seq_output.c:365: error: 'SND_SEQ_EVENT_INSTR_CLUSTER_RESULT' undeclared (first use in this function) seq_output.c:368: error: 'SND_SEQ_EVENT_INSTR_CHANGE' undeclared (first use in this function) make[2]: *** [seq_output.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... seq.c:1698: error: 'SND_SEQ_EVENT_SAMPLE' undeclared here (not in a function) seq.c:1698: error: 'SND_SEQ_EVENT_SAMPLE_PRIVATE1' undeclared here (not in a function) seq.c:1698: error: array index in initializer not of integer type seq.c:1698: error: (near initialization for 'snd_seq_event_types') seq.c:1702: error: 'SND_SEQ_EVENT_INSTR_BEGIN' undeclared here (not in a function) seq.c:1702: error: 'SND_SEQ_EVENT_INSTR_CHANGE' undeclared here (not in a function) seq.c:1702: error: array index in initializer not of integer type seq.c:1702: error: (near initialization for 'snd_seq_event_types') make[2]: *** [seq.lo] Error 1 gcc -I../../include -c timer.c -o timer.o >/dev/null 2>&1 gcc -I../../include -c seqmid.c -o seqmid.o >/dev/null 2>&1 gcc -I../../include -c stubs.c -fPIC -DPIC -o .libs/stubs.o gcc -I../../include -c stubs.c -o stubs.o >/dev/null 2>&1 make[1]: *** [subdirs] Error 1 make: *** [subdirs] Error 1 !!! ERROR in media-sound/oss-4.0.1013: !!! In src_compile at line 3567 !!! emake build failed
Hello, The Alsa API was changed in the latest alsa-lib (>=1.0.16), and OSS stable is currently incompatible with it. My latest OSS ebuild (the one from my mercurial overlay) has a blocker against those alsa-lib versions, so it won't let you install OSS at all if you have them. You can either install OSS from the mercurial repo, or downgrade your alsa-lib to 1.0.15. Most likely, the next stable release will work, and then I'll remove that blocker. Cristi
(In reply to comment #48) > Hello, > > The Alsa API was changed in the latest alsa-lib (>=1.0.16), and OSS stable is > currently incompatible with it. > My latest OSS ebuild (the one from my mercurial overlay) has a blocker against > those alsa-lib versions, so it won't let you install OSS at all if you have > them. You can either install OSS from the mercurial repo, or downgrade your > alsa-lib to 1.0.15. > Most likely, the next stable release will work, and then I'll remove that > blocker. > > Cristi > Bah, i had thought that alsa my the problem, but when i tried it i was using you overlay with the blocker in place (at least from looking at the comments) yet i didnt get any errors so assumed all was ok. Il go downgrade alsa-lib then. Cheers!
(In reply to comment #49) > (In reply to comment #48) > > Hello, > > > > The Alsa API was changed in the latest alsa-lib (>=1.0.16), and OSS stable is > > currently incompatible with it. > > My latest OSS ebuild (the one from my mercurial overlay) has a blocker against > > those alsa-lib versions, so it won't let you install OSS at all if you have > > them. You can either install OSS from the mercurial repo, or downgrade your > > alsa-lib to 1.0.15. > > Most likely, the next stable release will work, and then I'll remove that > > blocker. > > > > Cristi > > > > Bah, i had thought that alsa my the problem, but when i tried it i was using > you overlay with the blocker in place (at least from looking at the comments) > yet i didnt get any errors so assumed all was ok. Il go downgrade alsa-lib > then. Cheers! > Actually, on looking further, i dont have *any* version of alsa-lib installed, only alsa-headers. Perhaps a dep or use flag is needed to pull in the correct alsa-lib?
Actually, ignore me, im being both blind and stupid. Will teach me to post bugs so late at night. Apologies for bugzilla spam.
I've updated majeru's overlay 2 days ago. After my change it seems to be working fine on 2.6.24, although some people using 2.6.23 had problems with it. Could anyone confirm it working?
The oss-4.0.1013.ebuild fails on amd64 if used with a gcc version other than 4.1.2 (4.2.3 in my case), because of the following hard-coded links to gcc 4.1.2: x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o .libs/main.o .libs/output.o .libs/misc.o .libs/pcm.o .libs/mix.o .libs/seq.o .libs/seqmid.o .libs/rawmidi.o .libs/seq_output.o .libs/timer.o .libs/stubs.o .libs/seq_input.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o -Wl,--version-script=Versions -Wl,-soname -Wl,libsalsa.so.2 -o .libs/libsalsa.so.2.0.0 x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o: No such file or directory x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o: No such file or directory x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o: No such file or directory x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o: No such file or directory make[2]: *** [libsalsa.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-sound/oss-4.0.1013/work/build/lib/libsalsa' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-sound/oss-4.0.1013/work/build/lib' make: *** [subdirs] Error 1 * * ERROR: media-sound/oss-4.0.1013 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2379: Called die * The specific snippet of code: * emake build || die "emake build failed"; * The die message: * emake build failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-sound/oss-4.0.1013/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/oss-4.0.1013/temp/environment'. * This ebuild is from an overlay: '/usr/local/portage/' * To solve this I simply made the following symbolic link: home ~ # ls -l /usr/lib/gcc/x86_64-pc-linux-gnu total 2 lrwxrwxrwx 1 root root 5 2008-02-19 20:42 4.1.2 -> 4.2.3 drwxr-xr-x 5 root root 1504 2008-02-18 17:18 4.2.3
(In reply to comment #53) > [ ... ] Are you sure that your problem is not related to fix_libtool_files.sh?
Following your advice, I just ran 'fix_libtool_files.sh 4.1.2' and tried emerging oss-4.0.1013 again, but it failed with the same error. I am not really worried about this however. All I wanted was to see whether the promised support for SB X-Fi is there, but it's not. My card is not detected with this build. My other card, Audigy2, works as expected, but that one works with anything anyway.
(In reply to comment #53) emerge oss-4.0.1013 I had the same error as in #53... but got it solved by removing all the SND modules from the kernel ...(ALSA conflict vs userspace OSS?) /etc/init.d/start did not work until after a reboot I use the 32bit flash plugin in 64bit Firefox trough nswrapper the sound did not work until I did: ln -s /dev/dsp0 /dev/dsp emerge --info Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64) ================================================================= System uname: 2.6.23-gentoo-r9 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.93GHz Timestamp of tree: Tue, 18 Mar 2008 15:16:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/oss-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl amd64 berkdb cli cracklib crypt cups dbus dri dvdr fortran gdbm gpm gtk hal iconv ipv6 isdnlog jpeg midi mmx mng mudflap ncurses nls nptl nptlonly opengl openmp oss pam pcre pdf perl png pppd python readline reflection session smp spl sse sse2 ssl startup-notification svg tcpd tiff unicode wmf xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 153689 [details] oss init script which kills all processes accessing oss prior to stopping I have attached a modified version of the OSS init script included in the overlay (as described in http://gentoo-wiki.com/Howto_OSS4) which takes care to kill all processes accessing OSS prior to stopping the service. Very handy for automatic stopping prior to a suspend :)
oss-4.0.1013 gcc -I../../include -c seqmid.c -fPIC -DPIC -o .libs/seqmid.o seq.c:1698: error: ‘SND_SEQ_EVENT_SAMPLE’ undeclared here (not in a function) seq.c:1698: error: ‘SND_SEQ_EVENT_SAMPLE_PRIVATE1’ undeclared here (not in a function) seq.c:1698: error: array index in initializer not of integer type seq.c:1698: error: (near initialization for ‘snd_seq_event_types’) seq.c:1702: error: ‘SND_SEQ_EVENT_INSTR_BEGIN’ undeclared here (not in a function) seq.c:1702: error: ‘SND_SEQ_EVENT_INSTR_CHANGE’ undeclared here (not in a function) seq.c:1702: error: array index in initializer not of integer type seq.c:1702: error: (near initialization for ‘snd_seq_event_types’) make[2]: *** [seq.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -I../../include -c seqmid.c -o seqmid.o >/dev/null 2>&1 make[2]: Leaving directory `/var/tmp/portage/media-sound/oss-4.0.1013/work/build/lib/libsalsa' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-sound/oss-4.0.1013/work/build/lib' make: *** [subdirs] Error 1 * * ERROR: media-sound/oss-4.0.1013 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2338: Called die * The specific snippet of code: * emake build || die "emake build failed"; * The die message: * emake build failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-sound/oss-4.0.1013/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/oss-4.0.1013/temp/environment'. * This ebuild is from an overlay: '/usr/local/portage/' * emerge --info jitterbug ~ # emerge --info Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r9-jitterbug i686) ================================================================= System uname: 2.6.25-gentoo-r9-jitterbug i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Sun, 16 Nov 2008 01:31:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="candy distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo " LANG="en_AU.UTF8" LC_ALL="en_AU.UTF8" LDFLAGS="-Wl,-O1" LINGUAS="en en_AU en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa bash-completion berkdb bzip2 cairo cdr cli cpufreq cracklib crypt dbus dri dvd fam fontconfig fortran gdbm gif gpm hal iconv ipv6 isdnlog java jpeg jpeg2k kde lzo midi mmx mudflap ncurses nls nptl nptlonly offensive opengl openmp pam pcre perl png pppd python qt3 readline reflection sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode x86 xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" DVB_CARDS="usb-bluebird" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_AU en_GB" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 176122 [details, diff] oss-4.1.1050-build-fixes.patch
Created attachment 176124 [details, diff] oss-4.1.1050-install_sh.patch
Created attachment 176125 [details, diff] oss-4.1.1050-soundon_no_libsalsa.patch
Created attachment 176126 [details] oss-4.1.1050.ebuild Bump to latest version. Minor improvements. Some (R)DEPEND cleanup, added missing quotiation marks and tried to make the ossxmix compilation cross-compile safe.
Hello, please create a diff against the current HEAD of the oss-overlay layman repo stored at http://hg.atheme.org/users/majeru/portage-overlay Best regards, Cristi
Created attachment 176605 [details] Modified ebuild for 4.1-1051
Created attachment 176607 [details, diff] Modified build-fix patch for 4.1.1051
Created attachment 176609 [details, diff] Patch for ossxmix, see below
ossxmix is segfaulting randomly for me and displaying no controls beside vmix if it doesn't (this is gtk 2.12.11, intel hda on a thinkpad T60). It seems the mixer controls don't get initialized properly on startup; I've attached a patch that fixes this. I've also bumped the ebuild to oss-4.1.1051; I basically just created a new build-fixes patch (the old one wouldn't apply), copied the other two patches and added a epatch for the ossxmixer problem.
Created attachment 177020 [details, diff] Revised verstion of the patch to ossxmix My previous patch fails if there is more than one device present in the system, this one hopefully cures this.
File oss-4.1.1051-install_sh.patch is absent
I use oss-4.1.1050-soundon_no_libsalsa.patch and oss-4.1.1050-install_sh.patch files with oss-4.1.1051.ebuild
After building oss-4.1.1051.ebuild and /etc/init.d/oss start ossinfo show me: Version info: OSS 4.0 (b1016/200809191016) (0x00040003) GPL Platform: Linux/i686 2.6.28-gentoo #2 SMP PREEMPT Wed Jan 14 19:55:36 EET 2009 (localhost) Whats wrong?
< File oss-4.1.1051-install_sh.patch is absent Huh? I can download it from the file list above. (In reply to comment #71) > After building oss-4.1.1051.ebuild and /etc/init.d/oss start ossinfo show me: > > Version info: OSS 4.0 (b1016/200809191016) (0x00040003) GPL > Platform: Linux/i686 2.6.28-gentoo #2 SMP PREEMPT Wed Jan 14 19:55:36 EET 2009 > (localhost) > > Whats wrong? > Dunno, do have an older version of oss4 that you have installed manually and that you accidently forgot to remove (completely). Ouput looks like Version info: OSS 4.1 (b 1051/200812311320) (0x00040100) GPL Platform: Linux/i686 2.6.24-gentoo-r8 #4 SMP PREEMPT Wed Dec 31 14:26:30 CET 2008 for me.
Please try the ebuild from the oss-overlay layman overlay and then report any feedbac/issues in here, and feel free to send patches that may fix it. Those should be more up to date and easier to follow, since it's always easier to handle an ebuild stored in an overlay that one from the bugzilla. Best regards, Cristi
(In reply to comment #73) > Please try the ebuild from the oss-overlay layman overlay and then report any > feedbac/issues in here, and feel free to send patches that may fix it. > Those should be more up to date and easier to follow, since it's always easier > to handle an ebuild stored in an overlay that one from the bugzilla. > > Best regards, > Cristi > http://bugs.gentoo.org/show_bug.cgi?id=257192
Created attachment 181575 [details, diff] patch for compile against 2.6.29
Created attachment 181577 [details] oss ebuild that uses the 2.6.29 patch
Can we change the overlay location from: http://hg.atheme.org/users/majeru/portage-overlay to http://hg.atheme.org/users/majeru/portage-overlay (as per http://4front-tech.com/forum/viewtopic.php?p=11904&sid=922445af0ea46d4f5d880670cad5da79) Otherwise layman sync will fail claiming: >>pulling from http://hg.atheme.org/users/majeru/portage-overlay >>real URL is http://hg.atheme.org/ >>abort: 'http://hg.atheme.org/' does not appear to be an hg repository!
Sorry, that new address should read: http://hg.atheme.org/hgwebdir.cgi/users/majeru/portage-overlay (In reply to comment #77) > Can we change the overlay location from: > http://hg.atheme.org/users/majeru/portage-overlay > to > http://hg.atheme.org/users/majeru/portage-overlay > > (as per > http://4front-tech.com/forum/viewtopic.php?p=11904&sid=922445af0ea46d4f5d880670cad5da79) > > Otherwise layman sync will fail claiming: > >>pulling from http://hg.atheme.org/users/majeru/portage-overlay > >>real URL is http://hg.atheme.org/ > >>abort: 'http://hg.atheme.org/' does not appear to be an hg repository! >
Problem: When I say # emerge -va media-sound/oss the system goes looking for [ebuild N ] media-sound/oss-4.1.1051 1,648 kB [1] and fails to find it, as follows: >>> Emerging (1 of 1) media-sound/oss-4.1.1051 from majeru >>> Downloading 'http://www.4front-tech.com/developer/sources/stable/gpl/oss-v4.1-build1051-src-gpl.tar.bz2' --2009-04-04 19:50:13-- http://www.4front-tech.com/developer/sources/stable/gpl/oss-v4.1-build1051-src-gpl.tar.bz2 Resolving www.4front-tech.com... 194.218.216.11 Connecting to www.4front-tech.com|194.218.216.11|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2009-04-04 19:50:14 ERROR 404: Not Found. !!! Couldn't download 'oss-v4.1-build1051-src-gpl.tar.bz2'. Aborting. Surfing over to the directory mentioned in the transcript above reveals that there is no file with the desired name. There is a file in which "1052" replaces "1051" in the file name, but I don't know how to communicate that fact to portage. Do you? [Of course I did a fresh "eix-sync" and "layman -S" before receiving these errors.]
So... any updates on this? =)
I had to rename patches with minor version 4.1.1050 to 4.1.1051. My ebuild structure is this: ./media-sound ./media-sound/oss ./media-sound/oss/files ./media-sound/oss/files/oss-4.1.1051-kernel-2.6.29.patch ./media-sound/oss/files/oss-4.1.1051-build-fixes.patch ./media-sound/oss/files/oss-4.1.1051-install_sh.patch ./media-sound/oss/files/oss-4.1.1051-soundon_no_libsalsa.patch ./media-sound/oss/files/oss-4.1.1051-fix_ossxmix.patch ./media-sound/oss/files/oss ./media-sound/oss/oss-4.1.1051.ebuild And everything seems to be working. My sound card (crappy sis ac97) is working better than i thought it could. Thanks all!
*** oss-4.1.1052-r1.ebuild.old 2009-08-03 18:56:18.231849093 -0500 --- oss-4.1.1052-r1.ebuild 2009-08-03 19:56:31.863852120 -0500 *************** *** 11,20 **** LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" ! IUSE="" DEPEND="sys-apps/gawk ! >=x11-libs/gtk+-2 >=sys-kernel/linux-headers-2.6.11 !media-sound/oss-devel" --- 11,20 ---- LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" ! IUSE="gtk" DEPEND="sys-apps/gawk ! gtk? ( >=x11-libs/gtk+-2 ) >=sys-kernel/linux-headers-2.6.11 !media-sound/oss-devel" I am using the oss-overlay, added a little modification so it doesn't pull all the x11 libraries into my console only instalation. I have been testing it, I haven't found any problems aside from having to run "ossdetect" after the emerge.
Applied, committed and pushed. Please send unified diffs, or even better, hg export output from now on. Thanks for sharing this with us, Cristi
The sources for 4.1.1052 might changed. Maybe a new 4.2 version is released: http://www.4front-tech.com/forum/viewtopic.php?f=19&t=3476 And for hardened users, we might need to disable pie for this packages. inherit flag-o-matic and filter-flags -pie.
again tested that 1052 is not fetchable while 1016 is. maybe the overlay's 1052 might be 1051? (just a guess...)
i'm sorry that it's 1052b now.
Created attachment 213095 [details] new ebuild for 4.1.1052b maybe the ebuild name should be renamed to oss-4.1.1052b.ebuild removed gcc-43 patch and 2.6.30 patch which is already applied. the new sources does not accpet --enable-libsalsa=YES but --xxxx=NO is accepted, which is wierd. but this is the truth so i rewrite the corresponding part. add some preprocessing about hardened flags. no -pie should be use for kernel modules. however, this might also affect those userland programmes. so i am looking for split ebuild for userland programmes and the kernel modules. this will also help make kernel modules management more elegant (i mean we can use module-rebuild to rebuild those modules after we upgrade our kernel, instead of update it with init script.)
Sorry that the ebuild does not work as i guessed. the filter-flags does not even affect it.
Created attachment 213154 [details] New ebuild for oss-4.1.1052b Fixed the hardened nopie problem.
Created attachment 213155 [details, diff] No pie for kernel modules patch
Created attachment 213156 [details] Ebuild for oss-4.2.2002 btw, in the oss-4.1.1052b ebuild. i found two flaws: first, there should be no FIXME, since the nopie patch now only affect kernel modules, while userspace programmes are still built with pie enabled. second, since i don't know how to use the function to get 1052b instead of 1052, i manually add a "b" in ${MY_P}, which might be deprecated. this is for 4.2.2002, which is free from both the flaws above.
Created attachment 213157 [details, diff] No pie for kernel modules patch (4.2build2002) 4.2.2002 new patch to avoid pie kernel modules.
Created attachment 213194 [details] new ebuild for 4.2.2002 This ebuild generate kernel modules at emerging time instead of generate it afterwards. The code is rather ugly, imo, and needs to be polished. Tested on my own laptop but it still might break your system.
My rig failed to build the last ebuild (id=213194). You might consider it unstable. For the record I'm running 2.6.34-r6 gentoo-sources (amd64) kernel. (more info needed?) The thing was... compiling went fine, but building of modules completely failed. The thing tried to get/make files in root tree (while it should do it in it's build environment). If you are affected by this use previous ebuild (id=213156). It builds modules outside ebuild environment causing no such problems. Some info in http://forums.gentoo.org/viewtopic-t-844318.html might be of use to you.
Created attachment 297327 [details, diff] Patch for hardened-source building Newest 4.2.2005 does not build with hardened-sources. This is the patch to fix.
Created attachment 297331 [details] ebuild for 4.2 build 2005 New ebuild. with pax_kernel fix.
Created attachment 319606 [details] oss-4.2.2005.ebuild fixed IUSE and updated text to say 'enjoy OSS 4.2'
Created attachment 319624 [details] remove_wWerror.patch remove -Werror for Linux builds, prevented to build gtk gui for me...
Created attachment 319632 [details] oss-4.2.2006.ebuild new version...
Created attachment 382776 [details] oss-4.2.2009.ebuild
anybody willing to bump the ebuild to the latest version (4.2.2019 as of now) and the latest eapi?