Skip to contentSkip to conversation

util-linux-ng required? which version?

DISCUSSION Matthias Schwarzott 5 participants 9 messages May 11, 2009 – May 12, 2009

lore
Share & tools
lore
#0 lore raw

Hi Kay!
I have seen, udev-git now removed vol_id and requires blkid from latest util-linux-ng? What version does "latest" mean?
I have util-linux-2.15 installed, and this is the latest released version according to its homepage.

Regards
Matthias

#1 lore raw
Quoted 5 lines · Matthias Schwarzott

Hi Kay!
I have seen, udev-git now removed vol_id and requires blkid from latest util-linux-ng? What version does "latest" mean?
I have util-linux-2.15 installed, and this is the latest released version according to its homepage.

Ah I guess 2.15 should be fine (according to changelog), but on gentoo up to now blkid and libblkid is provided by e2fsprogs.
So changing configure options and using e2fsprogs-1.41.5 that canuse external provided blkid should be enough.
Is this correct?

Regards
Matthias

#2 lore raw
In reply to Matthias Schwarzott
Quoted 9 lines · Matthias Schwarzott
Quoted 5 lines · Matthias Schwarzott

Hi Kay!
I have seen, udev-git now removed vol_id and requires blkid from latest util-linux-ng? What version does "latest" mean?
I have util-linux-2.15 installed, and this is the latest released version according to its homepage.

Ah I guess 2.15 should be fine (according to changelog), but on gentoo up to now blkid and libblkid is provided by e2fsprogs.

just note that libblkid from e2fsprogs is still default ;-)

Quoted 3 lines

So changing configure options and using e2fsprogs-1.41.5 that canuse external provided blkid should be enough.
Is this correct?

yes, you need

    util-linux-ng 2.15   --with-fsprobe=builtin
    e2fsprogs 1.41.5     --disable-libblkid

Karel

Signature · 1 line
 Karel Zak  <[email protected]>
#3 lore raw
In reply to Matthias Schwarzott
Quoted 9 lines · Karel Zak
Quoted 8 lines · Matthias Schwarzott
Quoted 4 lines · Matthias Schwarzott

I have seen, udev-git now removed vol_id and requires blkid from latest util-linux-ng? What version does "latest" mean?
I have util-linux-2.15 installed, and this is the latest released version according to its homepage.

Ah I guess 2.15 should be fine (according to changelog),

Yeah, there is only a single version so far, of util-linux-ng that contains libblkid. :)

Quoted 2 lines
Quoted 2 lines

but on gentoo up to
now blkid and libblkid is provided by e2fsprogs.

Yep, that needs to be switched around.

Quoted 1 line

 just note that libblkid from e2fsprogs is still default ;-)

Yeah, but the "default" will not work anymore very soon. :)

Quoted 8 lines
Quoted 3 lines

So changing configure options and using e2fsprogs-1.41.5 that canuse external provided blkid should be enough.
Is this correct?

 yes, you need

   util-linux-ng 2.15   --with-fsprobe=builtin
   e2fsprogs 1.41.5     --disable-libblkid

Sounds good.

It's all a bit of inconvenient at the moment with the inter-dependencies, but it's great that we will all end up finally with only a single filesystem-probing lib.

Thanks,
Kay

#4 lore raw
In reply to Matthias Schwarzott
Quoted 11 lines · Kay Sievers
Quoted 4 lines · Karel Zak

yes, you need

   util-linux-ng 2.15   --with-fsprobe=builtin
   e2fsprogs 1.41.5     --disable-libblkid

Sounds good.

It's all a bit of inconvenient at the moment with the inter-dependencies, but it's great that we will all end up finally with only a single filesystem-probing lib.

Maybe I'm missing something, but doesn't this introduce a circular dependency?

e2fsprogs depends on util-linux-ng if built with --disable-libblkid util-linux-ng depends on e2fsprog for libuuid

If I'm not misunderstanding anything, are there plans to fix this? Maybe libuuid should be moved to a separate package.

Regards,
Jürg

#5 lore raw
In reply to Matthias Schwarzott
Quoted 16 lines · Jürg Billeter
Quoted 4 lines · Kay Sievers
Quoted 2 lines · Karel Zak

yes, you need

Quoted 9 lines
Quoted 3 lines
   util-linux-ng 2.15   --with-fsprobe=builtin
   e2fsprogs 1.41.5     --disable-libblkid

Sounds good.

It's all a bit of inconvenient at the moment with the inter-dependencies, but it's great that we will all end up finally with only a single filesystem-probing lib.

Quoted 9 lines

Maybe I'm missing something, but doesn't this introduce a circular dependency?

e2fsprogs depends on util-linux-ng if built with --disable-libblkid util-linux-ng depends on e2fsprog for libuuid

If I'm not misunderstanding anything, are there plans to fix this? Maybe libuuid should be moved to a separate package.

I think you are on to something there.

Building util-linux-ng 2.15 using --with-fsprobe=builtin, without having previously built e2fsprogs, gives me:

/bin/bash ../../../libtool --tagÌ --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I../../.. -include ../../../config.h -I../../../include -DLOCALEDIR=\"/tools_i486/share/locale\" -I../../../libs/blkid/src -fsigned-char -g -O2 -MT resolve.lo -MD -MP -MF .deps/resolve.Tpo -c -o resolve.lo resolve.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -include ../../../config.h -I../../../include -DLOCALEDIR=\"/tools_i486/share/locale\" -I../../../libs/blkid/src -fsigned-char -g -O2 -MT read.lo -MD -MP -MF .deps/read.Tpo -c read.c -fPIC -DPIC -o .libs/read.o
read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

IIRC uuid.h is provided by e2fsprogs, which is now supposed to be build after util-linux-ng

Any ideas?

Olaf

#6 lore raw
In reply to Matthias Schwarzott
Quoted 17 lines · Olaf
Quoted 16 lines · Jürg Billeter
Quoted 13 lines · Kay Sievers
Quoted 5 lines · Karel Zak

yes, you need

   util-linux-ng 2.15   --with-fsprobe=builtin
   e2fsprogs 1.41.5     --disable-libblkid

Sounds good.

It's all a bit of inconvenient at the moment with the inter-dependencies, but it's great that we will all end up finally with only a single filesystem-probing lib.

Quoted 8 lines
Quoted 8 lines

Maybe I'm missing something, but doesn't this introduce a circular dependency?

e2fsprogs depends on util-linux-ng if built with --disable-libblkid util-linux-ng depends on e2fsprog for libuuid

If I'm not misunderstanding anything, are there plans to fix this? Maybe libuuid should be moved to a separate package.

I'd like to move libuuid also to util-linux-ng. The library is really not e2fs-specific and a lot of packages depend on the library. For example Fedora 10:

 $ repoquery --whatrequires libuuid* --queryformat="%{NAME}" | sort -u | wc -l
 61

Ted, any opinion?

Quoted 2 lines

Building util-linux-ng 2.15 using --with-fsprobe=builtin, without having previously built e2fsprogs, gives me:

[...]

Quoted 3 lines

read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

Thanks for your report. Fixed (see below).

The libuuid should be optional for u-l-ng. BUT it's recommended to link mkswap against libuuid, so after e2fsprogs installation you can rebuild and reinstall util-linux-ng. For example for RPM it's not a problem when A depends on B and B on A. (I hope:-)

Karel

From cdd17c7a73cab10a34bf80616225b8215ac4e2ed Mon Sep 17 00:00:00 2001
From: Karel Zak <[email protected]>
Date: Tue, 12 May 2009 21:22:19 +0200
Subject: [PATCH] blkid: make libuuid optional

read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

---
 libs/blkid/src/config.c   |    3 ---
 libs/blkid/src/evaluate.c |    3 ---
 libs/blkid/src/read.c     |    1 -
 3 files changed, 0 insertions(+), 7 deletions(-)
libs/blkid/src/config.c +0 -3
index 2e59218..9091736 100644
@@ -24,9 +24,6 @@
 #include <errno.h>
 #endif
 #include <stdint.h>
-#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
-#endif
 #include <stdarg.h>
 
 #include "blkdev.h"
libs/blkid/src/evaluate.c +0 -3
index a9c9fba..f0ae126 100644
@@ -27,9 +27,6 @@
 #include <errno.h>
 #endif
 #include <stdint.h>
-#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
-#endif
 #include <stdarg.h>
 
 #include "pathnames.h"
libs/blkid/src/read.c +0 -1
index 4163874..b5e9cd0 100644
@@ -25,7 +25,6 @@
 #endif
 
 #include "blkidP.h"
-#include "uuid/uuid.h"
 
 #ifdef HAVE_STRTOULL
 #define STRTOULL strtoull /* defined in stdlib.h if you try hard enough */
Signature · 1 line
1.6.0.6
#7 lore raw
In reply to Matthias Schwarzott
Quoted 8 lines · Karel Zak
Quoted 2 lines

Building util-linux-ng 2.15 using --with-fsprobe=builtin, without having previously built e2fsprogs, gives me:

[...]

Quoted 3 lines

read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

Thanks for your report. Fixed (see below).

Builds fine now, thanks Karel!

I think util-linux-ng is missing some kind of make install libblkid? Otherwise e2fsprogs with --disable-libblkid complains about not being able to find external blkid library.

Or am I missing something trivial? (would not be the first time ...)

Quoted 4 lines

The libuuid should be optional for u-l-ng. BUT it's recommended to link mkswap against libuuid, so after e2fsprogs installation you can rebuild and reinstall util-linux-ng. For example for RPM it's not a problem when A depends on B and B on A. (I hope:-)

Better keep your fingers crossed then ;-)

Olaf

Quoted 57 lines

From cdd17c7a73cab10a34bf80616225b8215ac4e2ed Mon Sep 17 00:00:00 2001
From: Karel Zak <[email protected]>
Date: Tue, 12 May 2009 21:22:19 +0200
Subject: [PATCH] blkid: make libuuid optional

read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

---
 libs/blkid/src/config.c   |    3 ---
 libs/blkid/src/evaluate.c |    3 ---
 libs/blkid/src/read.c     |    1 -
 3 files changed, 0 insertions(+), 7 deletions(-)
libs/blkid/src/config.c +0 -3
index 2e59218..9091736 100644
@@ -24,9 +24,6 @@
 #include <errno.h>
 #endif
 #include <stdint.h>
-#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
-#endif
 #include <stdarg.h>
 
 #include "blkdev.h"
libs/blkid/src/evaluate.c +0 -3
index a9c9fba..f0ae126 100644
@@ -27,9 +27,6 @@
 #include <errno.h>
 #endif
 #include <stdint.h>
-#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
-#endif
 #include <stdarg.h>
 
 #include "pathnames.h"
libs/blkid/src/read.c +0 -1
index 4163874..b5e9cd0 100644
@@ -25,7 +25,6 @@
 #endif
 
 #include "blkidP.h"
-#include "uuid/uuid.h"
 
 #ifdef HAVE_STRTOULL
 #define STRTOULL strtoull /* defined in stdlib.h if you try hard enough */
#8 lore raw
In reply to Matthias Schwarzott
Quoted 9 lines · Olaf
Quoted 7 lines · Karel Zak
Quoted 2 lines

Building util-linux-ng 2.15 using --with-fsprobe=builtin, without having previously built e2fsprogs, gives me:

[...]

Quoted 3 lines

read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

Quoted 5 lines
Quoted 1 line

Thanks for your report. Fixed (see below).

Builds fine now, thanks Karel!

I think util-linux-ng is missing some kind of make install libblkid?

 $ cd libs/blkid/
 $ make install DESTDIR=/tmp/FOO/
 $ find /tmp/FOO/
 /tmp/FOO/
 /tmp/FOO/lib
 /tmp/FOO/lib/libblkid.so.1
 /tmp/FOO/lib/libblkid.la
 /tmp/FOO/lib/libblkid.so.1.0.0
 /tmp/FOO/lib/libblkid.so
 /tmp/FOO/lib/libblkid.a
 /tmp/FOO/sbin
 /tmp/FOO/sbin/findfs
 /tmp/FOO/sbin/blkid
 /tmp/FOO/sbin/blkid.static
 /tmp/FOO/usr
 /tmp/FOO/usr/include
 /tmp/FOO/usr/include/blkid
 /tmp/FOO/usr/include/blkid/blkid.h
 /tmp/FOO/usr/lib
 /tmp/FOO/usr/lib/pkgconfig
 /tmp/FOO/usr/lib/pkgconfig/blkid.pc
 /tmp/FOO/usr/share
 /tmp/FOO/usr/share/man
 /tmp/FOO/usr/share/man/man8
 /tmp/FOO/usr/share/man/man8/findfs.8
 /tmp/FOO/usr/share/man/man8/blkid.8
 /tmp/FOO/usr/share/man/man3
 /tmp/FOO/usr/share/man/man3/libblkid.3

(or cd libs/blkid/src if you need to install the library only)

Karel

Signature · 1 line
 Karel Zak  <[email protected]>