2014-07-25 17:31:40 +02:00
|
|
|
From 582c9a734a0e976592946ff5b577f98551170a38 Mon Sep 17 00:00:00 2001
|
2014-04-04 16:03:34 +02:00
|
|
|
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
2014-07-25 17:31:40 +02:00
|
|
|
Date: Mon, 21 Jul 2014 11:34:38 +0200
|
2014-06-04 23:40:49 +02:00
|
|
|
Subject: [PATCH 1/1] build-sys: revert use of ln relative option.
|
2014-04-04 16:03:34 +02:00
|
|
|
|
|
|
|
Systemd build system now uses the `--relative` option from `ln(1)`.
|
|
|
|
This option was added to GNU coreutils 8.16, which is not widely
|
|
|
|
deployed yet by GNU/Linux distributions (not available in Debian Wheezy
|
|
|
|
for example).
|
|
|
|
|
|
|
|
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
|
|
|
---
|
2015-02-18 13:05:40 +01:00
|
|
|
Makefile.am | 19 +++++--------------
|
2014-06-04 23:40:49 +02:00
|
|
|
configure.ac | 2 --
|
2015-02-18 13:05:40 +01:00
|
|
|
2 files changed, 5 insertions(+), 16 deletions(-)
|
2014-04-04 16:03:34 +02:00
|
|
|
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
2014-07-25 17:31:40 +02:00
|
|
|
index e238cde..02b39ea 100644
|
2014-04-04 16:03:34 +02:00
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
2014-07-25 17:31:40 +02:00
|
|
|
@@ -219,8 +219,8 @@ define move-to-rootlibdir
|
2014-04-04 16:03:34 +02:00
|
|
|
if test "$(libdir)" != "$(rootlibdir)"; then \
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
|
|
|
|
so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
|
|
|
|
- rm -f $(DESTDIR)$(libdir)/$$libname && \
|
|
|
|
- $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
|
|
|
+ so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
|
|
|
|
+ $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
|
|
|
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
|
|
|
|
fi
|
|
|
|
endef
|
2014-07-25 17:31:40 +02:00
|
|
|
@@ -279,9 +279,9 @@ install-aliases-hook:
|
2014-04-04 16:03:34 +02:00
|
|
|
set -- $(SYSTEM_UNIT_ALIASES) && \
|
|
|
|
dir=$(systemunitdir) && $(install-aliases)
|
|
|
|
set -- $(USER_UNIT_ALIASES) && \
|
|
|
|
- dir=$(userunitdir) && $(install-relative-aliases)
|
|
|
|
+ dir=$(userunitdir) && $(install-aliases)
|
|
|
|
set -- $(GENERAL_ALIASES) && \
|
|
|
|
- dir= && $(install-relative-aliases)
|
|
|
|
+ dir= && $(install-aliases)
|
2014-07-25 17:31:40 +02:00
|
|
|
|
2014-04-04 16:03:34 +02:00
|
|
|
define install-aliases
|
|
|
|
while [ -n "$$1" ]; do \
|
2014-07-25 17:31:40 +02:00
|
|
|
@@ -292,15 +292,6 @@ define install-aliases
|
2014-04-04 16:03:34 +02:00
|
|
|
done
|
|
|
|
endef
|
2014-07-25 17:31:40 +02:00
|
|
|
|
2014-04-04 16:03:34 +02:00
|
|
|
-define install-relative-aliases
|
|
|
|
- while [ -n "$$1" ]; do \
|
|
|
|
- $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
|
|
|
|
- rm -f $(DESTDIR)$$dir/$$2 && \
|
|
|
|
- $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
|
|
|
|
- shift 2 || exit $$?; \
|
|
|
|
- done
|
|
|
|
-endef
|
|
|
|
-
|
2014-07-25 17:31:40 +02:00
|
|
|
install-touch-usr-hook:
|
|
|
|
touch -c $(DESTDIR)/$(prefix)
|
|
|
|
|
|
|
|
@@ -2034,7 +2025,7 @@ systemd_dbus1_generator_LDADD = \
|
2014-04-04 16:03:34 +02:00
|
|
|
dbus1-generator-install-hook:
|
|
|
|
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
|
2014-07-25 17:31:40 +02:00
|
|
|
$(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
2014-04-04 16:03:34 +02:00
|
|
|
- $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
|
|
|
+ $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
2014-07-25 17:31:40 +02:00
|
|
|
|
2014-04-04 16:03:34 +02:00
|
|
|
dbus1-generator-uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
|
2014-06-04 23:40:49 +02:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
2014-07-25 17:31:40 +02:00
|
|
|
index ae88382..ec220af 100644
|
2014-06-04 23:40:49 +02:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2014-07-25 17:31:40 +02:00
|
|
|
@@ -96,8 +96,6 @@ AC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
|
|
|
|
|
2014-06-04 23:40:49 +02:00
|
|
|
AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
|
2014-07-25 17:31:40 +02:00
|
|
|
|
2014-06-04 23:40:49 +02:00
|
|
|
-AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
|
|
|
|
-
|
|
|
|
M4_DEFINES=
|
2014-07-25 17:31:40 +02:00
|
|
|
|
2014-06-04 23:40:49 +02:00
|
|
|
# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
|
2014-07-25 17:31:40 +02:00
|
|
|
--
|
2014-06-04 23:40:49 +02:00
|
|
|
1.7.10.4
|
2014-04-04 16:03:34 +02:00
|
|
|
|