* [meta-networking][PATCH 2/7] quagga: make version.h a multilib header
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 3/7] libdnet: make dnet-config a multilib_script Jeremy A. Puhlman
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
version.h contains the configure options passed during the build
which differs between multilibs
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-protocols/quagga/quagga.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc
index 3494a4398..134a33d47 100644
--- a/meta-networking/recipes-protocols/quagga/quagga.inc
+++ b/meta-networking/recipes-protocols/quagga/quagga.inc
@@ -40,7 +40,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap"
PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam"
-inherit autotools update-rc.d useradd systemd pkgconfig
+inherit autotools update-rc.d useradd systemd pkgconfig multilib_header
SYSTEMD_PACKAGES = "${PN} ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd"
SYSTEMD_SERVICE_${PN}-bgpd = "bgpd.service"
@@ -108,6 +108,8 @@ do_install () {
sed -i 's!^PATH=.*!PATH=${base_sbindir}:${sbindir}:${base_bindir}:${bindir}!' ${D}${sysconfdir}/init.d/*
sed -i 's!--with-libtool-sysroot=[^ "]*!!' ${D}${includedir}/quagga/version.h
+ oe_multilib_header quagga/version.h
+
# For PAM
for feature in ${DISTRO_FEATURES}; do
if [ "$feature" = "pam" ]; then
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-networking][PATCH 3/7] libdnet: make dnet-config a multilib_script
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 2/7] quagga: make version.h a multilib header Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config Jeremy A. Puhlman
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
Script encodes library paths.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb b/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb
index 5b6e45c7b..5b27cfe15 100644
--- a/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb
@@ -11,8 +11,10 @@ UPSTREAM_CHECK_GITTAGREGEX = "libdnet-(?P<pver>\d+(\.\d+)+)"
S = "${WORKDIR}/git"
-inherit autotools
+inherit autotools multilib_script
acpaths = "-I ./config/"
BBCLASSEXTEND = "native"
+
+MULTILIB_SCRIPTS = "${PN}:${bindir}/dnet-config"
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 2/7] quagga: make version.h a multilib header Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 3/7] libdnet: make dnet-config a multilib_script Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
2020-03-07 1:36 ` Khem Raj
2020-03-05 22:39 ` [meta-networking][PATCH 5/7] net-snmp: multilib fixes Jeremy A. Puhlman
` (2 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were
encoded in the config.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
index 317350e94..91c50c4e3 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
@@ -124,11 +124,13 @@ do_install_append() {
-i ${D}${bindir}/net-snmp-create-v3-user
sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
+ -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*--sysroot=[^ "]*@@g' \
-e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
-e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
-e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
-e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
+ -e 's@${STAGING_DIR_HOST}@@g' \
-i ${D}${bindir}/net-snmp-config
if [ "${HAS_PERL}" = "1" ]; then
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config
2020-03-05 22:39 ` [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config Jeremy A. Puhlman
@ 2020-03-07 1:36 ` Khem Raj
2020-03-07 2:56 ` Jeremy A. Puhlman
0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2020-03-07 1:36 UTC (permalink / raw)
To: Jeremy A. Puhlman, openembedded-devel
Hi Jeremy
On 3/5/20 2:39 PM, Jeremy A. Puhlman wrote:
> From: Jeremy Puhlman <jpuhlman@mvista.com>
>
> Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were
> encoded in the config.
>
> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
> ---
> meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
> index 317350e94..91c50c4e3 100644
> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
> @@ -124,11 +124,13 @@ do_install_append() {
> -i ${D}${bindir}/net-snmp-create-v3-user
> sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
> -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
> + -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
> -e 's@[^ ]*--sysroot=[^ "]*@@g' \
> -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
> -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
> -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
> -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
> + -e 's@${STAGING_DIR_HOST}@@g' \
This is causing problems, indirectly like
https://errors.yoctoproject.org/Errors/Details/393851/
https://errors.yoctoproject.org/Errors/Details/393852/
https://errors.yoctoproject.org/Errors/Details/393853/
Since its editing out the paths, whats left is just /usr/lib
and that gets added to compiler commandline as -L/usr/lib which
thankfully gets caught by Build QA
perhaps this regexp can be made less greedy
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config
2020-03-07 1:36 ` Khem Raj
@ 2020-03-07 2:56 ` Jeremy A. Puhlman
0 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-07 2:56 UTC (permalink / raw)
To: Khem Raj, openembedded-devel
On 3/6/2020 5:36 PM, Khem Raj wrote:
> Hi Jeremy
>
> On 3/5/20 2:39 PM, Jeremy A. Puhlman wrote:
>> From: Jeremy Puhlman <jpuhlman@mvista.com>
>>
>> Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were
>> encoded in the config.
>>
>> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
>> ---
>> meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git
>> a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> index 317350e94..91c50c4e3 100644
>> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> @@ -124,11 +124,13 @@ do_install_append() {
>> -i ${D}${bindir}/net-snmp-create-v3-user
>> sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
>> -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
>> + -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
>> -e 's@[^ ]*--sysroot=[^ "]*@@g' \
>> -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
>> -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
>> -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
>> -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
>> + -e 's@${STAGING_DIR_HOST}@@g' \
>
> This is causing problems, indirectly like
>
> https://errors.yoctoproject.org/Errors/Details/393851/
> https://errors.yoctoproject.org/Errors/Details/393852/
> https://errors.yoctoproject.org/Errors/Details/393853/
>
> Since its editing out the paths, whats left is just /usr/lib
> and that gets added to compiler commandline as -L/usr/lib which
> thankfully gets caught by Build QA
>
> perhaps this regexp can be made less greedy
Okay, no problem, I have some builds running locally to check.
--
Jeremy A. Puhlman
jpuhlman@mvista.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [meta-networking][PATCH 5/7] net-snmp: multilib fixes
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
` (2 preceding siblings ...)
2020-03-05 22:39 ` [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 6/7] proftpd: remove macro-prefix-map from prxs Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 7/7] proftpd: make prxs a mulitlib script Jeremy A. Puhlman
5 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
net-snmp/net-snmp-config.h:
- encodes type sizes
- encodes pathing into the libdir
net-snmp-config:
- encodes build configuration data and lib pathing.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
index 91c50c4e3..762dec48c 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
@@ -35,7 +35,7 @@ SRC_URI[sha256sum] = "b2fc3500840ebe532734c4786b0da4ef0a5f67e51ef4c86b3345d697e4
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/"
UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/"
-inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest
+inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest multilib_script multilib_header
EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
@@ -138,6 +138,8 @@ do_install_append() {
-e "s@^NSC_LIBDIR=-L.*@NSC_LIBDIR=-L\$\{libdir\}@g" \
-i ${D}${bindir}/net-snmp-config
fi
+
+ oe_multilib_header net-snmp/net-snmp-config.h
}
do_install_ptest() {
@@ -270,3 +272,5 @@ RREPLACES_${PN}-server-snmptrapd += "${PN}-server-snmptrapd-systemd"
RCONFLICTS_${PN}-server-snmptrapd += "${PN}-server-snmptrapd-systemd"
LEAD_SONAME = "libnetsnmp.so"
+
+MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/net-snmp-config"
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-networking][PATCH 6/7] proftpd: remove macro-prefix-map from prxs
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
` (3 preceding siblings ...)
2020-03-05 22:39 ` [meta-networking][PATCH 5/7] net-snmp: multilib fixes Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
2020-03-05 22:39 ` [meta-networking][PATCH 7/7] proftpd: make prxs a mulitlib script Jeremy A. Puhlman
5 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
macro-prefix-map points to build WORKDIR which will
cause reproducibilty failures.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
index 409947265..a080bec81 100644
--- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
+++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
@@ -110,6 +110,7 @@ do_install () {
sed -e 's|--sysroot=${STAGING_DIR_HOST}||g' \
-e 's|${STAGING_DIR_NATIVE}||g' \
-e 's|-fdebug-prefix-map=[^ ]*||g' \
+ -e 's|-fmacro-prefix-map=[^ ]*||g' \
-i ${D}/${bindir}/prxs
# ftpmail perl script, which reads the proftpd log file and sends
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-networking][PATCH 7/7] proftpd: make prxs a mulitlib script
2020-03-05 22:39 [meta-networking][PATCH 1/7] quagga: fix reproducibily issue Jeremy A. Puhlman
` (4 preceding siblings ...)
2020-03-05 22:39 ` [meta-networking][PATCH 6/7] proftpd: remove macro-prefix-map from prxs Jeremy A. Puhlman
@ 2020-03-05 22:39 ` Jeremy A. Puhlman
5 siblings, 0 replies; 9+ messages in thread
From: Jeremy A. Puhlman @ 2020-03-05 22:39 UTC (permalink / raw)
To: openembedded-devel
From: Jeremy Puhlman <jpuhlman@mvista.com>
Script encodes compiler settings and compiler name.
my $compiler = q(x86_64-poky-linux-gcc -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 );
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
index a080bec81..d5bbdd374 100644
--- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
+++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
@@ -16,7 +16,7 @@ SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${BPN}-${PV}.tar.gz \
iSRC_URI[md5sum] = "13270911c42aac842435f18205546a1b"
SRC_URI[sha256sum] = "91ef74b143495d5ff97c4d4770c6804072a8c8eb1ad1ecc8cc541b40e152ecaf"
-inherit autotools-brokensep useradd update-rc.d systemd
+inherit autotools-brokensep useradd update-rc.d systemd multilib_script
PACKAGECONFIG ??= "shadow \
${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \
@@ -134,6 +134,8 @@ GROUPADD_PARAM_${PN} = "--system ${FTPGROUP}"
USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} --home-dir /var/lib/${FTPUSER} --no-create-home \
--shell /bin/false ${FTPUSER}"
+MULTILIB_SCRIPTS = "${PN}:${bindir}/prxs"
+
FILES_${PN} += "/home/${FTPUSER}"
RDEPENDS_${PN} += "perl"
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread