[Bug 1225197] New: util-linux depends on libmagic
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197 Bug ID: 1225197 Summary: util-linux depends on libmagic Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: sbrabec@suse.com Reporter: fvogt@suse.com QA Contact: qa-bugs@suse.de CC: bci-internal@suse.de Target Milestone: --- Found By: --- Blocker: --- util-linux has a hard dependency on libmagic1 and thus file-magic, which is rather big (~9MiB). It's only pulled in because /usr/bin/more links against it. Can this dependency be avoided for instance by removing libmagic support from more? That's what Debian, Fedora and Ubuntu do as well. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
Thorsten Kukuk
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
https://bugzilla.suse.com/show_bug.cgi?id=1225197#c1
Stanislav Brabec
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
https://bugzilla.suse.com/show_bug.cgi?id=1225197#c2
--- Comment #2 from Thorsten Kukuk
Is it a problem of Ring 0 bootstrap build loop size or a problem of a cut down image size?
Size is a problem, especially on low level hard required tools.
more uses libmagic to identify binary files.
Yes, but as Fabian wrote: no other big distribution compiles more with this dependency, and people normally use less since >> 25 years. more is only the last fallback if less is not there, e.g. in containers.
In the second case, I would suggest to create a new sub-package containing feature stripped binaries: more without libmagic support findmnt, lsblk without libudev logger, lslogins, uuidd without libsystemd
It could help to create minimal images for the non bootable containers.
It's not only about containers, it's also about the default install size of our system. We have some projects with partners, were size is all what matters for various reasons. E.g. limited size in ROM. So your sub-package solution will not help here, as we need the other tools with that dependencies. And currently it's really just about more. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
https://bugzilla.suse.com/show_bug.cgi?id=1225197#c3
--- Comment #3 from Dirk Mueller
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
https://bugzilla.suse.com/show_bug.cgi?id=1225197#c4
--- Comment #4 from Dirk Mueller
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225197
https://bugzilla.suse.com/show_bug.cgi?id=1225197#c6
Stanislav Brabec
participants (1)
-
bugzilla_noreply@suse.com