Skip to contentSkip to conversation

recipes-graphics/lxdm: autotools and config updates

PATCH In review Stephen Arnold 2 participants 4 messages Mar 18, 2014 – Mar 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 recipes-graphics/lxdm: autotools and config updates

lxdm_git.bb: Upstream changes required autotools and gettext (intl) updates; the package autogen script doesn't create the makefile in po, but autotools by itself is missing the input file (thus, the configure_prepend). There were also missing depends (from upstream docs and configure checks) and some configure options were added to ensure the desired X/gtk2 config and enable (optional) auto-login.

---
 meta-oe/recipes-graphics/lxdm/lxdm_git.bb | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +10 -3
index c12eddf..c602ad3 100644
@@ -16,17 +16,24 @@ SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"
 PV = "0.5.0+git${SRCPV}"
 PE = "1"
 
-DEPENDS = "cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango"
+DEPENDS = "virtual/libintl intltool-native cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango iso-codes"
 DEPENDS += "${@base_contains("DISTRO_FEATURES", "systemd", "", "consolekit", d)}"
 
 # combine oe-core way with angstrom DISTRO_TYPE
 DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}"
 
-inherit autotools gettext systemd
+inherit autotools pkgconfig gettext systemd
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"
+CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr "
+
+EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \
+    ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"
+
+do_configure_prepend() {
+    cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/
+}
 
 do_compile_append() {
     # default background configured not available / no password field available / no default screensaver
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 6 lines · Stephen Arnold

lxdm_git.bb: Upstream changes required autotools and gettext (intl) updates; the package autogen script doesn't create the makefile in po, but autotools by itself is missing the input file (thus, the configure_prepend). There were also missing depends (from upstream docs and configure checks) and some configure options were added to ensure the desired X/gtk2 config and enable (optional) auto-login.

For my interest since I have autologin working as expected (with oe-core updated last in january -> autotools not updated). What is this --enable-password for?

Quoted 19 lines
---
 meta-oe/recipes-graphics/lxdm/lxdm_git.bb | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +1 -1
index c12eddf..c602ad3 100644
@@ -16,17 +16,24 @@ SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"
 PV = "0.5.0+git${SRCPV}"
 PE = "1"
 
-DEPENDS = "cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango"
+DEPENDS = "virtual/libintl intltool-native cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango iso-codes"
 DEPENDS += "${@base_contains("DISTRO_FEATURES", "systemd", "", "consolekit", d)}"
 

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 29

Quoted 10 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +2 -2
 # combine oe-core way with angstrom DISTRO_TYPE
 DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}"
 
-inherit autotools gettext systemd
+inherit autotools pkgconfig gettext systemd
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"
+CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr "

Why these extra flags - I found no hint in commit message.

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"

Quoted 11 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +7 -1
+
+EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \
+    ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"
+
+do_configure_prepend() {
+    cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/
+}
 
 do_compile_append() {
     # default background configured not available / no password field available / no default screensaver
--

regards

Andreas

#2 lore raw

On --enable-password=yes:

The upstream docs say "enable to load autologin password store at config file" and it's part of the default config on my gentoo arm builds. I haven't actually tried it in oe yet, since I wanted a default user with a password in my rpi build. It sounds like the oe method doesn't need that option, so I can remove it if that's what you want.

On the extra CFLAGS:

I suppose they're not strictly necessary either, but they do help reduce configure warnings. Some of the build failures didn't really have any obvious errors (just a boat-load of warnings) so it helps in getting to the true error. But as I said, it should be okay to remove them now.

Do you want a new version of the patch minus the above?

Steve

Quoted 75 lines · Andreas Müller
Quoted 1 line · Stephen Arnold

lxdm_git.bb: Upstream changes required autotools and gettext (intl)

updates;

Quoted 1 line

the package autogen script doesn't create the makefile in po, but

autotools

Quoted 4 lines

by itself is missing the input file (thus, the configure_prepend). There were also missing depends (from upstream docs and configure checks) and some configure options were added to ensure the desired X/gtk2 config and enable (optional) auto-login.

For my interest since I have autologin working as expected (with oe-core updated last in january -> autotools not updated). What is this --enable-password for?

Review

Quoted 8 lines
---
 meta-oe/recipes-graphics/lxdm/lxdm_git.bb | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

lxdm_git.bb

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 19

Quoted 8 lines

index c12eddf..c602ad3 100644

meta-oe/recipes-graphics/lxdm/lxdm_git.bb +0 -1
@@ -16,17 +16,24 @@ SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"
 PV = "0.5.0+git${SRCPV}"
 PE = "1"
 
-DEPENDS = "cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb

pango"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 19

Quoted 1 line
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +1 -0
+DEPENDS = "virtual/libintl intltool-native cairo dbus gdk-pixbuf

glib-2.0 gtk+ virtual/libx11 libxcb pango iso-codes"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 20

Quoted 1 line
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +0 -0
 DEPENDS += "${@base_contains("DISTRO_FEATURES", "systemd", "",

"consolekit", d)}"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 22

Quoted 3 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +0 -0
 # combine oe-core way with angstrom DISTRO_TYPE
 DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks",

"debug", "",d)}"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"

Quoted 7 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +1 -2
-inherit autotools gettext systemd
+inherit autotools pkgconfig gettext systemd
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd',

'--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 27

Quoted 1 line
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +1 -0
+CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset

-fno-builtin-strstr "
Why these extra flags - I found no hint in commit message.

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 29

Quoted 2 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +2 -0
+
+EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x

-with-xconn=xcb \

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 30

Quoted 1 line
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +1 -0
+    ${@base_contains('DISTRO_FEATURES', 'systemd',

'--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"

Quoted 7 lines
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +4 -0
+
+do_configure_prepend() {
+    cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/
+}
 
 do_compile_append() {
     # default background configured not available / no password field

available / no default screensaver

meta-oe/recipes-graphics/lxdm/lxdm_git.bb SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" · line 31

Quoted 1 line
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +0 -1
--

regards

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

#3 lore raw
Quoted 8 lines · Stephen Arnold

On --enable-password=yes:

The upstream docs say "enable to load autologin password store at config file" and it's part of the default config on my gentoo arm builds. I haven't actually tried it in oe yet, since I wanted a default user with a password in my rpi build. It sounds like the oe method doesn't need that option, so I can remove it if that's what you want.

Quoted 8 lines

On the extra CFLAGS:

I suppose they're not strictly necessary either, but they do help reduce configure warnings. Some of the build failures didn't really have any obvious errors (just a boat-load of warnings) so it helps in getting to the true error. But as I said, it should be okay to remove them now.

Do you want a new version of the patch minus the above?

Thanks for explanation & taking care. I have not time for testing but I think patches are OK as they are.

Andreas