Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting11.git;a=commitdiff;h=dfb977120fee78d22b27ba8c1a69d141519311b6
commit dfb977120fee78d22b27ba8c1a69d141519311b6 Author: James Buren <[email protected]> Date: Mon Jul 22 18:11:36 2013 -0500 oss-v4.2_build2008-1-x86_64 * version bump * rebuild with kernel 3.10 diff --git a/source/multimedia-extra/oss/FrugalBuild b/source/multimedia-extra/oss/FrugalBuild index 7d56f7a..2749fa8 100644 --- a/source/multimedia-extra/oss/FrugalBuild +++ b/source/multimedia-extra/oss/FrugalBuild @@ -5,9 +5,9 @@ # should be updated with care. pkgname=oss -pkgver=v4.2_build2007 +pkgver=v4.2_build2008 _ver="${pkgver/_/-}" -pkgrel=17 +pkgrel=1 pkgdesc="Open Sound System Version 4 for Linux (Alternative to ALSA)." url="http://developer.opensound.com" _dlurl='http://www.4front-tech.com/developer/sources/stable/gpl' @@ -21,6 +21,7 @@ _F_systemd_units=(oss-on=e oss-off=e) source=($_dlurl/$pkgname-$_ver$_ext $pkgname-frugalware.patch kernel-3.8.patch + kernel-3.10.patch oss-on.service oss-off.service) options=('scriptlet' 'genscriptlet') @@ -39,9 +40,10 @@ _F_desktop_desc="GTK+ application for modifying OSS mixer controls." _F_desktop_icon="ossxmix.xpm" _F_desktop_exec="ossxmix" _F_desktop_categories="GTK;AudioVideo;" -sha1sums=('310e18cd95cd72d1e382c0b6c985400e9109086e' \ +sha1sums=('cffbb45f4a411fda25271ae2c21982df06569491' \ 'e7887412fa6434e12ea8bf441cd6fd52008997e5' \ 'b47b9f8b0e249a27e757a55f001d4938ea8a41a2' \ + '4396f59d710a1588aba3722b9734b03051e4195b' \ 'c11b5241b8b6cd805b9e32f6d3677c647e0abaa9' \ 'cad69f7d4d653340947a7119888d4976640b8410') diff --git a/source/multimedia-extra/oss/kernel-3.10.patch b/source/multimedia-extra/oss/kernel-3.10.patch new file mode 100644 index 0000000..494f95f --- /dev/null +++ b/source/multimedia-extra/oss/kernel-3.10.patch @@ -0,0 +1,70 @@ +diff -ur a/setup/Linux/oss/build/osscore.c b/setup/Linux/oss/build/osscore.c +--- a/setup/Linux/oss/build/osscore.c 2013-07-22 18:04:05.195475667 -0500 ++++ b/setup/Linux/oss/build/osscore.c 2013-07-22 18:05:04.904473447 -0500 +@@ -276,28 +276,59 @@ + return strlen (tmp); + } + ++ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) + static struct file_operations oss_proc_operations = { + .read = oss_read_devfiles, + }; ++#else ++static struct file_operations fops = { ++ .owner = THIS_MODULE, ++ .read = oss_read_devfiles, ++}; ++#endif ++ + + static void + init_proc_fs (void) + { ++ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) ++ + if ((oss_proc_root = +- create_proc_entry ("opensound", 0700 | S_IFDIR, NULL)) == NULL) ++ create_proc_entry ("opensound", 0700 | S_IFDIR, NULL)) == NULL) ++ { ++ oss_cmn_err (CE_CONT, "Cannot create /proc/opensound\n"); ++ return; ++ } ++ ++ if ((oss_proc_devfiles = ++ create_proc_entry ("devfiles", 0600, oss_proc_root)) == NULL) ++ { ++ oss_cmn_err (CE_CONT, "Cannot create /proc/opensound/devfiles\n"); ++ return; ++ } ++ ++ oss_proc_devfiles->proc_fops = &oss_proc_operations; ++ ++#else ++ ++ if ((oss_proc_root = ++ proc_mkdir ("opensound", NULL)) == NULL ) + { +- oss_cmn_err (CE_CONT, "Cannot create /proc/opensound\n"); +- return; ++ oss_cmn_err (CE_CONT, "Cannot create /proc/opensound\n"); ++ return; + } + + if ((oss_proc_devfiles = +- create_proc_entry ("devfiles", 0600, oss_proc_root)) == NULL) ++ proc_create ("devfiles", 0600, oss_proc_root, &fops)) == NULL) + { +- oss_cmn_err (CE_CONT, "Cannot create /proc/opensound/devfiles\n"); +- return; ++ oss_cmn_err (CE_CONT, "Cannot create /proc/opensound/devfiles\n"); ++ return; + } + +- oss_proc_devfiles->proc_fops = &oss_proc_operations; ++#endif ++ + } + + static void _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
