Skip to contentSkip to conversation

few fixes

PATCH Superseded Andreas Müller 3 participants 12 messages Dec 14, 2017 – Dec 17, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover few fixes

The following changes since commit acfb8417e370d017e7307872e61564deeda76a13:

python3-dominate: new recipe (2017-12-11 07:58:58 -0800)

are available in the git repository at:

https://github.com/schnitzeltony/meta-openembedded.git patches

for you to fetch changes up to 77a0b0909e81f350e7c00d0e3b613a49656a0ed7:

plymouth: fix path to systemd-tty-ask-password-agent (2017-12-14 11:02:54 +0100)

----------------------------------------------------------------
Andreas Müller (5):
fltk: add -fPIC to compile flags
gvfs: update 1.32.1 -> 1.34.1
plymouth: do not install systemd units manually
plymouth: packageconfig gtk needs gtk+3 as depends
plymouth: fix path to systemd-tty-ask-password-agent

 meta-gnome/recipes-gnome/gvfs/{gvfs_1.32.1.bb => gvfs_1.34.1.bb}                                    |  7 ++-----
 meta-oe/recipes-core/plymouth/files/0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch | 34 ++++++++++++++++++++++++++++++++++
 meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb                                                     | 12 ++++++------
 meta-oe/recipes-support/fltk/fltk.bb                                                                |  4 ++++
 4 files changed, 46 insertions(+), 11 deletions(-)
 rename meta-gnome/recipes-gnome/gvfs/{gvfs_1.32.1.bb => gvfs_1.34.1.bb} (88%)
 create mode 100644 meta-oe/recipes-core/plymouth/files/0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch
Signature · 1 line
2.9.5
#1 lore raw

PATCH 1/5 fltk: add -fPIC to compile flags

Building yoshimi failes otherwise with many errors as:
| error: <sysroot>/usr/lib/libfltk.a(Fl_File_Browser.cxx.o): requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC

---
 meta-oe/recipes-support/fltk/fltk.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/fltk/fltk.bb +4 -0
index 542fd66..be76062 100644
@@ -14,6 +14,10 @@ EXTRA_OECMAKE = " \
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
 
+# for sake of other packages linking against fltk libs
+CFLAGS += "-fPIC"
+CXXFLAGS += "-fPIC"
+
 PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,"
 PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
 PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
Signature · 1 line
2.9.5
#2 lore raw

Re: [PATCH 1/5] fltk: add -fPIC to compile flags

Quoted 13 lines · Andreas Müller

Building yoshimi failes otherwise with many errors as:
| error: <sysroot>/usr/lib/libfltk.a(Fl_File_Browser.cxx.o): requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC

---
 meta-oe/recipes-support/fltk/fltk.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/fltk/fltk.bb +0 -0
index 542fd66..be76062 100644

meta-oe/recipes-support/fltk/fltk.bb EXTRA_OECMAKE = " \ · line 20

Quoted 7 lines
meta-oe/recipes-support/fltk/fltk.bb +4 -0
@@ -14,6 +14,10 @@ EXTRA_OECMAKE = " \
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
 
+# for sake of other packages linking against fltk libs
+CFLAGS += "-fPIC"
+CXXFLAGS += "-fPIC"
+

I will test it out with PIE but
I wonder if it will be better to add this to the Makefiles.

Quoted 11 lines
meta-oe/recipes-support/fltk/fltk.bb +0 -1
 PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,"
 PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
 PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
--

2.9.5

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [PATCH 1/5] fltk: add -fPIC to compile flags

Quoted 3 lines · Khem Raj

I will test it out with PIE but
I wonder if it will be better to add this to the Makefiles.

I've looked into this further and think fltk needs more love:

* native recipe makes fltk-config reachable - not the best idea. I introduced native recipe but was looking for fluid only.
* all shared libraries are named like libfltk*_SHARED.so*. I think this is the reason yoshimi links against static library because it cannot find shared ones.

Long story short: What do you mean by 'PIE'? I would like to test that either before sending out another rework of fltk.

Andreas

#4 lore raw

Re: [PATCH 1/5] fltk: add -fPIC to compile flags

Quoted 7 lines · Andreas Müller
Quoted 3 lines · Khem Raj

I will test it out with PIE but
I wonder if it will be better to add this to the Makefiles.

I've looked into this further and think fltk needs more love:

Quoted 9 lines

* native recipe makes fltk-config reachable - not the best idea. I introduced native recipe but was looking for fluid only.
* all shared libraries are named like libfltk*_SHARED.so*. I think this is the reason yoshimi links against static library because it cannot find shared ones.

Long story short: What do you mean by 'PIE'? I would like to test that either before sending out another rework of fltk.

try with security_flags.inc.

Quoted 1 line

Andreas

#5 lore raw

Re: [PATCH 1/5] fltk: add -fPIC to compile flags

In reply to Andreas Müller
Quoted 2 lines · Andreas Müller

Building yoshimi failes otherwise with many errors as:
| error: <sysroot>/usr/lib/libfltk.a(Fl_File_Browser.cxx.o): requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC

From that error it looks more like a bug in whatever is trying to link a static library (libfltk.a) into something which expects to be linking with a shared library.

If so, then forcing the fltk static libs to be PIC is just a workaround rather than a real fix.

Quoted 28 lines
---
 meta-oe/recipes-support/fltk/fltk.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/fltk/fltk.bb +4 -1
index 542fd66..be76062 100644
@@ -14,6 +14,10 @@ EXTRA_OECMAKE = " \
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
 
+# for sake of other packages linking against fltk libs
+CFLAGS += "-fPIC"
+CXXFLAGS += "-fPIC"
+
 PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,"
 PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
 PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
--

2.9.5

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw

Re: [PATCH 1/5] fltk: add -fPIC to compile flags

Quoted 6 lines · Andre McCurdy
Quoted 2 lines · Andreas Müller

Building yoshimi failes otherwise with many errors as:
| error: <sysroot>/usr/lib/libfltk.a(Fl_File_Browser.cxx.o): requires

unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC

Quoted 8 lines

From that error it looks more like a bug in whatever is trying to link a static library (libfltk.a) into something which expects to be linking with a shared library.

If so, then forcing the fltk static libs to be PIC is just a workaround rather than a real fix.

OK forget this patch. I will find another way to get yoshimi building.

Andreas

#7 lore raw

PATCH 2/5 gvfs: update 1.32.1 -> 1.34.1

In reply to Andreas Müller

* --with-archive-includes and --with-archive-libs were removed in [1]
* --enable-gtk was removed in [2]
* build tested with full (except cdda) and empty PACKAGECONFIG
* run tested with PACKAGECONFIG = "archive gcr libmtp libgphoto2 samba systemd"
* fixes long delay when unmounting memory sticks

[1] https://git.gnome.org/browse/gvfs/commit/configure.ac?id=03fbe16aebced70118f070f898d7b459e1125580
[2] https://git.gnome.org/browse/gvfs/commit/configure.ac?id=dff13283c943c8b10265bd3925d86f17cdc4be6f

---
 meta-gnome/recipes-gnome/gvfs/{gvfs_1.32.1.bb => gvfs_1.34.1.bb} | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
 rename meta-gnome/recipes-gnome/gvfs/{gvfs_1.32.1.bb => gvfs_1.34.1.bb} (88%)
meta-gnome/recipes-gnome/gvfs/gvfs_1.34.1.bb renamed from meta-gnome/recipes-gnome/gvfs/gvfs_1.32.1.bb +2 -5
similarity index 88%
rename from meta-gnome/recipes-gnome/gvfs/gvfs_1.32.1.bb
rename to meta-gnome/recipes-gnome/gvfs/gvfs_1.34.1.bb
index d380688..8d7865f 100644
@@ -8,15 +8,13 @@ DEPENDS += "libsecret glib-2.0 gconf intltool-native libgudev udisks2 polkit sha
 
 SRC_URI = "https://download.gnome.org/sources/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.xz;name=archive"
 
-SRC_URI[archive.md5sum] = "cbe766b46f324e17d7abcfb4a89a1684"
-SRC_URI[archive.sha256sum] = "d0b6c9edab09d52472355657a2f0a14831b2e6c58caba395f721ab683f836ade"
+SRC_URI[archive.md5sum] = "44012824aa75797a7d272cd60f07b488"
+SRC_URI[archive.sha256sum] = "7ef9b2aec234004271a575118a0e35b3c36ce3309e5f9da109635651843372b4"
 
 EXTRA_OECONF = " \
     --disable-gdu \
     --enable-udisks2 \
     --disable-documentation \
-    --with-archive-includes=${STAGING_INCDIR} \
-    --with-archive-libs=${STAGING_LIBDIR} \
 "
 
 PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash"
@@ -46,7 +44,6 @@ PACKAGECONFIG[afc] = "--enable-afc, --disable-afc, libimobiledevice libplist"
 PACKAGECONFIG[archive] = "--enable-archive, --disable-archive, libarchive"
 PACKAGECONFIG[avahi] = "--enable-avahi, --disable-avahi, avahi"
 PACKAGECONFIG[gcr] = "--enable-gcr, --disable-gcr, gcr"
-PACKAGECONFIG[gtk] = "--enable-gtk, --disable-gtk, gtk+3"
 PACKAGECONFIG[http] = "--enable-http, --disable-http, libsoup-2.4"
 PACKAGECONFIG[libmtp] = "--enable-libmtp, --disable-libmtp, libmtp"
 PACKAGECONFIG[libgphoto2] = "--enable-gphoto2, --disable-gphoto2, libgphoto2"
Signature · 1 line
2.9.5
#8 lore raw

PATCH 3/5 plymouth: do not install systemd units manually

In reply to Andreas Müller

They are installed properly by plymouth itself. With buildhistory no change in packed files could be detected.

---
 meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb | 3 ---
 1 file changed, 3 deletions(-)
meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb +0 -3
index 6163cff..e331779 100644
@@ -39,9 +39,6 @@ LOGO ??= "${datadir}/plymouth/bizcom.png"
 inherit autotools pkgconfig systemd
 
 do_install_append() {
-    install -d ${D}${systemd_unitdir}/system
-    install -m 644 ${B}/systemd-units/*.service ${D}${systemd_unitdir}/system
-    install -m 644 ${B}/systemd-units/systemd-ask-password-plymouth.path ${D}${systemd_unitdir}/system
     # Remove /var/run from package as plymouth will populate it on startup
     rm -fr "${D}${localstatedir}/run"
 
Signature · 1 line
2.9.5
#9 lore raw

PATCH 4/5 plymouth: packageconfig gtk needs gtk+3 as depends

In reply to Andreas Müller
---
 meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb +1 -1
index e331779..6b24ed2 100644
@@ -31,7 +31,7 @@ PACKAGECONFIG_append_x86-64 = " drm"
 
 PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm"
 PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
-PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+"
+PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
 PACKAGECONFIG[initrd] = ",,,"
 
 LOGO ??= "${datadir}/plymouth/bizcom.png"
Signature · 1 line
2.9.5
#10 lore raw

PATCH 5/5 plymouth: fix path to systemd-tty-ask-password-agent

In reply to Andreas Müller

In pre recipe specific sysroot times AC_PATH_PROG detected host's systemd-tty-ask-password-agent. In my case that path was wrong and systemd-ask-password-plymouth.service failed silently. Now with recipe specific sysroot and no link in PATH to buildhost, SYSTEMD_ASK_PASSWORD_AGENT remains empty and that causes:

| systemd[1]: /lib/systemd/system/systemd-ask-password-plymouth.service:12: Executable path is not absolute, ignoring: --watch --plymouth | systemd[1]: systemd-ask-password-plymouth.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.

For both environments this patch fixes log-off from X-session to display-manager. Before this patch screen went dark and it seemed that X-server was restarted.

---
 ...ath-to-systemd-tty-ask-password-agent-con.patch | 34 ++++++++++++++++++++++
 meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb    |  7 +++--
 2 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-core/plymouth/files/0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch
meta-oe/recipes-core/plymouth/files/0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch new file +34 -0
new file mode 100644
index 0000000..6a86c76
@@ -0,0 +1,34 @@
+From 746c690f57b52e6fe21cc2a11b5bb71d25af3128 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Wed, 13 Dec 2017 16:15:57 +0100
+Subject: [PATCH] Make full path to systemd-tty-ask-password-agent configurable
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index aad673e..6b37179 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -48,7 +48,10 @@ PLYMOUTH_LIBS="-lm -lrt -ldl"
+ AC_SUBST(PLYMOUTH_CFLAGS)
+ AC_SUBST(PLYMOUTH_LIBS)
+ 
+-AC_PATH_PROG([SYSTEMD_ASK_PASSWORD_AGENT], [systemd-tty-ask-password-agent])
++AC_ARG_WITH(systemd-tty-ask-password-agent, AS_HELP_STRING([--with-systemd-tty-ask-password-agent],[path of systemd-tty-ask-password-agent]),SYSTEMD_ASK_PASSWORD_AGENT=${withval},SYSTEMD_ASK_PASSWORD_AGENT=/bin/systemd-tty-ask-password-agent)
++AC_SUBST(SYSTEMD_ASK_PASSWORD_AGENT)
++
++# checked: UDEVADM is not used
+ AC_PATH_PROG([UDEVADM], [udevadm])
+ 
+ AC_ARG_ENABLE(pango, AS_HELP_STRING([--enable-pango],[enable building with pango, disabled there is no encryption prompts]),enable_pango=$enableval,enable_pango=yes)
+-- 
+2.9.5
+
meta-oe/recipes-core/plymouth/plymouth_0.9.2.bb +5 -2
index 6b24ed2..7e8d6e3 100644
@@ -16,13 +16,16 @@ DEPENDS = "libcap libpng cairo dbus udev"
 PROVIDES = "virtual/psplash"
 RPROVIDES_${PN} = "virtual-psplash virtual-psplash-support"
 
-SRC_URI = "http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.bz2"
+SRC_URI = " \
+    http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.bz2 \
+    file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \
+"
 SRC_URI[md5sum] = "ff420994deb7ea203df678df92e7ab7d"
 SRC_URI[sha256sum] = "2f0ce82042cf9c7eadd2517a1f74c8a85fa8699781d9f294a06eade29fbed57f"
 
 EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \
     --with-logo=${LOGO} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd-integration --with-system-root-install', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd-integration --with-system-root-install --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent', '', d)} \
 "
 
 PACKAGECONFIG ??= "pango initrd"
Signature · 1 line
2.9.5
#11 lore raw
In reply to Andreas Müller
Quoted 22 lines · Andreas Müller

The following changes since commit acfb8417e370d017e7307872e61564 deeda76a13:

python3-dominate: new recipe (2017-12-11 07:58:58 -0800)

are available in the git repository at:

https://github.com/schnitzeltony/meta-openembedded.git patches

for you to fetch changes up to 77a0b0909e81f350e7c00d0e3b613a49656a0ed7:

plymouth: fix path to systemd-tty-ask-password-agent (2017-12-14
11:02:54 +0100)

----------------------------------------------------------------
Andreas Müller (5):
fltk: add -fPIC to compile flags
gvfs: update 1.32.1 -> 1.34.1
plymouth: do not install systemd units manually
plymouth: packageconfig gtk needs gtk+3 as depends
plymouth: fix path to systemd-tty-ask-password-agent

Quoted 1 line

Please ignore this series. I will send out reworked V2 within the next

hours.

Andreas