diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-01 17:15:00 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-04 07:55:39 +0700 |
commit | 1f2d28088c8e9646486ce6d40156b4feddc8c233 (patch) | |
tree | 036eab5c48c891f035aff2431545567377a01f70 /audio | |
parent | 1571ed856502dd5ad98d3c062badb91ede4f1548 (diff) |
audio/oss: Removed (won't build on recent kernels).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/README | 12 | ||||
-rw-r--r-- | audio/oss/README.SLACKWARE | 24 | ||||
-rw-r--r-- | audio/oss/doinst.sh | 26 | ||||
-rw-r--r-- | audio/oss/gcc-5.patch | 52 | ||||
-rw-r--r-- | audio/oss/glibc-2.23.patch | 19 | ||||
-rw-r--r-- | audio/oss/oss-v4.2-linux-4.0.patch | 41 | ||||
-rw-r--r-- | audio/oss/oss.SlackBuild | 113 | ||||
-rw-r--r-- | audio/oss/oss.info | 10 | ||||
-rw-r--r-- | audio/oss/ossxmix.desktop | 8 | ||||
-rw-r--r-- | audio/oss/rc.oss | 39 | ||||
-rw-r--r-- | audio/oss/slack-desc | 19 |
11 files changed, 0 insertions, 363 deletions
diff --git a/audio/oss/README b/audio/oss/README deleted file mode 100644 index 1c71daae965e..000000000000 --- a/audio/oss/README +++ /dev/null @@ -1,12 +0,0 @@ -The Open Sound System is a set of sound drivers that serve as an -alternative to the usual ALSA architecture. - -Among the benefits are: -* volume levels being settable for each application individually -* better latency than ALSA in most cases - -If your WM/DE supports tray icons, you will have one for the OSS -mixer. - -See README.SLACKWARE for post-installation instructions and setup -information. diff --git a/audio/oss/README.SLACKWARE b/audio/oss/README.SLACKWARE deleted file mode 100644 index 25c8e37d49fb..000000000000 --- a/audio/oss/README.SLACKWARE +++ /dev/null @@ -1,24 +0,0 @@ -README.SLACKWARE for oss - -After installing the package, do the following: - -1. Blacklist the alsa modules for your sound card. - The output of "lsmod | grep snd" should give you a list of which modules - will need to be blacklisted. - -2. Make /etc/rc.d/rc.alsa non-executable: chmod 0644 /etc/rc.d/rc.alsa - -3. Make /etc/rc.d/rc.oss executable: chmod 0755 /etc/rc.d/rc.oss - -4. Add this snippet to /etc/rc.d/rc.local: - - if [ -x /etc/rc.d/rc.oss ]; then - /etc/rc.d/rc.oss start - fi - -5. Reboot. - -6. Test sound to ensure that it works - use "osstest" for this. - -7. Configure applications to use OSS instead of ALSA; typically, this will - involve setting the "Sound Command" or some such to use "ossplay" diff --git a/audio/oss/doinst.sh b/audio/oss/doinst.sh deleted file mode 100644 index ff13b1c6fa40..000000000000 --- a/audio/oss/doinst.sh +++ /dev/null @@ -1,26 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -# Keep same perms on rc.oss.new: -if [ -e etc/rc.d/rc.oss ]; then - cp -a etc/rc.d/rc.oss etc/rc.d/rc.oss.new.incoming - cat etc/rc.d/rc.oss.new > etc/rc.d/rc.oss.new.incoming - mv etc/rc.d/rc.oss.new.incoming etc/rc.d/rc.oss.new -fi - -config etc/oss.conf.new -config etc/rc.d/rc.oss.new - -if [ -x /usr/bin/update-desktop-database ]; then - /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 -fi diff --git a/audio/oss/gcc-5.patch b/audio/oss/gcc-5.patch deleted file mode 100644 index 5b303b497596..000000000000 --- a/audio/oss/gcc-5.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- kernel/OS/Linux/os_linux.h 2015-01-28 08:07:23.000000000 +0000 -+++ kernel/OS/Linux/os_linux.h 2015-06-01 23:12:46.044784820 +0100 -@@ -119,7 +119,7 @@ - /* System wall timer access */ - #define GET_JIFFIES() oss_get_jiffies() - --extern inline unsigned int -+__attribute__ ((gnu_inline)) extern inline unsigned int - __inb (unsigned short port) - { - unsigned int _v; -@@ -127,7 +127,7 @@ - "0" (0)); - return _v; - } --extern inline unsigned int -+__attribute__ ((gnu_inline)) extern inline unsigned int - __inw (unsigned short port) - { - unsigned int _v; -@@ -135,7 +135,7 @@ - "0" (0)); - return _v; - } --extern inline unsigned int -+__attribute__ ((gnu_inline)) extern inline unsigned int - __inl (unsigned short port) - { - unsigned int _v; -@@ -143,19 +143,19 @@ - return _v; - } - --extern inline void -+__attribute__ ((gnu_inline)) extern inline unsigned int - __outb (unsigned char value, unsigned short port) - { - __asm__ __volatile__ ("out" "b" " %" "b" "0,%" "w" "1"::"a" (value), - "d" (port)); - } --extern inline void -+__attribute__ ((gnu_inline)) extern inline unsigned int - __outw (unsigned short value, unsigned short port) - { - __asm__ __volatile__ ("out" "w" " %" "w" "0,%" "w" "1"::"a" (value), - "d" (port)); - } --extern inline void -+__attribute__ ((gnu_inline)) extern inline unsigned int - __outl (unsigned int value, unsigned short port) - { - __asm__ __volatile__ ("out" "l" " %" "0,%" "w" "1"::"a" (value), diff --git a/audio/oss/glibc-2.23.patch b/audio/oss/glibc-2.23.patch deleted file mode 100644 index c9dc65b111c4..000000000000 --- a/audio/oss/glibc-2.23.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit ad097a606d8b6ba46e0bcd12b284ca355592ac44 -Author: hash <hashn0n@users.noreply.github.com> -Date: Sun Sep 24 19:53:49 2017 +0300 - - Fix os_cmd/Linux/ossdetect/ossdetect.c compile problem with - >=sys-libs/glibc-2.23, need to include sys/sysmacros.h - -diff --git a/os_cmd/Linux/ossdetect/ossdetect.c b/os_cmd/Linux/ossdetect/ossdetect.c -index 86b86ba..1dce64a 100644 ---- a/os_cmd/Linux/ossdetect/ossdetect.c -+++ b/os_cmd/Linux/ossdetect/ossdetect.c -@@ -12,6 +12,7 @@ - #include <unistd.h> - #include <sys/types.h> - #include <sys/stat.h> -+#include <sys/sysmacros.h> - #include <sys/dir.h> - - #define PCI_PASS 0 diff --git a/audio/oss/oss-v4.2-linux-4.0.patch b/audio/oss/oss-v4.2-linux-4.0.patch deleted file mode 100644 index 7bc4ea36d760..000000000000 --- a/audio/oss/oss-v4.2-linux-4.0.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -durN oss-v4.2-build2011-src-gpl/setup/Linux/oss/build/osscore.c oss-v4.2-build2011-src-gpl-patched/setup/Linux/oss/build/osscore.c ---- oss-v4.2-build2011-src-gpl/setup/Linux/oss/build/osscore.c 2014-09-04 00:15:31.000000000 +0200 -+++ oss-v4.2-build2011-src-gpl-patched/setup/Linux/oss/build/osscore.c 2015-04-25 23:16:19.502116503 +0200 -@@ -1950,8 +1950,13 @@ - } - else - { -+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0) - flags[1] = read_cr4 (); - write_cr4 (flags[1] | 0x600); /* Set OSFXSR & OSXMMEXCEPT */ -+#else -+ flags[1] = __read_cr4 (); -+ __write_cr4 (flags[1] | 0x600); /* Set OSFXSR & OSXMMEXCEPT */ -+#endif - FX_SAVE (envbuf); - asm ("fninit"); - asm ("fwait"); -@@ -1971,7 +1976,11 @@ - else - { - FX_RESTORE (envbuf); -+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0) - write_cr4 (flags[1]); /* Restore cr4 */ -+#else -+ __write_cr4 (flags[1]); /* Restore cr4 */ -+#endif - } - write_cr0 (flags[0]); /* Restore cr0 */ - } -diff -durN oss-v4.2-build2011-src-gpl/setup/setupdir.sh oss-v4.2-build2011-src-gpl-patched/setup/setupdir.sh ---- oss-v4.2-build2011-src-gpl/setup/setupdir.sh 2015-04-25 23:03:34.173985609 +0200 -+++ oss-v4.2-build2011-src-gpl-patched/setup/setupdir.sh 2015-04-25 23:03:14.267351737 +0200 -@@ -36,7 +36,7 @@ - # Use Linux24 as the OS name for Linux 2.4.x - if test "$OS " = "Linux " - then -- if test "`uname -r|sed 's/2.//'|sed 's/\..*//'` " = "4 " -+ if test "`uname -r | cut -d '.' -f 1-2` " = "2.4 " - then - OS=Linux24 - fi diff --git a/audio/oss/oss.SlackBuild b/audio/oss/oss.SlackBuild deleted file mode 100644 index 9010e36f2276..000000000000 --- a/audio/oss/oss.SlackBuild +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/bash - -# Slackware build script for OSS 4. - -# Written by Dugan Chen (thedoogster [at] gmail [dot] com). - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=oss -VERSION=${VERSION:-4.2.2019} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -MAJOR=$(printf $VERSION | cut -d. -f-2) -MINOR=$(printf $VERSION | cut -d. -f3) - -SRCVERSION=v${MAJOR}-build${MINOR}-src-gpl - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2" # yes, -fPIC is left out on purpose here - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf oss-${SRCVERSION} -tar xvf $CWD/oss-${SRCVERSION}.tar.bz2 -cd oss-${SRCVERSION} -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -patch -p1 < $CWD/glibc-2.23.patch - -if [ $ARCH = "x86_64" ]; then - sed -i 's,OSSLIBDIR=\"/usr/lib/oss\",OSSLIBDIR=\"/usr/lib64/oss\",g' configure || exit 1 -fi - -mkdir build && cd build -../configure -CFLAGS="$SLKCFLAGS" make build -cp -a prototype/* $PKG - -chmod -R a+r $PKG -find $PKG -type d -exec chmod a+x '{}' \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# Don't clobber the config file -mv $PKG/etc/oss.conf $PKG/etc/oss.conf.new - -mkdir -p $PKG/etc/rc.d -cat $CWD/rc.oss > $PKG/etc/rc.d/rc.oss.new - -mkdir -p $PKG/usr/share/applications -cat $CWD/ossxmix.desktop > $PKG/usr/share/applications/ossxmix.desktop - -mkdir -p $PKG/etc/xdg/autostart -( cd $PKG/etc/xdg/autostart - ln -sf /usr/share/applications/ossxmix.desktop . -) - -# Fix location of manual pages -mv $PKG/usr/share/man $PKG/usr - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING Changelog RELNOTES.txt $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/audio/oss/oss.info b/audio/oss/oss.info deleted file mode 100644 index 9ac357009831..000000000000 --- a/audio/oss/oss.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="oss" -VERSION="4.2.2019" -HOMEPAGE="http://www.opensound.com" -DOWNLOAD="http://www.opensound.com/developer/sources/stable/gpl/oss-v4.2-build2019-src-gpl.tar.bz2" -MD5SUM="330efdeee7567e6587e1a4a13f91eb5f" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" diff --git a/audio/oss/ossxmix.desktop b/audio/oss/ossxmix.desktop deleted file mode 100644 index af6185bed392..000000000000 --- a/audio/oss/ossxmix.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=Open Sound System Mixer -GenericName=Audio Mixer -Exec=ossxmix -b -Icon=audio-card -Categories=GTK;AudioVideo;Player; -Terminal=false -Type=Application diff --git a/audio/oss/rc.oss b/audio/oss/rc.oss deleted file mode 100644 index a8084594fa30..000000000000 --- a/audio/oss/rc.oss +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# Start/stop/restart OSS: - -# Credit to Tsomi, on the 4Front Technologies forum: -# http://www.opensound.com/board2006/viewtopic.php?p=8174 - -oss_start() { - echo "Starting OSS..." - if [ -x /usr/sbin/soundon ]; then - /usr/sbin/soundon - else - echo "No /usr/sbin/soundon script found." - exit 1 - fi -} - -oss_stop() { - echo "Stopping OSS..." - /usr/sbin/soundoff -} - -# See how we were called. -case "$1" in - start) - oss_start - ;; - stop) - oss_stop - ;; - restart) - oss_stop - sleep 1 - oss_start - ;; - *) - echo "Usage: $0 {start|stop|restart}" - ;; -esac - diff --git a/audio/oss/slack-desc b/audio/oss/slack-desc deleted file mode 100644 index 43e47c734573..000000000000 --- a/audio/oss/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -oss: oss (The Open Sound System) -oss: -oss: The Open Sound System (OSS) is a standard interface for making and -oss: capturing sound in Unix operating systems. The goal of OSS is to -oss: allow one to write a sound-based application program that works with -oss: any sound controller hardware, even though the hardware interface -oss: varies greatly from one type to another. OSS is free software, -oss: distributed (here) under the GPL license. -oss: -oss: Learn more at: http://www.opensound.com/ -oss: |