From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1UUfTu-0002WX-Hq for openembedded-core@lists.openembedded.org; Tue, 23 Apr 2013 17:50:18 +0200 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 23 Apr 2013 08:32:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,533,1363158000"; d="scan'208";a="323623594" Received: from unknown (HELO [10.255.13.224]) ([10.255.13.224]) by fmsmga001.fm.intel.com with ESMTP; 23 Apr 2013 08:32:06 -0700 Message-ID: <5176A976.3020706@linux.intel.com> Date: Tue, 23 Apr 2013 08:32:06 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Yevhen Kyriukha References: <1366708403-45429-1-git-send-email-kirgene@gmail.com> In-Reply-To: <1366708403-45429-1-git-send-email-kirgene@gmail.com> Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH v4] 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: Tue, 23 Apr 2013 15:50:22 -0000 X-List-Received-Date: Tue, 23 Apr 2013 15:50:22 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/23/2013 02:13 AM, Yevhen Kyriukha wrote: > --- > 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 5240443..bbae6f8 100644 > --- a/meta/recipes-core/systemd/systemd_199.bb > +++ b/meta/recipes-core/systemd/systemd_199.bb > @@ -16,7 +16,13 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" > > SECTION = "base/shell" > > -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives > +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives 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 \ > @@ -46,11 +52,13 @@ LDFLAGS_libc-uclibc_append = " -lrt" > > GTKDOC_DOCDIR = "${S}/docs/" > > -PACKAGECONFIG ??= "xz" > +PACKAGECONFIG ??= "xz python" I believe that the default should be python is not enabled. Sau! > # 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} \ > --with-firmware-path=/lib/firmware \ > ac_cv_path_KILL=${base_bindir}/kill \ > @@ -119,7 +126,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}-dev" > > USERADD_PACKAGES = "${PN}" > GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal" > @@ -129,6 +136,11 @@ FILES_${PN}-analyze = "${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}-dev = "${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 \ >