From: "Hillier, Gernot" <gernot.hillier@domain.hid>
To: Xenomai-core@domain.hid
Subject: [Xenomai-core] [patch] disallow includedir /usr/include
Date: Wed, 07 May 2008 15:48:53 +0200 [thread overview]
Message-ID: <4821B345.5070001@domain.hid> (raw)
[-- 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)
next reply other threads:[~2008-05-07 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 13:48 Hillier, Gernot [this message]
2008-05-15 7:53 ` [Xenomai-core] [patch] disallow includedir /usr/include Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4821B345.5070001@domain.hid \
--to=gernot.hillier@domain.hid \
--cc=Xenomai-core@domain.hid \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.