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

(-)a/oss-v4.1-build1051-src-gpl/setup/Linux/build.sh (-11 / +11 lines)
Lines 63-82 Link Here
63
cp regparm prototype/$OSSLIBDIR/build
63
cp regparm prototype/$OSSLIBDIR/build
64
64
65
# Regenerating the config file templates
65
# Regenerating the config file templates
66
rm -f /tmp/confgen
66
rm -f ${T}/confgen
67
if ! cc -o /tmp/confgen ./setup/Linux/confgen.c
67
if ! cc -o ${T}/confgen ./setup/Linux/confgen.c
68
then
68
then
69
	echo Building confgen failed
69
	echo Building confgen failed
70
	exit 1
70
	exit 1
71
fi
71
fi
72
72
73
if ! /tmp/confgen prototype/$OSSLIBDIR/conf.tmpl $OSSLIBDIR/conf kernel/drv/* kernel/nonfree/drv/*
73
if ! ${T}/confgen prototype/$OSSLIBDIR/conf.tmpl $OSSLIBDIR/conf kernel/drv/* kernel/nonfree/drv/*
74
then
74
then
75
	echo Running confgen failed
75
	echo Running confgen failed
76
	exit 1
76
	exit 1
77
fi
77
fi
78
78
79
rm -f /tmp/confgen
79
rm -f ${T}/confgen
80
80
81
cp -a $SRCDIR/include/* prototype/$OSSLIBDIR/include/sys/
81
cp -a $SRCDIR/include/* prototype/$OSSLIBDIR/include/sys/
82
cp $SRCDIR/kernel/framework/include/midiparser.h prototype/$OSSLIBDIR/include/
82
cp $SRCDIR/kernel/framework/include/midiparser.h prototype/$OSSLIBDIR/include/
Lines 117-140 Link Here
117
	echo Check devices for $N
117
	echo Check devices for $N
118
  	grep "^$N[ 	]" ./devices.list >> devlist.txt
118
  	grep "^$N[ 	]" ./devices.list >> devlist.txt
119
119
120
	rm -f /tmp/ossman.txt
120
	rm -f ${T}/ossman.txt
121
121
122
	if test -f $SRCDIR/kernel/drv/$N/$N.man
122
	if test -f $SRCDIR/kernel/drv/$N/$N.man
123
	then
123
	then
124
	  sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/$N/$N.man > /tmp/ossman.txt
124
	  sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/$N/$N.man > ${T}/ossman.txt
125
	  $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/$N.7.gz
125
	  $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 ${T}/ossman.txt | gzip -9 > prototype/usr/share/man/man7/$N.7.gz
126
	else
126
	else
127
		if test -f $SRCDIR/kernel/nonfree/drv/$N/$N.man
127
		if test -f $SRCDIR/kernel/nonfree/drv/$N/$N.man
128
		then
128
		then
129
	  		sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/nonfree/drv/$N/$N.man > /tmp/ossman.txt
129
	  		sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/nonfree/drv/$N/$N.man > ${T}/ossman.txt
130
	  		$TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $SRCDIR/kernel/nonfree/drv/$N/$N.man | gzip -9 > prototype/usr/share/man/man7/$N.7.gz
130
	  		$TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $SRCDIR/kernel/nonfree/drv/$N/$N.man | gzip -9 > prototype/usr/share/man/man7/$N.7.gz
131
		fi
131
		fi
132
	fi
132
	fi
133
done
133
done
134
134
135
sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/osscore/osscore.man > /tmp/ossman.txt
135
sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/osscore/osscore.man > ${T}/ossman.txt
136
$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/osscore.7.gz
136
$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 ${T}/ossman.txt | gzip -9 > prototype/usr/share/man/man7/osscore.7.gz
137
rm -f /tmp/ossman.txt
137
rm -f ${T}/ossman.txt
138
138
139
# Link the optional NOREGPARM modules
139
# Link the optional NOREGPARM modules
140
if test -d noregparm
140
if test -d noregparm

Return to bug 184123