All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: util-linux-ng required? which version?
Date: Tue, 12 May 2009 19:48:08 +0000	[thread overview]
Message-ID: <20090512194635.GE3335@nb.net.home> (raw)
In-Reply-To: <200905111019.20478.zzam@gentoo.org>

On Tue, May 12, 2009 at 06:45:51PM +0200, Olaf wrote:
> Jürg Billeter wrote:
>> On Mon, 2009-05-11 at 13:43 +0200, Kay Sievers wrote:
>>   
>>> On Mon, May 11, 2009 at 12:23, Karel Zak <kzak@redhat.com> wrote:
>>>     
>>>>  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.

 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?

> Building util-linux-ng 2.15 using --with-fsprobe=builtin, without having  
> previously built e2fsprogs, gives me:
[...]
> 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 <kzak@redhat.com>
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....

Reported-by: Olaf <mailinglists@ban-solms.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
---
 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(-)

diff --git a/libs/blkid/src/config.c b/libs/blkid/src/config.c
index 2e59218..9091736 100644
--- a/libs/blkid/src/config.c
+++ b/libs/blkid/src/config.c
@@ -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"
diff --git a/libs/blkid/src/evaluate.c b/libs/blkid/src/evaluate.c
index a9c9fba..f0ae126 100644
--- a/libs/blkid/src/evaluate.c
+++ b/libs/blkid/src/evaluate.c
@@ -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"
diff --git a/libs/blkid/src/read.c b/libs/blkid/src/read.c
index 4163874..b5e9cd0 100644
--- a/libs/blkid/src/read.c
+++ b/libs/blkid/src/read.c
@@ -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 */
-- 
1.6.0.6


  parent reply	other threads:[~2009-05-12 19:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11  8:19 util-linux-ng required? which version? Matthias Schwarzott
2009-05-11  9:50 ` Matthias Schwarzott
2009-05-11 10:23 ` Karel Zak
2009-05-11 11:43 ` Kay Sievers
2009-05-12 12:58 ` Jürg Billeter
2009-05-12 16:45 ` Olaf
2009-05-12 19:48 ` Karel Zak [this message]
2009-05-12 20:31 ` Olaf
2009-05-12 20:54 ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090512194635.GE3335@nb.net.home \
    --to=kzak@redhat.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.