From patchwork Thu Apr 10 15:59:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 338149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 9155414007D for ; Fri, 11 Apr 2014 02:00:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DB7488BDCD; Thu, 10 Apr 2014 16:00:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3GMFWVMULpvV; Thu, 10 Apr 2014 16:00:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2F7448BDA0; Thu, 10 Apr 2014 16:00:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 00DE21CE6BC for ; Thu, 10 Apr 2014 16:00:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F14F08BF52 for ; Thu, 10 Apr 2014 16:00:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KRFBMdKJGZxM for ; Thu, 10 Apr 2014 16:00:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.89.28.114]) by whitealder.osuosl.org (Postfix) with ESMTP id 3BB008BEE9 for ; Thu, 10 Apr 2014 16:00:28 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 3142712795CD9 for ; Thu, 10 Apr 2014 17:00:22 +0100 (IST) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 10 Apr 2014 17:00:25 +0100 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 10 Apr 2014 17:00:24 +0100 From: Vicente Olivert Riera To: Date: Thu, 10 Apr 2014 16:59:25 +0100 Message-ID: <1397145566-11243-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Subject: [Buildroot] [PATCH 1/2] systemd: Build legacy pc files when liblogging is X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The liblogging package stills searching for "libsystemd-journal.pc" in the configure phase. The default behaviour from systemd-209 and later versions is to merge the libraries and ".pc" files into single libsystemd{.pc} files, so the old "libsystemd-*{.pc}" files don't exist anymore and liblogging fails at configure phase with a message like this one: ........................................................................ checking for LIBSYSTEMD_JOURNAL... no configure: error: Package requirements (libsystemd-journal >= 197) were not met: Package libsystemd-journal was not found in the pkg-config search path. Perhaps you should add the directory containing `libsystemd-journal.pc' to the PKG_CONFIG_PATH environment variable No package 'libsystemd-journal' found ........................................................................ Passing the "--enable-compat-libs" option to the systemd configure script will install the separate libraries and ".pc" files, so we add that option just in case the liblogging package had been selected. We can revert this change when liblogging upstream fixes it's configure script to check for "libsystemd.pc" instead of "libsystemd-journal.pc". Fixes: http://autobuild.buildroot.net/results/32c/32c636020600aa3f378d326c84fac82eb1fb2871/ Signed-off-by: Vicente Olivert Riera --- package/systemd/systemd.mk | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index ecedfce..3d7f42e 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -46,6 +46,12 @@ SYSTEMD_CONF_OPT += \ --disable-dbus \ --without-python +# liblogging still needs the old-style libsystemd-*.pc files +# remove this block when liblogging upstream fix it +ifeq ($(BR2_PACKAGE_LIBLOGGING),y) +SYSTEMD_CONF_OPT += --enable-compat-libs +endif + ifeq ($(BR2_PACKAGE_ACL),y) SYSTEMD_CONF_OPT += --enable-acl SYSTEMD_DEPENDENCIES += acl