All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [patch] disallow includedir /usr/include
@ 2008-05-07 13:48 Hillier, Gernot
  2008-05-15  7:53 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Hillier, Gernot @ 2008-05-07 13:48 UTC (permalink / raw)
  To: Xenomai-core

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

Hi again!

Current SVN head fails to do "make install" when you use --prefix=/usr 
resulting in the includedir /usr/include:

--- SNIP ---
make[2]: Entering directory `/home/gernot/xenomai/include'
make[3]: Entering directory `/home/gernot/xenomai/include'
make[3]: Nothing to be done for `install-exec-am'.
rm -f /usr/include/asm
rm: cannot remove `/usr/include/asm': Is a directory
make[3]: *** [install-data-local] Error 1
--- SNAP ---

As far as I understood Jan, using /usr/include is a bad idea, so I 
created a patch telling the user what went wrong in a nicer way.

Please apply if you consider it to be the right fix (tm).

-- 
Gernot Hillier
Siemens AG, CT SE 2
Corporate Competence Center Embedded Linux

[-- Attachment #2: xenomai-catch-wrong-includedir.diff --]
[-- Type: text/x-diff, Size: 503 bytes --]

Index: configure.in
===================================================================
--- configure.in	(Revision 3755)
+++ configure.in	(Arbeitskopie)
@@ -14,6 +14,10 @@
 	XENO_EMPTY_CFLAGS=false
 fi
 
+if eval test $includedir = /usr/include; then
+  AC_MSG_ERROR([Using /usr/include as includedir is not supported. Please change your --prefix or specify another --includedir])
+fi
+
 AC_CONFIG_HEADERS(src/include/xeno_config.h)
 AC_CONFIG_AUX_DIR(config)
 AC_CONFIG_SRCDIR(src/skins/native/task.c)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-15  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 13:48 [Xenomai-core] [patch] disallow includedir /usr/include Hillier, Gernot
2008-05-15  7:53 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.