From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ea0-f177.google.com ([209.85.215.177]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1UOFXi-0004Tq-33 for openembedded-core@lists.openembedded.org; Sat, 06 Apr 2013 00:55:34 +0200 Received: by mail-ea0-f177.google.com with SMTP id q14so1492506eaj.36 for ; Fri, 05 Apr 2013 15:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=TNiNdJG1YYt9Z0zmgHvs/wyZoTIyHUw7vV1EtdNkHDs=; b=dfVK2Ad4bFH764gCHtvhHY2j6CIAYawrL+CFvNPurEgklCd5cwGQUTOA+iT7tpnSTK xGQhKdiBQFPaMjbjwXf916FVj3WTNihqo6oy+kWWXpJfIk0juCn5irsMMGI6yrIb32K9 Hwd4a0sjM2ivqj+V8cr/PbB6xznP86wowschBIMi7eq1W3pZrfiJLZhClcMwR1+xEREA X4cWVDuedWqCSY/VrORymwoSG58xohKao8t95ZaM+ueTj7LKOVtBkqhIff5amswGsPcP UuIRnpyGCDoP5u0M92FxGRgOplnUH6F+tqfFhCg9r53FP0LlIdDuBAO98aG01uZ1atci s8Eg== X-Received: by 10.14.179.201 with SMTP id h49mr23491738eem.26.1365201499340; Fri, 05 Apr 2013 15:38:19 -0700 (PDT) Received: from ubuntu.datv.net ([213.174.0.226]) by mx.google.com with ESMTPS id u44sm17904799eel.7.2013.04.05.15.38.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Apr 2013 15:38:18 -0700 (PDT) From: Yevhen Kyriukha To: openembedded-core@lists.openembedded.org Date: Sat, 6 Apr 2013 01:38:04 +0300 Message-Id: <1365201484-3514-1-git-send-email-kirgene@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: Yevhen Kyriukha Subject: [PATCH v2] systemd: added python-systemd package generation. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 22:55:34 -0000 --- meta/recipes-core/systemd/systemd_199.bb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_199.bb b/meta/recipes-core/systemd/systemd_199.bb index e574548..00daf99 100644 --- a/meta/recipes-core/systemd/systemd_199.bb +++ b/meta/recipes-core/systemd/systemd_199.bb @@ -15,7 +15,13 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" SECTION = "base/shell" -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d pythonnative python-dir + +# need to export these variables for python-config to work +export BUILD_SYS +export HOST_SYS +export STAGING_INCDIR +export STAGING_LIBDIR SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \ file://touchscreen.rules \ @@ -44,11 +50,13 @@ LDFLAGS_libc-uclibc_append = " -lrt" GTKDOC_DOCDIR = "${S}/docs/" -PACKAGECONFIG ??= "xz" +PACKAGECONFIG ??= "xz python" # Sign the journal for anti-tampering PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt" # Compress the journal PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz" +# Use python-systemd +PACKAGECONFIG[python] = "--with-python,--without-python,python" CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill" @@ -65,7 +73,6 @@ EXTRA_OECONF = " --with-rootprefix=${base_prefix} \ --disable-tcpwrap \ --enable-split-usr \ --disable-microhttpd \ - --without-python \ --with-sysvrcnd-path=${sysconfdir} \ ac_cv_path_KILL=${base_bindir}/kill \ " @@ -114,7 +121,7 @@ python populate_packages_prepend (){ } PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*" -PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install" +PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install python-${PN} python-${PN}-dbg python-${PN}-staticdev" USERADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal" @@ -124,6 +131,11 @@ FILES_${PN}-analyze = "${base_bindir}/systemd-analyze" FILES_${PN}-initramfs = "/init" RDEPENDS_${PN}-initramfs = "${PN}" +FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py* ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so" +RDEPENDS_python-${PN} = "python-core python-datetime python-logging python-syslog" +FILES_python-${PN}-staticdev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la" +FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug" + FILES_${PN}-gui = "${bindir}/systemadm" FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \ -- 1.7.9.5