This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/18512] make install failure with overridden prefix


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]