From: Sami Kerola <kerolasa@iki.fi>
To: Mike Frysinger <vapier@gentoo.org>
Cc: util-linux@vger.kernel.org, "Sami Kerola" <kerolasa@iki.fi>,
"Karel Zak" <kzak@redhat.com>,
"Thomas Bächler" <thomas@archlinux.org>
Subject: Re: [PATCH] uuidd: use pkg-config to find systemd-deamon support
Date: Wed, 8 Jan 2014 22:28:06 +0000 [thread overview]
Message-ID: <1389220086-7475-1-git-send-email-kerolasa@iki.fi> (raw)
In-Reply-To: <201401081544.37516.vapier@gentoo.org>
Hi Mike, and others,
So the change that's needed could be something like
--->8----
From: Sami Kerola <kerolasa@iki.fi>
Date: Wed, 8 Jan 2014 22:16:05 +0000
Subject: [PATCH] build-sys: add ./configure --enable-libraries-only option
The option is meant to help distributors to bootstrap systems out of
scratch.
Reference: http://www.spinics.net/lists/util-linux-ng/index.html#08695
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
Makefile.am | 12 ++++++++++++
configure.ac | 10 +++++++++-
login-utils/Makemodule.am | 11 -----------
3 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 17f4c33..24a7212 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,6 +79,7 @@ include libblkid/Makemodule.am
include libmount/Makemodule.am
include libfdisk/Makemodule.am
+if HAVE_COMMANDS
include schedutils/Makemodule.am
include text-utils/Makemodule.am
include term-utils/Makemodule.am
@@ -92,6 +93,7 @@ include fdisks/Makemodule.am
include bash-completion/Makemodule.am
include tests/Makemodule.am
+endif # HAVE_COMMANDS
#
# Don't rely on configure.ac AC_CONFIG_FILES for install paths.
@@ -191,6 +193,16 @@ checksmatch:
changelog: $(CHANGELOG_FILE)
install-exec-hook: $(INSTALL_EXEC_HOOKS)
+if HAVE_COMMANDS
+if BUILD_SU
+if MAKEINSTALL_DO_SETUID
+ chmod 4755 $(DESTDIR)$(bindir)/su
+endif
+endif # BUILD_SU
+if BUILD_VIPW
+ cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
+endif
+endif # HAVE_COMMANDS
uninstall-hook: $(UNINSTALL_HOOKS)
diff --git a/configure.ac b/configure.ac
index 6bf5048..d08589e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -704,6 +704,11 @@ AS_IF([test "x$with_utempter" = xyes], [
AM_CONDITIONAL([HAVE_UTEMPTER], [false])
])
+AC_ARG_ENABLE([binaries],
+ AS_HELP_STRING([--disable-binaries], [build only libraries]),
+ [], [enable_libraries_only=yes]
+)
+AM_CONDITIONAL(HAVE_COMMANDS, test "x$enable_libraries_only" = xyes)
AC_ARG_ENABLE([most-builds],
AS_HELP_STRING([--enable-most-builds], [build everything other than experimental code]),
@@ -1570,7 +1575,10 @@ libblkid/src/blkid.h
libmount/docs/Makefile
libmount/docs/version.xml
libmount/src/libmount.h
-po/Makefile.in
+])
+
+AS_IF([test "x$enable_libraries_only" = xyes], [
+ AC_CONFIG_FILES([po/Makefile.in])
])
AC_OUTPUT
diff --git a/login-utils/Makemodule.am b/login-utils/Makemodule.am
index aca028a..c57aca7 100644
--- a/login-utils/Makemodule.am
+++ b/login-utils/Makemodule.am
@@ -196,14 +196,3 @@ test_logindefs_SOURCES = \
login-utils/logindefs.c \
login-utils/logindefs.h
test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
-
-
-install-exec-hook:
-if BUILD_SU
-if MAKEINSTALL_DO_SETUID
- chmod 4755 $(DESTDIR)$(bindir)/su
-endif
-endif
-if BUILD_VIPW
- cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
-endif
--
1.8.5.2
next prev parent reply other threads:[~2014-01-08 22:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-06 23:39 [PATCH] uuidd: use pkg-config to find systemd-deamon support Sami Kerola
2014-01-07 8:58 ` Karel Zak
2014-01-07 9:38 ` Thomas Bächler
2014-01-07 9:54 ` Karel Zak
2014-01-07 9:55 ` Thomas Bächler
2014-01-07 10:19 ` Karel Zak
2014-01-07 18:44 ` Mike Frysinger
2014-01-07 18:51 ` Dave Reisner
2014-01-07 19:57 ` Mike Frysinger
2014-01-08 9:21 ` Karel Zak
2014-01-08 20:37 ` Sami Kerola
2014-01-08 20:44 ` Mike Frysinger
2014-01-08 22:28 ` Sami Kerola [this message]
2014-01-09 8:54 ` Karel Zak
2014-01-09 16:56 ` Mike Frysinger
2014-01-10 14:29 ` Sami Kerola
2014-01-07 11:20 ` Karel Zak
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=1389220086-7475-1-git-send-email-kerolasa@iki.fi \
--to=kerolasa@iki.fi \
--cc=kzak@redhat.com \
--cc=thomas@archlinux.org \
--cc=util-linux@vger.kernel.org \
--cc=vapier@gentoo.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox