bug#419: Install gdbm on Fedora

David Steele <[email protected]> Thu, 16 Sep 2004 17:30:52 -0700 (PDT)
Newsgroups gmane.linux.bbc.bugs
Message-ID <[email protected]>
Package: gdbm
Version: 1.8.0

I'm attempting to build lnx-bbc on Fedora core 2, no
chroot. Install is failing for gdbm:

$ make install
[===== NOW BUILDING:    gdbm-1.8.0      =====]
        [fetch] complete for gdbm.
        [checksum] complete for gdbm.
        [extract] complete for gdbm.
        [patch] complete for gdbm.
        [configure] complete for gdbm.
        [build] complete for gdbm.
 ==> Running make install in work/main.d/gdbm-1.8.0
make[1]: Entering directory
`/home/daves/lnxbbc/gar/lib/gdbm/work/main.d/gdbm-1.8.0'
./mkinstalldirs //lib //include
/home/daves/lnxbbc/maindestdir//man/man3 //info
mkdir //include
mkdir: cannot create directory `//include': Permission
denied
mkdir //info
mkdir: cannot create directory `//info': Permission
denied
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/daves/lnxbbc/gar/lib/gdbm/work/main.d/gdbm-1.8.0'
make: *** [install-work/main.d/gdbm-1.8.0/Makefile]
Error 2

The variable definitions for the main_prefix
directories appear to be gronking the "prefix"
override from INSTALL_OVERRIDE_DIRS.

$make -n install
...

make DESTDIR="/home/daves/lnxbbc/maindestdir"
prefix="/" exec_prefix="/" bindir="//bin"
sbindir="//sbin" libexecdir="//libexec"
datadir="//share" sysconfdir="//etc"
sharedstatedir="//share" localstatedir="//var"
libdir="//lib" infodir="//info"
lispdir="//share/emacs/site-lisp"
includedir="//include" mandir="//man"
docdir="//share/doc" sourcedir="//src"
CPPFLAGS="-I/home/daves/lnxbbc/maindestdir//include
-I/home/daves/lnxbbc/maindestdir//lib/gcc-lib/i386-redhat-linux/3.2.3/include
-I//home/daves/lnxbbc/build/lib/gcc-lib/i386-redhat-linux/3.2.3/include"
CFLAGS="-Os -I/home/daves/lnxbbc/maindestdir//include
-L/home/daves/lnxbbc/maindestdir//lib
-I/home/daves/lnxbbc/maindestdir//lib/gcc-lib/i386-redhat-linux/3.2.3/include
-I//home/daves/lnxbbc/build/lib/gcc-lib/i386-redhat-linux/3.2.3/include
-L/home/daves/lnxbbc/maindestdir//lib/gcc-lib/i386-redhat-linux/3.2.3
-L//home/daves/lnxbbc/build/lib/gcc-lib/i386-redhat-linux/3.2.3"
LDFLAGS="-L/home/daves/lnxbbc/maindestdir//lib
-L/home/daves/lnxbbc/maindestdir//lib/gcc-lib/i386-redhat-linux/3.2.3
-L//home/daves/lnxbbc/build/lib/gcc-lib/i386-redhat-linux/3.2.3"
CC="gcc" CXX="g++" CPP="cpp" LD="ld" RANLIB="ranlib"
AS="as" AR="ar" DESTDIR=/home/daves/lnxbbc/maindestdir
prefix="/home/daves/lnxbbc/maindestdir/" -C
work/main.d/gdbm-1.8.0  install


Make appears successful with patch. The patch is
against blotto, though research threw the same error.

--- orig/lib/gdbm/Makefile
+++ mod/lib/gdbm/Makefile
@@ -32,7 +32,7 @@
 # If some dirs are trying to install into /, list
their names
 # here, such as: prefix bindir mandir
 BUILD_OVERRIDE_DIRS = prefix
-INSTALL_OVERRIDE_DIRS = prefix
+INSTALL_OVERRIDE_DIRS = prefix libdir includedir
infodir
  
 # This should go before any hand-made rules.
 include ../../gar.mk



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com