From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Leblanc To: 'Eric Bischoff' Cc: docbook-tools-discuss@sourceware.cygnus.com Subject: RE: ANNOUNCE Support for XML Date: Mon, 27 Nov 2000 11:29:00 -0000 Message-ID: <025836EFF856D411A6660090272811E61D083E@EMAIL> X-SW-Source: 2000-q4/msg00043.html Message-ID: <20001127112900.gQ82rmDTZwz1BquDaTQy_egLuNEa-2vDt_uGZnG9U3w@z> > Le Lundi 13 Novembre 2000 07:08, Gregory Leblanc a écrit : > > In it's current form, I am NOT able to build an > > RPM for the docbook-utils package unless I'm logged in as root. > > ???? What happens? Should not be needed. ok, I sort of lied. I changed your spec file like this. --- docbook-utils.spec Thu Nov 9 14:23:21 2000 +++ docbook-utils.spec.new Mon Nov 13 10:54:06 2000 @@ -31,13 +31,21 @@ %Build -./configure --prefix=/usr --mandir=/usr/share/man/en -make +%Configure +#./configure --prefix=/usr --mandir=/usr/share/man/en +if [ "$SMP" != "" ]; then + make -j$SMP "MAKE=make -j$SMP" +else + make +fi +#make %Install +rm -rf $RPM_BUILD_ROOT export DESTDIR=$RPM_BUILD_ROOT -make install prefix=$DESTDIR/usr mandir=$DESTDIR/usr/share/man/en docdir=/usr/share/doc +%makeinstall +#make install prefix=$DESTDIR/usr mandir=$DESTDIR/usr/share/man/en docdir=/usr/share/doc %Clean Basically this says to use the macros built in to RPM instead of hacking stuff together. This makes it much easier to for the RPM to be ported across distributions. I did this because your spec file would put man pages and docs in the wrong locations on RH 6.x. Using these changes, building the RPM fails. Here's what I found as the errors, and I can also send the complete output of rpm -bb docbook-utils.spec, if that will help. Making install in bin make[1]: Entering directory `/home/gleblanc/projects/rpm/BUILD/docbook-utils-0.6/bin' make[2]: Entering directory `/home/gleblanc/projects/rpm/BUILD/docbook-utils-0.6/bin' /bin/sh ../mkinstalldirs /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in mkdir /home/gleblanc/projects/rpm/var/tmp/home mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr mkdir /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in /usr/bin/install -c jw /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/jw /usr/bin/install -c sgmldiff /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/sgmldiff /usr/bin/install -c docbook2dvi /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2dvi /usr/bin/install -c docbook2html /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2html /usr/bin/install -c docbook2man /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2man /usr/bin/install -c docbook2pdf /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2pdf /usr/bin/install -c docbook2ps /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2ps /usr/bin/install -c docbook2rtf /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2rtf /usr/bin/install -c docbook2tex /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2tex /usr/bin/install -c docbook2texi /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2texi /usr/bin/install -c docbook2txt /home/gleblanc/projects/rpm/var/tmp/home/gleblanc/projects/rpm/var/tmp/usr/b in/docbook2txt make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/docbook-utils-0.6/bin' make[1]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/docbook-utils-0.6/bin' Making install in doc I see why the build is failing, but I can't figure out why it's doing that, nor how to fix it. Any help? Greg