[PATCH] detect overridden install prefix [BZ #18512]

Martin Sebor msebor@redhat.com
Fri Jun 12 01:41:00 GMT 2015


Attempting to install glibc configured with --prefix=/usr into
a non-standard directory specified by the prefix make variable
fails with an error.  Carlos indicated this is an unsupported
use case that he would prefer to detect and error out on early
in the installation process.

Attached is a simple patch that implements this detection. The
patch also updates the INSTALL file to mention this caveat and
recommend using DESTDIR instead.  To keep the patch simple
I didn't implement the idea of detecting whether the overridden
prefix is actually different than the prefix the library was
configured with.

ChangeLog:

2015-06-11  Martin Sebor  <msebor@redhat.com>

	[BZ #18512]
	* Makerules (check-install-supported): New target.
	install: Add check-install-supported as a dependency.
	* INSTALL (Installing the C Library): Document that overriding
	prefix and exec_prefix is not supported.  Mention DESTDIR.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-18512-disable-prefix-override.patch
Type: text/x-patch
Size: 2066 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150612/e1e92bac/attachment.bin>


More information about the Libc-alpha mailing list