Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184123 | Differences between
and this patch

Collapse All | Expand All

(-)oss-v4.0-build1013-src-gpl.old/setup/Linux/oss/build/install.sh (-124 / +3 lines)
Lines 28-40 Link Here
28
28
29
if ! test -f $OSSLIBDIR/objects/osscore.o
29
if ! test -f $OSSLIBDIR/objects/osscore.o
30
then
30
then
31
	echo Error: OSS core module for $REGPARM kernel are not available
31
	echo "Error: OSS core module for $REGPARM kernel are not available"
32
	exit 1
32
	exit 1
33
fi
33
fi
34
34
35
if ! test -f $OSSLIBDIR/modules/ich.o
35
if ! test -f $OSSLIBDIR/modules/ich.o
36
then
36
then
37
	echo Error: OSS driver modules for $REGPARM kernel are not available
37
	echo "Error: OSS driver modules for $REGPARM kernel are not available"
38
	exit 1
38
	exit 1
39
fi
39
fi
40
40
Lines 42-107 Link Here
42
echo OSS build environment set up for $REGPARM kernels
42
echo OSS build environment set up for $REGPARM kernels
43
43
44
KERNELDIR=/lib/modules/`uname -r`/build
44
KERNELDIR=/lib/modules/`uname -r`/build
45
UBUNTUPACKAGES=""
46
47
OK=1
48
echo
49
50
if test "`which gcc 2>/dev/null` " = " "
51
then
52
  echo "    gcc"
53
  UBUNTUPACKAGES="$UBUNTUPACKAGES gcc"
54
  OK=0
55
fi
56
57
if test "`which make  2>/dev/null` " = " "
58
then
59
  echo "    make"
60
  UBUNTUPACKAGES="$UBUNTUPACKAGES make"
61
  OK=0
62
fi
63
64
if test "`which ld  2>/dev/null` " = " "
65
then
66
  echo "    binutils"
67
  UBUNTUPACKAGES="$UBUNTUPACKAGES binutils"
68
  OK=0
69
fi
70
71
if ! test -f /usr/include/stdio.h
72
then
73
  echo "    C library headers (glibc-devel or build-essential)"
74
  OK=0
75
  UBUNTUPACKAGES="$UBUNTUPACKAGES build-essentials"
76
fi
77
78
if test "$OK " = "0 "
79
then
80
  echo
81
  echo 'Error: The above Linux package(s) seem to be missing from your system.'
82
  echo '       Please install them and then try to install OSS again.'
83
  echo
84
  echo Please refer to the documentation of your Linux distribution if you
85
  echo have problems with installing the packages.
86
  echo
87
88
  if grep -q Ubuntu /etc/issue # Ubuntu?
89
  then
90
    echo You can use the following commands to download and install all
91
    echo required packages:
92
    echo
93
94
    for n in $UBUNTUPACKAGES
95
    do
96
	echo "  apt-get install $n"
97
    done
98
99
    exit 1
100
  fi
101
102
  exit 1
103
fi
104
105
45
106
if ! test -f $KERNELDIR/Makefile && ! test -f /lib/modules/`uname -r`/sources/Makefile
46
if ! test -f $KERNELDIR/Makefile && ! test -f /lib/modules/`uname -r`/sources/Makefile
107
then
47
then
Lines 111-151 Link Here
111
  echo '         Please install the kernel development package if linking the'
51
  echo '         Please install the kernel development package if linking the'
112
  echo '         OSS modules fails.'
52
  echo '         OSS modules fails.'
113
  echo
53
  echo
114
  echo The kernel development package may be called kernel-devel, kernel-smp-devel,
54
  echo 'Emerge some kernel sources, compile, install and boot them!'
115
  echo kernel-sources, kernel-headers or something like that. Please refer
116
  echo to the documentation of your Linux distribution if there are any
117
  echo difficulties in installing the kernel/driver development environment.
118
  echo
119
120
  if grep -q 'Fedora Core release' /etc/issue
121
  then
122
	if uname -v|grep -q SMP	
123
	then
124
	  echo Assuming that you are using Fedora Core 5 or later
125
	  echo "the right kernel source package (RPM) is probably called"
126
	  echo kernel-smp-devel.
127
	else
128
	  echo Assuming that you are using Fedora Core 5 or later
129
	  echo "the right kernel source package (RPM) is probably called"
130
	  echo kernel-devel.
131
	fi
132
  else
133
	echo For your Linux distribution the right kernel source package
134
	echo might be kernel-source.
135
  fi
136
  echo
137
138
  if grep -q Ubuntu /etc/issue # Ubuntu?
139
  then
140
	echo Under Ubuntu you may need to prepare the kernel environment
141
	echo after downloading the kernel sources using
142
	echo 
143
	echo "  sudo apt-get install linux-headers-`uname -r`"
144
        echo "  cd /usr/src/linux-headers-`uname -r`/"
145
        echo "  sudo make prepare"
146
        echo "  sudo make prepare scripts"
147
	echo
148
  fi
149
fi
55
fi
150
56
151
if ! test -d /lib/modules/`uname -r`
57
if ! test -d /lib/modules/`uname -r`
Lines 260-292 Link Here
260
  mkdir /etc/init.d
166
  mkdir /etc/init.d
261
fi
167
fi
262
168
263
rm -f /etc/init.d/oss /etc/rc.d/rc3.d/S89oss /etc/rc3.d/S89oss
264
cp -f $OSSLIBDIR/etc/S89oss /etc/init.d/oss
265
266
chmod 744 /etc/init.d/oss
267
268
if test -x /sbin/chkconfig
269
then
270
  /sbin/chkconfig oss on        > /dev/null 2>&1
271
else
272
 if test -x /usr/sbin/update-rc.d
273
 then
274
   /usr/sbin/update-rc.d oss defaults > /dev/null 2>&1
275
 else
276
  if test -d etc/rc.d/rc3.d
277
  then
278
    rm -f /etc/rc.d/rc3.d/S89oss
279
    ln -s /etc/init.d/oss /etc/rc.d/rc3.d/S89oss
280
  else
281
    if test -d /etc/rc3.d
282
    then
283
      rm -f /etc/rc3.d/S89oss
284
      ln -s /etc/init.d/oss /etc/rc3.d/S89oss
285
    fi
286
  fi
287
 fi
288
fi
289
290
# Install ALSA interface module (Cuckoo)
169
# Install ALSA interface module (Cuckoo)
291
#(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1
170
#(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1
292
#if (cd $OSSLIBDIR/cuckoo && make install) > $OSSLIBDIR/logs/cuckoo.log 2>&1
171
#if (cd $OSSLIBDIR/cuckoo && make install) > $OSSLIBDIR/logs/cuckoo.log 2>&1

Return to bug 184123