Configure (from makefile) was:
cd $(build) && ./configure \
--cache-file=$(buildPath)/cache \
--program-prefix=m \
--bindir=$(buildPath) \
--sbindir=$(buildPath) \
--libexecdir=$(buildPath) \
--datadir=$(buildPath) \
--sysconfdir=$(buildPath) \
--sharedstatedir=$(buildPath) \
--localstatedir=$(buildPath) \
--libdir=$(buildPath) \
--includedir=$(buildPath) \
--oldincludedir=$(buildPath) \
--infodir=$(buildPath) \
--mandir=$(buildPath)
The built executables did wind up in $(buildPath), but the install
still tries to put .po/.mo files in /usr/local/share. Host is
686-Linux, typical error message (of many) is:
test -z "/home/ivan/ootbc/binutils/build" || mkdir -p --
"/home/ivan/ootbc/binutils/build"
/usr/bin/install -c -m 644 './bfd.info'
'/home/ivan/ootbc/binutils/build/bfd.info'
make[3]: Leaving directory
`/mnt/export/home/ivan/ootbc/binutils/build/bfd/doc'
Making install in po
make[3]: Entering directory
`/mnt/export/home/ivan/ootbc/binutils/build/bfd/po'
if test -r ../.././bfd/po/../../mkinstalldirs; then \
../.././bfd/po/../../mkinstalldirs
/home/ivan/ootbc/binutils/build; \
else \
../.././bfd/mkinstalldirs /home/ivan/ootbc/binutils/build; \
fi
/usr/bin/install: cannot remove
`/usr/local/share/locale/fr/LC_MESSAGES/bfd.mo': Permission denied
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/bfd.mo
/usr/bin/install: cannot remove
`/usr/local/share/locale/tr/LC_MESSAGES/bfd.mo': Permission denied
First two lines of excerpt shows doc being installed in correct
destination, then the .po's fail.
Generated bfd/Makefile has:
datadir = /home/ivan/ootbc/binutils/build
but generated bfd/po/Makefile has:
prefix = /usr/local
exec_prefix = ${prefix}
datadir = $(prefix)/share
Same problem in other directories with po/mo.
Ivan
|