Gentoo OSS4 overlay
Moderators: dev, hannu, cesium
Re: Gentoo OSS4 overlay
And how about fixing skype-oss ebuild?
Re: Gentoo OSS4 overlay
Can any one apply attached patch to skype-oss in overlay.
It's to make skype-oss ebuild to accept installed oss-devel (not only oss as it is currently) and to make it create correct desktop file, it's currently set executable to skype-oss which isn't correct.
It's to make skype-oss ebuild to accept installed oss-devel (not only oss as it is currently) and to make it create correct desktop file, it's currently set executable to skype-oss which isn't correct.
- Attachments
-
- skype-oss.zip
- patch for skype-oss-2.0.0.72.ebuild for support oss-devel and correct executable in desktop file.
- (941 Bytes) Downloaded 2516 times
Re: Gentoo OSS4 overlay
hash wrote:Can any one apply attached patch to skype-oss in overlay.
It's to make skype-oss ebuild to accept installed oss-devel (not only oss as it is currently) and to make it create correct desktop file, it's currently set executable to skype-oss which isn't correct.
Applied, thanks.
Gentoo ~AMD64 | Audacious
Re: Gentoo OSS4 overlay
I've forgot about another old problem with audacious-plugins-9999.ebuild, with renaming net-misc/neon to net-libs/neon and replacing media-libs/libmpcdec with media-sound/musepack-tools.
- Attachments
-
- audacious-plugins.zip
- patch for audacious-plugins-9999.ebuild to change depend from net-misc/neon to net-libs/neon and to prefer oss other oss-devel, also since media-libs/libmpcdec is removed from portage replace dependence on it with media-sound/musepack-tools.
- (568 Bytes) Downloaded 2474 times
-
angry_vincent
- Member
- Posts: 18
- Joined: Tue Dec 01, 2009 3:35 pm
Re: Gentoo OSS4 overlay
There is no oss-overlay sync since new oss-2004 build available, please, fix it.
Re: Gentoo OSS4 overlay
Create a text file named oss-4.2.2004.ebuild and copy and paste in it:
Then create a directory:
/usr/local/portage/media-sound/oss
The open up /etc/make.conf and add:
PORTDIR_OVERLAY="/usr/local/portage"
Place the ebuild you just created in the directory and run:
# ebuild /usr/local/portage/media-sound/oss/oss-4.2.2004.ebuild digest
Then run emerge oss and it should install the latest stable release.
This worked for me, however be aware I have never written an ebuild before and have no idea what I am doing. I just took the oss-overlay ebuild for the oss 4.2 rc1 and changed the version name and download directory. So for all I know this may break your sound card and set your speakers on fire when you run it.
Code: Select all
# Copyright 1999-20011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils versionator flag-o-matic
filter-ldflags "-Wl,-O1"
# For the news, see the commit messages.
DESCRIPTION="Open Sound System - portable, mixing-capable, high quality sound system for Unix."
HOMEPAGE="http://developer.opensound.com/"
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"
RDEPEND="${DEPEND}"
RESTRICT="mirror"
MY_PV=$(get_version_component_range 1-2)
MY_BUILD=$(get_version_component_range 3)
MY_P="oss-v${MY_PV}-build${MY_BUILD}-src-gpl"
SRC_URI="http://www.4front-tech.com/developer/sources/stable/gpl/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack "${A}"
mkdir "${WORKDIR}/build"
cd "${S}"
einfo "Replacing init script with gentoo friendly one..."
cp "${FILESDIR}/oss" "${S}/setup/Linux/oss/etc/S89oss"
}
src_compile() {
myconf="--enable-libsalsa=NO"
# Configure has to be run from build dir with full path.
cd "${WORKDIR}/build"
"${S}"/configure \
${myconf} || die "configure failed"
emake build || die "emake build failed"
}
src_install() {
newinitd "${FILESDIR}/oss" oss
cd "${WORKDIR}/build"
cp -R prototype/* "${D}"
}
pkg_postinst() {
elog "PLEASE NOTE:"
elog ""
elog "In order to use OSSv4.2 you must run"
elog "# /etc/init.d/oss start "
elog ""
elog "If you are upgrading from a previous build of OSSv4.2 you must run"
elog "# /etc/init.d/oss restart "
elog ""
elog "Enjoy OSSv4.2 !"
}
Then create a directory:
/usr/local/portage/media-sound/oss
The open up /etc/make.conf and add:
PORTDIR_OVERLAY="/usr/local/portage"
Place the ebuild you just created in the directory and run:
# ebuild /usr/local/portage/media-sound/oss/oss-4.2.2004.ebuild digest
Then run emerge oss and it should install the latest stable release.
This worked for me, however be aware I have never written an ebuild before and have no idea what I am doing. I just took the oss-overlay ebuild for the oss 4.2 rc1 and changed the version name and download directory. So for all I know this may break your sound card and set your speakers on fire when you run it.
-
angry_vincent
- Member
- Posts: 18
- Joined: Tue Dec 01, 2009 3:35 pm
Re: Gentoo OSS4 overlay
is the overlay synced with the latest 2005 build?, i still getting b 2004 version:
Version info: OSS 4.2 (b 2004/201108040818) (0x00040100) OSS_HG
Hg revision: changeset: 935:2bf7db11c82d, tag: tip, date: Wed Jul 20 03:58:10 2011 +0300, summary: Change SOUND_MASK_VOLUME to SOUND_MASK_PCM after switching (oss-devel-9999)
Version info: OSS 4.2 (b 2004/201108040818) (0x00040100) OSS_HG
Hg revision: changeset: 935:2bf7db11c82d, tag: tip, date: Wed Jul 20 03:58:10 2011 +0300, summary: Change SOUND_MASK_VOLUME to SOUND_MASK_PCM after switching (oss-devel-9999)
-
noctuorare
- New Member
- Posts: 4
- Joined: Wed Dec 28, 2011 2:51 pm
Re: Gentoo OSS4 overlay
It seems that the overlay hasn't been updated for a long time.
I have some patches for hardened Gentoo users.
For PIE-spec gcc users: (gcc-specs-pie && epatch "${FILESDIR}/nopie.patch")
For hardened-sources users: (use pax_kernel && epatch "${FILESDIR}/pax.patch")
If you are using x86_64 GrSec/PaX kernel and meet a kernel error "Unable to handle paging request at xxxxxxx, Thread overran stack or stack corrupted." when loading oss modules, please try to enable CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS.
If you have gtk+2 installed (like being pulled in by adobe-flash, gvim, etc.), the ebuild will build ossxmix even you disable gtk USE. Please apply this patch: (use gtk || epatch "${FILESDIR}/oss-no-gtk.patch")
makefile
I have some patches for hardened Gentoo users.
For PIE-spec gcc users: (gcc-specs-pie && epatch "${FILESDIR}/nopie.patch")
Code: Select all
--- setup/srcconf.c 2009-11-13 23:23:24.000000000 +0800
+++ setup/srcconf.c.new 2009-12-16 11:15:33.705839223 +0800
@@ -962,7 +962,7 @@
#if defined(__SCO_VERSION__)
fprintf (f, "CFLAGS=-O -D_KERNEL -D_DDI=8\n");
#else
- fprintf (f, "CFLAGS += -D_KERNEL\n");
+ fprintf (f, "CFLAGS += -nopie -D_KERNEL\n");
#endif
#ifdef HAVE_KERNEL_FLAGS
add_kernel_flags (f);For hardened-sources users: (use pax_kernel && epatch "${FILESDIR}/pax.patch")
Code: Select all
--- oss-v4.2-build2005-src-gpl.orig/setup/Linux/oss/build/osscore.c 2011-12-29 10:30:56.071144892 +0800
+++ oss-v4.2-build2005-src-gpl/setup/Linux/oss/build/osscore.c 2011-12-29 10:36:19.735147341 +0800
@@ -911,7 +911,7 @@
* are replaced by wrapper handles.
*/
-static struct file_operations *
+static file_operations_no_const *
alloc_fop (oss_device_t * osdev, struct oss_file_operation_handle *op)
{
/*
@@ -927,7 +927,7 @@
* and WRAPPER_VERSION must be incremented.
*/
- struct file_operations *fop;
+ file_operations_no_const *fop;
poll_t tmp_poll = (poll_t) op->poll;
read_t tmp_read = (read_t) op->read;
@@ -942,10 +942,10 @@
new_ioctl_t tmp_unlocked_ioctl = (new_ioctl_t) op->unlocked_ioctl;
new_ioctl_t tmp_compat_ioctl = (new_ioctl_t) op->compat_ioctl;
- fop = (struct file_operations *)
- oss_kmem_alloc (sizeof (struct file_operations));
+ fop = (file_operations_no_const *)
+ oss_kmem_alloc (sizeof (file_operations_no_const));
- memset ((char *) fop, 0, sizeof (struct file_operations));
+ memset ((char *) fop, 0, sizeof (file_operations_no_const));
/*
* Now the assignmentIf you are using x86_64 GrSec/PaX kernel and meet a kernel error "Unable to handle paging request at xxxxxxx, Thread overran stack or stack corrupted." when loading oss modules, please try to enable CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS.
If you have gtk+2 installed (like being pulled in by adobe-flash, gvim, etc.), the ebuild will build ossxmix even you disable gtk USE. Please apply this patch: (use gtk || epatch "${FILESDIR}/oss-no-gtk.patch")
Code: Select all
diff -ur oss-v4.2-build2005-src-gpl.orig/setup/setupdir.sh oss-v4.2-build2005-src-gpl/setup/setupdir.sh
--- oss-v4.2-build2005-src-gpl.orig/setup/setupdir.sh 2012-01-02 04:12:29.353230228 +0800
+++ oss-v4.2-build2005-src-gpl/setup/setupdir.sh 2012-01-02 04:13:03.792230489 +0800
@@ -43,20 +43,6 @@
# pkg-config seems to crash in some systems so disable core dumps
ulimit -c 0 >/dev/null 2>&1
-if pkg-config gtk+-2.0 --cflags > /dev/null 2>&1
-then
- HAVE_GTK=y
- GTK2=1
- export HAVE_GTK GTK2
-else
- if gtk-config --cflags > /dev/null 2>&1
- then
- HAVE_GTK=y
- GTK1=1
- export HAVE_GTK GTK1
- fi
-fi
-
if test "`ls .` " != " " && test "`ls .` " != ".makefile "
then
echo Error: Current directory must be empty
- Attachments
-
- nopie.txt
- PIE Patch
- (387 Bytes) Downloaded 2187 times
-
- oss-no-gtk.txt
- GTK Patch
- (738 Bytes) Downloaded 2027 times
-
- pax.txt
- GrSec/PaX Patch
- (1.11 KiB) Downloaded 2269 times
-
ShirleyDavis
- New Member
- Posts: 1
- Joined: Tue Mar 19, 2019 1:16 pm
- Sound Card: Realtek ALC 882 HD Audio Codec
- OS: win 8
- Contact:
Re: Gentoo OSS4 overlay
thank you for sharing useful information i have been looking for this issue since few weeks.
Who is online
Users browsing this forum: No registered users and 17 guests