[OE-core] [OE-Core][PATCH] openssl: move c_rehash pkg to avoid perl dep
Perl and its dependencies have a decent footprint impact. On my xz compressed filesystem: 634880: /usr/lib/libperl.so.5.24.4 Put c_rehash in the openssl-misc package so the dependency can be avoided where it isn't needed. Change-Id: Iae9bccabfb1c8cfa1401ca6785abc39713d3fdf0 Signed-off-by: Brad Bishop --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb index 5c4e69cfb7..7d26654921 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb @@ -190,14 +190,13 @@ FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES_libssl = "${libdir}/libssl${SOLIBS}" FILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf" FILES_${PN}-engines = "${libdir}/engines-1.1" -FILES_${PN}-misc = "${libdir}/ssl-1.1/misc" +FILES_${PN}-misc = "${libdir}/ssl-1.1/misc ${bindir}/c_rehash" FILES_${PN} =+ "${libdir}/ssl-1.1/*" FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" CONFFILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf" RRECOMMENDS_libcrypto += "openssl-conf" -RDEPENDS_${PN}-bin = "perl" RDEPENDS_${PN}-misc = "perl" RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules bash python" -- 2.20.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] flto automake
> On Dec 18, 2018, at 1:08 PM, James Feist wrote: > > If you aren't planning on enabling flto in a repo you can ignore this email. > > > I've created a new class flto-automake > https://github.com/openbmc/meta-phosphor/blob/master/classes/flto-automake.bbclass > if you are enabling -flto in an autotools project you might be interested > in. When using static libraries you may run into undefined references when > building with Yocto. Yocto by default uses: > > export AR = "${HOST_PREFIX}ar" > export RANLIB = "${HOST_PREFIX}ranlib" > > for AR and RANLIB. This new class replaces these with the gcc equivalent > wrappers that can work with the flto object files. This doesn't seem to be an > issue for the CI build, it only shows up for Yocto builds. Reference: > http://stackoverflow.com/questions/25878407/how-can-i-use-lto-with-static-libraries#comment67660913_25878408 > > For Cmake I suggest looking at the way bmcweb handles it in CMakesLists: > https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L92 > > Thanks, > > James Thanks James I wonder if this is something they would be interested in upstream. I’ve copied the oe-core mailing list for possible comment. -brad -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [OE-Core][PATCH] systemd-systemctl-native: handle Install wildcards
Handle the %i wildcard appearing in a dependency in the Install section of a template unit, e.g. $ cat foo@.service [Install] WantedBy=bar@%i.target Using the real systemctl something like: $ systemctl enable foo@baz.service will create a symlink in /etc/systemd/system/bar@baz.target.wants. Detect wildcards in templates and make the appropriate substitution. Signed-off-by: Brad Bishop --- .../systemd/systemd-systemctl/systemctl | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index 6e5a1b7181..2bc6489617 100755 --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl @@ -84,11 +84,7 @@ for service in $services; do else echo "Try to find location of template $service_base_file of instance $service..." service_template=true - if [ -z `echo $service | sed 's/^.\+@\(.*\)\.[^.]\+/\1/'` ]; then - instance_specified=false - else - instance_specified=true - fi + instance_specified=`echo $service | sed 's/^.\+@\(.*\)\.[^.]\+/\1/'` fi # find service file @@ -139,9 +135,14 @@ for service in $services; do fi for r in $dependency_list; do echo "$dependency=$r found in $service" + if [ -n "$instance_specified" ]; then + # substitute wildcards in the dependency + r=`echo $r | sed "s/%i/$instance_specified/g"` + fi + if [ "$action" = "enable" ]; then enable_service=$service - if [ "$service_template" = true -a "$instance_specified" = false ]; then + if [ "$service_template" = true -a -z "$instance_specified" ]; then default_instance=$(sed '/^DefaultInstance[[:space:]]*=/s,[^=]*=,,p;d' "$ROOT/$service_file") if [ -z $default_instance ]; then echo "Template unit without instance or DefaultInstance directive, nothing to enable" @@ -155,7 +156,7 @@ for service in $services; do ln -s $service_file $ROOT/etc/systemd/system/$r.$suffix/$enable_service echo "Enabled $enable_service for $r." else - if [ "$service_template" = true -a "$instance_specified" = false ]; then + if [ "$service_template" = true -a -z "$instance_specified" ]; then disable_service="$ROOT/etc/systemd/system/$r.$suffix/`echo $service | sed 's/@/@*/'`" else disable_service="$ROOT/etc/systemd/system/$r.$suffix/$service" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH v2] autoconf-archive: update to version to 2018.03.13
2016.09.16 -> 2018.03.13 License-Update: s/http/https/ in the license requires md5sum update. Signed-off-by: Brad Bishop --- v2: Add License-Update tag to commit message. --- ...utoconf-archive_2016.09.16.bb => autoconf-archive_2018.03.13.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta/recipes-devtools/autoconf-archive/{autoconf-archive_2016.09.16.bb => autoconf-archive_2018.03.13.bb} (66%) diff --git a/meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb b/meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb similarity index 66% rename from meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb rename to meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb index 89d57ac079..7d62e52ab8 100644 --- a/meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb +++ b/meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb @@ -2,12 +2,12 @@ SUMMARY = "a collection of freely re-usable Autoconf macros" HOMEPAGE = "http://www.gnu.org/software/autoconf-archive/"; SECTION = "devel" LICENSE = "GPL-3.0-with-autoconf-exception" -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ +LIC_FILES_CHKSUM = "file://COPYING;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \ file://COPYING.EXCEPTION;md5=fdef168ebff3bc2f13664c365a5fb515" SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz" -SRC_URI[md5sum] = "bf19d4cddce260b3c3e1d51d42509071" -SRC_URI[sha256sum] = "e8f2efd235f842bad2f6938bf4a72240a5e5fcd248e8444335e63beb60fabd82" +SRC_URI[md5sum] = "46b13a5936372297b6d49980327a3c35" +SRC_URI[sha256sum] = "6175f90d9fa64c4d939bdbb3e8511ae0ee2134863a2c7bf8d9733819efa6e159" inherit autotools allarch -- 2.14.3 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] autoconf-archive: update to version to 2018.03.13
2016.09.16 -> 2018.03.13 s/http/https/ in the license requires md5sum update. Signed-off-by: Brad Bishop --- ...utoconf-archive_2016.09.16.bb => autoconf-archive_2018.03.13.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta/recipes-devtools/autoconf-archive/{autoconf-archive_2016.09.16.bb => autoconf-archive_2018.03.13.bb} (66%) diff --git a/meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb b/meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb similarity index 66% rename from meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb rename to meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb index 89d57ac079..7d62e52ab8 100644 --- a/meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb +++ b/meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb @@ -2,12 +2,12 @@ SUMMARY = "a collection of freely re-usable Autoconf macros" HOMEPAGE = "http://www.gnu.org/software/autoconf-archive/"; SECTION = "devel" LICENSE = "GPL-3.0-with-autoconf-exception" -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ +LIC_FILES_CHKSUM = "file://COPYING;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \ file://COPYING.EXCEPTION;md5=fdef168ebff3bc2f13664c365a5fb515" SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz" -SRC_URI[md5sum] = "bf19d4cddce260b3c3e1d51d42509071" -SRC_URI[sha256sum] = "e8f2efd235f842bad2f6938bf4a72240a5e5fcd248e8444335e63beb60fabd82" +SRC_URI[md5sum] = "46b13a5936372297b6d49980327a3c35" +SRC_URI[sha256sum] = "6175f90d9fa64c4d939bdbb3e8511ae0ee2134863a2c7bf8d9733819efa6e159" inherit autotools allarch -- 2.14.3 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] libyaml: Enable nativesdk bake
Signed-off-by: Brad Bishop --- meta/recipes-support/libyaml/libyaml_0.1.7.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/libyaml/libyaml_0.1.7.bb b/meta/recipes-support/libyaml/libyaml_0.1.7.bb index 5c422ef..b167f03 100644 --- a/meta/recipes-support/libyaml/libyaml_0.1.7.bb +++ b/meta/recipes-support/libyaml/libyaml_0.1.7.bb @@ -17,4 +17,4 @@ S = "${WORKDIR}/yaml-${PV}" inherit autotools -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" -- 1.8.3.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core