udisks: bump to version 1.0.5
PATCH v2 1/2 udisks: bump to version 1.0.5
This version depends on libgudev when using systemd, otherwise it fails with an error like this one:
checking for GUDEV... no
configure: error: Package requirements (gudev-1.0 >= 147) were not met:
---
Changes v1 -> v2: depend on libgudev only when using systemd
package/udisks/Config.in | 1 + package/udisks/udisks.hash | 2 +- package/udisks/udisks.mk | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-)
package/udisks/Config.in +1 -0
@@ -12,6 +12,7 @@ config BR2_PACKAGE_UDISKS select BR2_PACKAGE_PARTED select BR2_PACKAGE_LVM2 select BR2_PACKAGE_LIBATASMART + select BR2_PACKAGE_LIBGUDEV if BR2_PACKAGE_SYSTEMD help The udisks project provides
package/udisks/udisks.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5 udisks-1.0.4.tar.gz +sha256 f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71 udisks-1.0.5.tar.gz
package/udisks/udisks.mk +5 -1
@@ -4,7 +4,7 @@ # ################################################################################ -UDISKS_VERSION = 1.0.4 +UDISKS_VERSION = 1.0.5 UDISKS_SITE = http://hal.freedesktop.org/releases UDISKS_LICENSE = GPLv2+ UDISKS_LICENSE_FILES = COPYING
@@ -22,6 +22,10 @@ UDISKS_DEPENDENCIES = \ UDISKS_CONF_OPTS = --disable-remote-access --disable-man-pages +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endif + ifeq ($(BR2_PACKAGE_UDISKS_LVM2),y) UDISKS_CONF_OPTS += --enable-lvm2 endif
Signature · 1 line
1.7.1
PATCH v2 2/2 udisks: fix build with newer glibc versions
Backport an upstream patch to fix the build with newer glibc versions. This is how the failure looks like:
job-drive-detach.c: In function 'sysfs_exists':
job-drive-detach.c:44:15: error: storage size of 'statbuf' isn't known
struct stat statbuf;
Fixes:
http://autobuild.buildroot.net/results/ab3/ab36c2a1d2ca41a4d9ec6bab7d8d45678dbc5dcd/
---
Changes v1 -> v2: no changes
.../0001-fix-build-with-newer-glibc-versions.patch | 29 ++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 package/udisks/0001-fix-build-with-newer-glibc-versions.patch
package/udisks/0001-fix-build-with-newer-glibc-versions.patch new file +29 -0
@@ -0,0 +1,29 @@ +Fix build with newer glibc versions + +This patch has been backported from upstream: + +http://cgit.freedesktop.org/udisks/commit/?h=udisks1&id=9829152b12a8924d2e091a00133ed1a3a7ba75c0 + +Signed-off-by: Vicente Olivert Riera <[email protected]> + +From 9829152b12a8924d2e091a00133ed1a3a7ba75c0 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <[email protected]> +Date: Fri, 29 May 2015 21:09:39 -0400 +Subject: fix build with newer glibc versions + +https://bugs.freedesktop.org/show_bug.cgi?id=90778 + +diff --git a/src/helpers/job-drive-detach.c b/src/helpers/job-drive-detach.c +index eeafcab..d122a1f 100644 +--- a/src/helpers/job-drive-detach.c ++++ b/src/helpers/job-drive-detach.c +@@ -18,6 +18,7 @@ + * + */ + ++#include <sys/stat.h> + #include <stdio.h> + #include <string.h> + #include <errno.h> +-- +cgit v0.10.2
Signature · 1 line
1.7.1
PATCH v2 1/2 udisks: bump to version 1.0.5
In reply to Vicente Olivert RieraHi Vincent,
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endif
So libgudev is not even an optional dependency when there is no systemd?
In any case, a comment explaining this unusual dependency would be nice.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v2 1/2 udisks: bump to version 1.0.5
Hello,
Quoted 8 lines · Baruch Siach
Hi Vincent,
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
No.
libgudev used to be provided by udev. Then udev was merged in systemd. Then libgudev was taken out of systemd, and made a separate project.
So:
* If you're using systemd as the udev provider, and you need libgudev, then you must use the libgudev package.
* If you're using eudev as the udev provider, and you need libgudev, you have nothing to do, because libgudev is still provided by eudev (it hasn't been removed of it, like it was done in systemd).
So, libgudev is used in both cases (systemd or not), but it's simply either provided by the libgudev package (systemd case) or by the udev implementation itself (eudev case).
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/2 udisks: bump to version 1.0.5
Hi Thomas,
Quoted 13 lines · Thomas Petazzoni
Quoted 6 lines · Baruch Siach
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
No.
libgudev used to be provided by udev. Then udev was merged in systemd. Then libgudev was taken out of systemd, and made a separate project.
Quoted 8 lines
So:
* If you're using systemd as the udev provider, and you need libgudev, then you must use the libgudev package.
* If you're using eudev as the udev provider, and you need libgudev, you have nothing to do, because libgudev is still provided by eudev (it hasn't been removed of it, like it was done in systemd).
I assume that eudev provided libgudev lives at some other place than standalone libgudev. Otherwise, one would overwrite the other.
Quoted 3 lines
So, libgudev is used in both cases (systemd or not), but it's simply either provided by the libgudev package (systemd case) or by the udev implementation itself (eudev case).
Thanks for the detailed explanation.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v2 1/2 udisks: bump to version 1.0.5
Dear Baruch Siach,
Quoted 21 lines · Baruch Siach
Hi Thomas,
Quoted 18 lines · Thomas Petazzoni
Quoted 6 lines · Baruch Siach
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
No.
libgudev used to be provided by udev. Then udev was merged in systemd. Then libgudev was taken out of systemd, and made a separate project.
So:
* If you're using systemd as the udev provider, and you need libgudev, then you must use the libgudev package.
Quoted 10 lines
Quoted 3 lines
* If you're using eudev as the udev provider, and you need libgudev, you have nothing to do, because libgudev is still provided by eudev (it hasn't been removed of it, like it was done in systemd).
I assume that eudev provided libgudev lives at some other place than standalone libgudev. Otherwise, one would overwrite the other.
Quoted 3 lines
So, libgudev is used in both cases (systemd or not), but it's simply either provided by the libgudev package (systemd case) or by the udev implementation itself (eudev case).
libgudev package depends on systemd, and there is no option to select systemd and eudev at the same time, since when you select systemd, Buildroot doesn't allow you to select any /dev management, and shows you this message instead:
"*** /dev management using udev (from systemd) ***"
Quoted 1 line
Thanks for the detailed explanation.
Indeed, very good explanation. Thanks Thomas.
Regards,
Vincent.
Quoted 2 lines
baruch
PATCH v2 1/2 udisks: bump to version 1.0.5
In reply to Baruch SiachDear Baruch Siach,
Quoted 8 lines · Baruch Siach
Hi Vincent,
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
Well, it wasn't there before, so... Anyway, the default is not to add every optional dependency in the .mk, and let the users who really need them to send a patch to do it.
Quoted 1 line
In any case, a comment explaining this unusual dependency would be nice.
Well, I have copied the output of the error you will face if you don't depend on libgudev when using systemd. Do you think it's also necessary in the Config.in and udisks.mk file as well? I don't mind doing it if you think it is.
Regards,
Vincent.
Quoted 3 lines
baruch
PATCH v2 1/2 udisks: bump to version 1.0.5
Hi Vincent,
Quoted 11 lines · Vicente Olivert Riera
Quoted 6 lines · Baruch Siach
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
Well, it wasn't there before, so... Anyway, the default is not to add every optional dependency in the .mk, and let the users who really need them to send a patch to do it.
As I understand libgudev is not an optional dependency. But in principal we do want to list all known optional dependencies in .mk files, to make the build reproducible as much as possible.
Quoted 6 lines
Quoted 1 line
In any case, a comment explaining this unusual dependency would be nice.
Well, I have copied the output of the error you will face if you don't depend on libgudev when using systemd. Do you think it's also necessary in the Config.in and udisks.mk file as well? I don't mind doing it if you think it is.
As Thomas explained the dependency situation here is far from obvious. I think that a detailed comment in udisks.mk would suffice.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v2 1/2 udisks: bump to version 1.0.5
Dear Baruch Siach,
Quoted 21 lines · Baruch Siach
Hi Vincent,
Quoted 11 lines · Vicente Olivert Riera
Quoted 6 lines · Baruch Siach
package/udisks/udisks.mk UDISKS_DEPENDENCIES = \ · line 27
Quoted 3 lines · Vicente Olivert Riera
package/udisks/udisks.mk +3
-0+ifeq ($(BR2_PACKAGE_SYSTEMD),y) +UDISKS_CONF_OPTS += libgudev +endifSo libgudev is not even an optional dependency when there is no systemd?
Well, it wasn't there before, so... Anyway, the default is not to add every optional dependency in the .mk, and let the users who really need them to send a patch to do it.
As I understand libgudev is not an optional dependency. But in principal we do want to list all known optional dependencies in .mk files, to make the build reproducible as much as possible.
Quoted 2 lines
Quoted 1 line
In any case, a comment explaining this unusual dependency would be nice.
Quoted 7 lines
Quoted 4 lines
Well, I have copied the output of the error you will face if you don't depend on libgudev when using systemd. Do you think it's also necessary in the Config.in and udisks.mk file as well? I don't mind doing it if you think it is.
As Thomas explained the dependency situation here is far from obvious. I think that a detailed comment in udisks.mk would suffice.
No problem, I will send a v3 with the comment.
Regards,
Vincent.
Quoted 2 lines
baruch