New: host-e2fsprogs attempts to create udev rules.d on build host if not exists
https://bugs.busybox.net/show_bug.cgi?id=13081
Bug ID: 13081
Summary: host-e2fsprogs attempts to create udev rules.d on
build host if not exists
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: christian at paral.in
CC: buildroot at uclibc.org
Target Milestone: ---
If the /usr/lib/udev path does not exist on the build host, the "installdirs-udev" step of the "install-progs-recursive" step of host-e2fsprogs host-install in Buildroot attempts to create it.
This is a leak out of the Buildroot host dir structure.
Log output:
making install in po
if test "e2fsprogs" = "gettext-tools"; then \
/bin/mkdir -p/home/paralin/repos/skiff-configs/skiff/workspaces/desktop/host/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed
en at quot.header en at boldquot.header insert-header.sin Rules-quot Makevars.t
emplate; do \
/usr/bin/install -c -m 644 ./$file \
a /home/paralin/repos/skiff-configs/skiff/workspaces/desktop/host/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f/home/paralin/repos/skiff-configs/skiff/workspaces/desktop/host/share/gettext/po/$file; \
done; \
else \
: ; \
fi
making install in scrub
:MKDIR_P /usr/lib/udev/rules.d/bin/mkdir: cannot create directory '/usr/lib/udev': Permission denied
make[5]: *** [Makefile:420: installdirs-udev] Error 1
make[4]: *** [Makefile:433: install-progs-recursive] Error 1
make[3]: *** [package/pkg-generic.mk:280:/home/paralin/repos/skiff-configs/skiff/workspaces/desktop/build/host-e2fsprogs-1.45.6/.stamp_host_insta lled] Error 2
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 13081] host-e2fsprogs attempts to create udev rules.d on build host if not exists
https://bugs.busybox.net/show_bug.cgi?id=13081
--- Comment #1 from Christian Stewart <[email protected]> --- Seems like the /usr/lib/systemd/system path also leaks:
making install in scrub
MKDIR_P /usr/lib/udev/rules.d
iMKDIR_P /usr/lib/systemd/system/bin/mkdir: cannot create directory '/usr/lib/systemd/system': Permission denied
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 13081] host-e2fsprogs attempts to create udev rules.d on build host if not exists
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=13081
--- Comment #2 from Christian Stewart <[email protected]> --- Created attachment 8536
--> https://bugs.busybox.net/attachment.cgi?id=8536&action=edit
hacky fix for e2fs progs writing to host system
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 13081] host-e2fsprogs attempts to create udev rules.d on build host if not exists
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=13081
--- Comment #3 from Christian Stewart <[email protected]> ---
The attached patch disables e2fsprogs scrub utilities by removing them from the Makefile.in. This fixes the build on systems where the paths it tries to mkdir -p do not already exist. But, a better patch is probably needed for upstream.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 13081] host-e2fsprogs attempts to create udev rules.d on build host if not exists
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=13081
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #4 from Thomas Petazzoni <[email protected]> --- This is fixed by
https://git.buildroot.org/buildroot/commit/?id=ea6ddd367140f38bb512cf35de9f84d0ac853cff
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.