mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
60 lines
2.2 KiB
Diff
60 lines
2.2 KiB
Diff
From dc3f2250908587710f109c80ddf8a94f0bc40b82 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Richardson <jonathan.richardson@broadcom.com>
|
|
Date: Fri, 6 Apr 2018 10:49:04 -0700
|
|
Subject: [PATCH] autotools: Add option to disable installation of systemd conf
|
|
files
|
|
|
|
Add option to configure.ac to enable or disable install of systemd conf
|
|
files. If --with-systemdsystemunitdir is passed to configure then the
|
|
files will be installed to the provided directory. If the option isn't
|
|
provided then the value is determined from the systemd pkgconfig file,
|
|
if found in PKG_CONFIG_PATH.
|
|
|
|
This change is required because Makefile.am always installed the files
|
|
to a hard coded path that couldn't be changed.
|
|
|
|
|
|
Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
|
|
---
|
|
Upstream-Status: Pending
|
|
|
|
Makefile.am | 3 ++-
|
|
configure.ac | 9 +++++++++
|
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
index 292c0fd..0fb9bb0 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -138,8 +138,9 @@ install-data-hook: installdirs-local
|
|
pkgconfigdir = ${libdir}/pkgconfig
|
|
pkgconfig_DATA = lldpad.pc liblldp_clif.pc
|
|
|
|
-systemdsystemunitdir = $(prefix)/lib/systemd/system
|
|
+if HAVE_SYSTEMD
|
|
dist_systemdsystemunit_DATA = lldpad.service lldpad.socket
|
|
+endif
|
|
|
|
bashcompletiondir = $(sysconfdir)/bash_completion.d
|
|
dist_bashcompletion_DATA = contrib/bash_completion/lldpad contrib/bash_completion/lldptool
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 0667446..f75f433 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -95,6 +95,15 @@ AC_TYPE_UINT16_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT8_T
|
|
|
|
+# Support for systemd unit files.
|
|
+AC_ARG_WITH([systemdsystemunitdir],
|
|
+ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
+ [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
+if test "x$with_systemdsystemunitdir" != xno; then
|
|
+ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
+fi
|
|
+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
+
|
|
AC_CONFIG_FILES([Makefile include/version.h lldpad.spec lldpad.pc liblldp_clif.pc])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AC_OUTPUT
|