All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro
@ 2020-05-16 16:26 Khem Raj
  2020-05-16 16:26 ` [meta-networking][PATCH 2/3] postfix: Upgrade to 3.4.10 and compile with -fcommon Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Khem Raj @ 2020-05-16 16:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

it needs to link with libsystemd when using systemd as init system
Fixes
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-networking/recipes-connectivity/netplan/netplan_0.98.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
index db029a4b8a..15c4968132 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
+++ b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
@@ -18,7 +18,8 @@ SRC_URI = " \
         git://github.com/CanonicalLtd/netplan.git \
 "
 
-DEPENDS = "glib-2.0 libyaml"
+DEPENDS = "glib-2.0 libyaml ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
+
 RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid"
 
 inherit pkgconfig systemd
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-networking][PATCH 2/3] postfix: Upgrade to 3.4.10 and compile with -fcommon
  2020-05-16 16:26 [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Khem Raj
@ 2020-05-16 16:26 ` Khem Raj
  2020-05-16 16:26 ` [meta-oe][PATCH 3/3] uim: Add patch to fix -fno-common link error Khem Raj
  2020-05-16 20:05 ` [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Peter Kjellerstedt
  2 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2020-05-16 16:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

Ensures it can build with gcc10

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-networking/recipes-daemons/postfix/postfix.inc           | 2 +-
 .../postfix/{postfix_3.4.8.bb => postfix_3.4.10.bb}           | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
 rename meta-networking/recipes-daemons/postfix/{postfix_3.4.8.bb => postfix_3.4.10.bb} (84%)

diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc
index 4b9940cc7a..a8d55a6c93 100644
--- a/meta-networking/recipes-daemons/postfix/postfix.inc
+++ b/meta-networking/recipes-daemons/postfix/postfix.inc
@@ -61,7 +61,7 @@ export CCARGS-sasl_class-native = ""
 export AUXLIBS-sasl_class-native = ""
 
 # PCRE, TLS support default
-export CCARGS  = "${CFLAGS} -DHAS_PCRE -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}"
+export CCARGS  = "${CFLAGS} -fcommon -DHAS_PCRE -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}"
 export AUXLIBS = "-lpcre -lssl -lcrypto ${AUXLIBS-sasl} ${AUXLIBS-ldap}"
 export POSTCONF = "${STAGING_DIR_NATIVE}${sbindir_native}/postconf"
 
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.4.8.bb b/meta-networking/recipes-daemons/postfix/postfix_3.4.10.bb
similarity index 84%
rename from meta-networking/recipes-daemons/postfix/postfix_3.4.8.bb
rename to meta-networking/recipes-daemons/postfix/postfix_3.4.10.bb
index 5d7f8bc9f9..d0ef708c50 100644
--- a/meta-networking/recipes-daemons/postfix/postfix_3.4.8.bb
+++ b/meta-networking/recipes-daemons/postfix/postfix_3.4.10.bb
@@ -15,7 +15,5 @@ SRC_URI += "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
            file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
            file://0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch \
            "
-SRC_URI[md5sum] = "6944b946887077a28e3dcb375ff53701"
-SRC_URI[sha256sum] = "8d5d429737e0c64514028a82fc006cbb273d2cb98dc40eb1dbbfe102f29a8943"
-
+SRC_URI[sha256sum] = "908a66fc38537a0047e8561e1bc0ef096c53357ffad16d2d728cd4fc8ae56654"
 UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.3(\.\d+)+).tar.gz"
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-oe][PATCH 3/3] uim: Add patch to fix -fno-common link error
  2020-05-16 16:26 [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Khem Raj
  2020-05-16 16:26 ` [meta-networking][PATCH 2/3] postfix: Upgrade to 3.4.10 and compile with -fcommon Khem Raj
@ 2020-05-16 16:26 ` Khem Raj
  2020-05-16 20:05 ` [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Peter Kjellerstedt
  2 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2020-05-16 16:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

This is unearthed by gcc10 like below

| /mnt/b/yoe/master/build/tmp/hosttools/ld: .libs/gcroots.o:(.bss+0x0): multiple definition of `GCROOTS_jmp_buf'; .libs/mark.o:(.bss+0x0): first defined here
| /mnt/b/yoe/master/build/tmp/hosttools/ld: .libs/mach_dep.o:(.bss+0x0): multiple definition of `GCROOTS_jmp_buf'; .libs/mark.o:(.bss+0x0): first defined here
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../uim/uim/JMP_BUF_GC_jmp_buf.patch              | 15 +++++++++++++++
 meta-oe/recipes-support/uim/uim_1.8.8.bb          |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 meta-oe/recipes-support/uim/uim/JMP_BUF_GC_jmp_buf.patch

diff --git a/meta-oe/recipes-support/uim/uim/JMP_BUF_GC_jmp_buf.patch b/meta-oe/recipes-support/uim/uim/JMP_BUF_GC_jmp_buf.patch
new file mode 100644
index 0000000000..adb9c4b06b
--- /dev/null
+++ b/meta-oe/recipes-support/uim/uim/JMP_BUF_GC_jmp_buf.patch
@@ -0,0 +1,15 @@
+Fix error pointed out by gcc10
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/sigscheme/libgcroots/include/private/gc_priv.h
++++ b/sigscheme/libgcroots/include/private/gc_priv.h
+@@ -2026,7 +2026,7 @@ void GC_err_puts(const char *s);
+ 
+ # if defined(NEED_FIND_LIMIT) || \
+      defined(USE_PROC_FOR_LIBRARIES) && defined(THREADS)
+-JMP_BUF GC_jmp_buf;
++extern JMP_BUF GC_jmp_buf;
+ 
+ /* Set up a handler for address faults which will longjmp to	*/
+ /* GC_jmp_buf;							*/
diff --git a/meta-oe/recipes-support/uim/uim_1.8.8.bb b/meta-oe/recipes-support/uim/uim_1.8.8.bb
index 0366ad85ae..507a341445 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.8.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.8.bb
@@ -6,6 +6,7 @@ SECTION = "inputmethods"
 
 SRC_URI = "https://github.com/uim/uim/releases/download/${PV}/uim-${PV}.tar.bz2 \
     file://0001-Fix-to-set-libedit-path-from-configure-option-proper.patch \
+    file://JMP_BUF_GC_jmp_buf.patch \
 "
 SRC_URI_append_class-target = "\
     file://uim-module-manager.patch \
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro
  2020-05-16 16:26 [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Khem Raj
  2020-05-16 16:26 ` [meta-networking][PATCH 2/3] postfix: Upgrade to 3.4.10 and compile with -fcommon Khem Raj
  2020-05-16 16:26 ` [meta-oe][PATCH 3/3] uim: Add patch to fix -fno-common link error Khem Raj
@ 2020-05-16 20:05 ` Peter Kjellerstedt
  2020-05-16 21:54   ` Khem Raj
  2 siblings, 1 reply; 6+ messages in thread
From: Peter Kjellerstedt @ 2020-05-16 20:05 UTC (permalink / raw)
  To: Khem Raj, openembedded-devel

> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org <openembedded-
> devel@lists.openembedded.org> On Behalf Of Khem Raj
> Sent: den 16 maj 2020 18:26
> To: openembedded-devel@lists.openembedded.org
> Cc: Khem Raj <raj.khem@gmail.com>
> Subject: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro

Change "its"  to "it is".

> 
> it needs to link with libsystemd when using systemd as init system
> Fixes
> Package libsystemd was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libsystemd.pc'
> to the PKG_CONFIG_PATH environment variable
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta-networking/recipes-connectivity/netplan/netplan_0.98.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> index db029a4b8a..15c4968132 100644
> --- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> +++ b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> @@ -18,7 +18,8 @@ SRC_URI = " \
>          git://github.com/CanonicalLtd/netplan.git \
>  "
> 
> -DEPENDS = "glib-2.0 libyaml"
> +DEPENDS = "glib-2.0 libyaml ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"

That can be simplified to:

DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"

> +
>  RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid"
> 
>  inherit pkgconfig systemd
> --
> 2.26.2

//Peter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro
  2020-05-16 20:05 ` [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Peter Kjellerstedt
@ 2020-05-16 21:54   ` Khem Raj
  2020-05-17 15:46     ` Martin Jansa
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2020-05-16 21:54 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: openembedded-devel

Updated.

On Sat, May 16, 2020 at 1:05 PM Peter Kjellerstedt
<peter.kjellerstedt@axis.com> wrote:
>
> > -----Original Message-----
> > From: openembedded-devel@lists.openembedded.org <openembedded-
> > devel@lists.openembedded.org> On Behalf Of Khem Raj
> > Sent: den 16 maj 2020 18:26
> > To: openembedded-devel@lists.openembedded.org
> > Cc: Khem Raj <raj.khem@gmail.com>
> > Subject: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro
>
> Change "its"  to "it is".
>
> >
> > it needs to link with libsystemd when using systemd as init system
> > Fixes
> > Package libsystemd was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `libsystemd.pc'
> > to the PKG_CONFIG_PATH environment variable
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta-networking/recipes-connectivity/netplan/netplan_0.98.bb | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > index db029a4b8a..15c4968132 100644
> > --- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > +++ b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > @@ -18,7 +18,8 @@ SRC_URI = " \
> >          git://github.com/CanonicalLtd/netplan.git \
> >  "
> >
> > -DEPENDS = "glib-2.0 libyaml"
> > +DEPENDS = "glib-2.0 libyaml ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
>
> That can be simplified to:
>
> DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
>
> > +
> >  RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid"
> >
> >  inherit pkgconfig systemd
> > --
> > 2.26.2
>
> //Peter
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro
  2020-05-16 21:54   ` Khem Raj
@ 2020-05-17 15:46     ` Martin Jansa
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2020-05-17 15:46 UTC (permalink / raw)
  To: Khem Raj; +Cc: Peter Kjellerstedt, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 4307 bytes --]

Acked-by: Martin Jansa <martin.jansa@gmail.com>

It's needed in dunfell as well.

FWIW: the error message is complaining about glib.h, because it's calling
pkg-config directly in Makefile and the libsystemd fails first

netplan-dbus: src/dbus.c
        $(CC) $(BUILDFLAGS) $(CFLAGS) -o $@ $^ `pkg-config --cflags --libs
libsystemd glib-2.0`

ERROR: netplan-0.98+gitAUTOINC+5d22e9d22c-r0 do_configure: Execution of
'/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0/temp/run.do_configure.76533'
failed with exit code 1:
i686-oe-linux-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
--sysroot=/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0/recipe-sysroot
-std=c99 -D_XOPEN_SOURCE=500 -DSBINDIR=\"/usr/sbin\" -Wall -Werror   -O2
-pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0=/usr/src/debug/netplan/0.98+gitAUTOINC+5d22e9d22c-r0

 -fdebug-prefix-map=/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0=/usr/src/debug/netplan/0.98+gitAUTOINC+5d22e9d22c-r0

 -fdebug-prefix-map=/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0/recipe-sysroot=

 -fdebug-prefix-map=/jenkins/mjansa/build/nodistro/dunfell/BUILD/work/core2-32-oe-linux/netplan/0.98+gitAUTOINC+5d22e9d22c-r0/recipe-sysroot-native=
 -o netplan-dbus src/dbus.c `pkg-config --cflags --libs libsystemd glib-2.0`
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
src/dbus.c:9:10: fatal error: glib.h: No such file or directory
    9 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
Makefile:35: recipe for target 'netplan-dbus' failed
make: *** [netplan-dbus] Error 1
WARNING: exit code 1 from a shell command.


On Sat, May 16, 2020 at 11:55 PM Khem Raj <raj.khem@gmail.com> wrote:

> Updated.
>
> On Sat, May 16, 2020 at 1:05 PM Peter Kjellerstedt
> <peter.kjellerstedt@axis.com> wrote:
> >
> > > -----Original Message-----
> > > From: openembedded-devel@lists.openembedded.org <openembedded-
> > > devel@lists.openembedded.org> On Behalf Of Khem Raj
> > > Sent: den 16 maj 2020 18:26
> > > To: openembedded-devel@lists.openembedded.org
> > > Cc: Khem Raj <raj.khem@gmail.com>
> > > Subject: [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd
> if its in distro
> >
> > Change "its"  to "it is".
> >
> > >
> > > it needs to link with libsystemd when using systemd as init system
> > > Fixes
> > > Package libsystemd was not found in the pkg-config search path.
> > > Perhaps you should add the directory containing `libsystemd.pc'
> > > to the PKG_CONFIG_PATH environment variable
> > >
> > > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > > ---
> > >  meta-networking/recipes-connectivity/netplan/netplan_0.98.bb | 3 ++-
> > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/meta-networking/recipes-connectivity/netplan/
> netplan_0.98.bb
> > > b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > > index db029a4b8a..15c4968132 100644
> > > --- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > > +++ b/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
> > > @@ -18,7 +18,8 @@ SRC_URI = " \
> > >          git://github.com/CanonicalLtd/netplan.git \
> > >  "
> > >
> > > -DEPENDS = "glib-2.0 libyaml"
> > > +DEPENDS = "glib-2.0 libyaml
> ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
> >
> > That can be simplified to:
> >
> > DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES',
> 'systemd', d)}"
> >
> > > +
> > >  RDEPENDS_${PN} = "python3 python3-core python3-pyyaml
> python3-netifaces python3-nose python3-coverage python3-pycodestyle
> python3-pyflakes util-linux-libuuid"
> > >
> > >  inherit pkgconfig systemd
> > > --
> > > 2.26.2
> >
> > //Peter
> >
> 
>

[-- Attachment #2: Type: text/html, Size: 6241 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-17 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 16:26 [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Khem Raj
2020-05-16 16:26 ` [meta-networking][PATCH 2/3] postfix: Upgrade to 3.4.10 and compile with -fcommon Khem Raj
2020-05-16 16:26 ` [meta-oe][PATCH 3/3] uim: Add patch to fix -fno-common link error Khem Raj
2020-05-16 20:05 ` [oe] [meta-networking][PATCH 1/3] netplan: Depend on systemd if its in distro Peter Kjellerstedt
2020-05-16 21:54   ` Khem Raj
2020-05-17 15:46     ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.