Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available
@ 2019-04-30  3:02 bugzilla at busybox.net
  2019-04-30  7:00 ` [Buildroot] [Bug 11811] " bugzilla at busybox.net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-04-30  3:02 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

            Bug ID: 11811
           Summary: lsblk (util-linux) should depend on libudev if
                    available
           Product: buildroot
           Version: 2019.02.2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: pmorici at dev295.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Several of the output columns of lsblk such as SERIAL and WWN are incorrectly
reported as empty strings. ie: 'lsblk -do SERIAL'  

The cause is that lsblk uses libudev to obtain this information but the
util-linux package doesn't list the udev package as a dependency if it is
selected. If util-linux gets built before udev then many parts of lsblk return
empty strings for various fields.

Adding the following to packages/util-linux/util-linux.mk fixes the problem.

 ifeq ($(BR2_PACKAGE_UDEV),y)
 UTIL_LINUX_DEPENDENCIES += udev
 endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
@ 2019-04-30  7:00 ` bugzilla at busybox.net
  2019-04-30 12:34 ` bugzilla at busybox.net
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-04-30  7:00 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
I don't think the fix can be that simple: it causes a circular dependency.

Indeed "udev" is provided either by the "eudev" or "systemd" packages. And both
eudev and systemd depend on util-linux:

EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod

SYSTEMD_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_BASH_COMPLETION),bash-completion) \
        host-gperf \
        host-intltool \
        kmod \
        libcap \
        util-linux

So, by adding a dependency on udev in util-linux, you create a circular
dependency.

I'm not sure how we can break this circular dependency, unfortunately :-/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
  2019-04-30  7:00 ` [Buildroot] [Bug 11811] " bugzilla at busybox.net
@ 2019-04-30 12:34 ` bugzilla at busybox.net
  2019-04-30 12:56 ` bugzilla at busybox.net
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-04-30 12:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #2 from Pete Morici <pmorici@dev295.com> ---
Yeah, I spoke too soon.  Doing a dirclean on util-linux and rebuilding after a
full build corrects the issue but that isn't a solution.  

Could libudev be broken out into a separate package that can be built before
the whole?  I'm not familiar enough with buildroot yet to know what a good way
to approach this is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
  2019-04-30  7:00 ` [Buildroot] [Bug 11811] " bugzilla at busybox.net
  2019-04-30 12:34 ` bugzilla at busybox.net
@ 2019-04-30 12:56 ` bugzilla at busybox.net
  2019-05-03 12:10 ` bugzilla at busybox.net
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-04-30 12:56 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #3 from Pete Morici <pmorici@dev295.com> ---
Do systemd and eudev only need libblkid from util-linux? Can that be broken out
into a separate package that they depend on?  It looks like you can select to
only build libblkid  using the configure line, "./configure
--disable-all-programs --enable-libblkid" for util-linux

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2019-04-30 12:56 ` bugzilla at busybox.net
@ 2019-05-03 12:10 ` bugzilla at busybox.net
  2019-05-03 12:19 ` bugzilla at busybox.net
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-03 12:10 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

Carlos Santos <unixmania@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at buildroot.uclibc |unixmania at gmail.com
                   |.org                        |

--- Comment #4 from Carlos Santos <unixmania@gmail.com> ---
I'm taking this bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2019-05-03 12:10 ` bugzilla at busybox.net
@ 2019-05-03 12:19 ` bugzilla at busybox.net
  2019-05-05  0:15 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-03 12:19 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #5 from Carlos Santos <unixmania@gmail.com> ---
(In reply to Pete Morici from comment #3)

It would be possible to have a util-linux-libs package providing libblkid and a
util-linux package with the utilities, only. Another solution would be doing
the same as Fedora, on which libeudev is provided by a systemd-libs package on
which util-linux depends.

I will investigate both solutions and post the results as soon as possible.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2019-05-03 12:19 ` bugzilla at busybox.net
@ 2019-05-05  0:15 ` bugzilla at busybox.net
  2019-05-05  2:15 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-05  0:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #6 from Carlos Santos <unixmania@gmail.com> ---
I investigated the problem and was unable to reproduce the problem on my test
hardware: 

# lsblk -do NAME,SERIAL
NAME         SERIAL
sda          
mmcblk0      0x439da3eb
mmcblk0boot0 
mmcblk0boot1 

Could you please post a defconfig, preferably based on one of the already
existing qemu defconfig's, with which the problem happens?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2019-05-05  0:15 ` bugzilla at busybox.net
@ 2019-05-05  2:15 ` bugzilla at busybox.net
  2019-05-05  2:17 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-05  2:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #7 from Pete Morici <pmorici@dev295.com> ---
Created attachment 8021
  --> https://bugs.busybox.net/attachment.cgi?id=8021&action=edit
modified pc EFI defconfig

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2019-05-05  2:15 ` bugzilla at busybox.net
@ 2019-05-05  2:17 ` bugzilla at busybox.net
  2019-05-05  2:21 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-05  2:17 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

Pete Morici <pmorici@dev295.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8021|application/octet-stream    |text/plain
          mime type|                            |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2019-05-05  2:17 ` bugzilla at busybox.net
@ 2019-05-05  2:21 ` bugzilla at busybox.net
  2019-05-07 16:57 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-05  2:21 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #8 from Pete Morici <pmorici@dev295.com> ---
I've attached my config it is a modified version of the included pc/efi def
config.

Looking at your output though I think you have reproduced the problem.  The
serial column for your sda device is blank.  You can also get the serial by
running the utility "/lib/udev/ata_id /dev/sda"  If that returns something
where lsblk returns a blank then that is the problem.  I've not tested this
with MMC or SD devices so it might be limited to SATA and USB drives.

Another way to see the difference is to do a full build followed by a "make
util-linux-dirclean" and then "make" again that will cause lsblk to link
against libudev and report the serial number correctly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (8 preceding siblings ...)
  2019-05-05  2:21 ` bugzilla at busybox.net
@ 2019-05-07 16:57 ` bugzilla at busybox.net
  2019-05-09 17:19 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-07 16:57 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #9 from Carlos Santos <unixmania@gmail.com> ---
I just sent for review a patch that fixes the problem:

    https://patchwork.ozlabs.org/patch/1096436/

The solution requires a quite invasive patch to avoid building and installing
the util-linux libraries twice.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (9 preceding siblings ...)
  2019-05-07 16:57 ` bugzilla at busybox.net
@ 2019-05-09 17:19 ` bugzilla at busybox.net
  2020-05-29 21:04 ` bugzilla at busybox.net
  2020-11-04 21:57 ` bugzilla at busybox.net
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2019-05-09 17:19 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

--- Comment #10 from Carlos Santos <unixmania@gmail.com> ---
I submitted  a new patch using a slightly different approach:

    https://patchwork.ozlabs.org/patch/1097541/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (10 preceding siblings ...)
  2019-05-09 17:19 ` bugzilla at busybox.net
@ 2020-05-29 21:04 ` bugzilla at busybox.net
  2020-11-04 21:57 ` bugzilla at busybox.net
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2020-05-29 21:04 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

Carlos Santos <unixmania@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unixmania at gmail.com         |unassigned at buildroot.uclibc
                   |                            |.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [Bug 11811] lsblk (util-linux) should depend on libudev if available
  2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
                   ` (11 preceding siblings ...)
  2020-05-29 21:04 ` bugzilla at busybox.net
@ 2020-11-04 21:57 ` bugzilla at busybox.net
  12 siblings, 0 replies; 14+ messages in thread
From: bugzilla at busybox.net @ 2020-11-04 21:57 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11811

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Peter Korsgaard <jacmet@uclibc.org> ---
This has now finally been merged in
https://git.buildroot.org/buildroot/commit/?id=8bafc6dc8ad13000a58af980650ff59a78399ae2,
thanks

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-11-04 21:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-30  3:02 [Buildroot] [Bug 11811] New: lsblk (util-linux) should depend on libudev if available bugzilla at busybox.net
2019-04-30  7:00 ` [Buildroot] [Bug 11811] " bugzilla at busybox.net
2019-04-30 12:34 ` bugzilla at busybox.net
2019-04-30 12:56 ` bugzilla at busybox.net
2019-05-03 12:10 ` bugzilla at busybox.net
2019-05-03 12:19 ` bugzilla at busybox.net
2019-05-05  0:15 ` bugzilla at busybox.net
2019-05-05  2:15 ` bugzilla at busybox.net
2019-05-05  2:17 ` bugzilla at busybox.net
2019-05-05  2:21 ` bugzilla at busybox.net
2019-05-07 16:57 ` bugzilla at busybox.net
2019-05-09 17:19 ` bugzilla at busybox.net
2020-05-29 21:04 ` bugzilla at busybox.net
2020-11-04 21:57 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox