On 30 Sep 2001, Chmouel Boudjnah wrote:

> Ian White <[EMAIL PROTECTED]> writes:
> 
> > Trying to rebuild MAKEDEV-3.2-3mdk from the src package as a user gives
> > all sorts of errors like:
> > 
> > File must begin with "/": %dev(c,
> > File must begin with "/": 3,
> > File must begin with "/": 17)
> > 
> > But it works as root.
> 
> yes this package has psychological problems to be build as user :p
> 

haha. can you put in something in the spec file to deal with the attempt
then? that way people like me won't sit there going 'wtf did i do wrong
now?'

--- MAKEDEV.spec~       Thu Aug 30 02:45:48 2001
+++ MAKEDEV.spec        Sat Sep 29 19:34:20 2001
@@ -43,7 +43,12 @@
 
 %build
 #find . -name '*%{extpatch}'|xargs rm -f
-make OPTFLAGS="$RPM_OPT_FLAGS"
+if [ `id -u` = 0 ] ; then
+       make OPTFLAGS="$RPM_OPT_FLAGS"
+else
+       echo "Chmou sucks. Rebuild as root"
+       exit 1
+fi



Reply via email to