This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/18512] make install failure with overridden prefix
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 10 Jun 2015 18:43:32 +0000
- Subject: [Bug build/18512] make install failure with overridden prefix
- Auto-submitted: auto-generated
- References: <bug-18512-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18512
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Martin Sebor from comment #0)
> Attempting to install glibc configured with --prefix=/usr into a
> non-standard directory specified by the prefix make variable fails with the
> error below:
>
> $ /src/glibc-trunk/configure --prefix=/usr
> ...
> $ nice make install prefix=/build/glibc-trunk-install-prefix-override-usr
> make[3]: Leaving directory `/src/glibc-trunk/elf'
> /usr/bin/install -c /build/glibc-trunk/elf/ld.so /lib64/ld-2.21.90.so.new
> /usr/bin/install: cannot create regular file '/lib64/ld-2.21.90.so.new':
> Permission denied
> make[2]: *** [/lib64/ld-2.21.90.so] Error 1
> make[2]: Leaving directory `/src/glibc-trunk/elf'
> make[1]: *** [elf/ldso_install] Error 2
> make[1]: Leaving directory `/src/glibc-trunk'
> make: *** [install] Error 2
>
> However, with glibc configured with a different prefix the same installation
> succeeds.
>
> (Setting the DESTDIR variable works as one would expect.)
This is an unsupported use case.
The prefix is a part of the ABI for glibc, and you can't change it at install
time, only at configure time.
My preference would be to have it error out that you've changed the prefix.
--
You are receiving this mail because:
You are on the CC list for the bug.