-
Notifications
You must be signed in to change notification settings - Fork 3.7k
lvm2: build fails due to find yielding a long command line #26552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which OpenWrt version are you using? |
I am working on a prplOS build based on OpenWRT 23.05. |
Is prplOS supported by us, @ynezz? |
Thats pre-23.05 package, ask prplos to help with their custom package tree. Or use OpenWrt to complain about this package set |
ynezz
added a commit
to ynezz/openwrt-packages
that referenced
this issue
May 21, 2025
It was reported that in some build environments the install step fails with following: find /home/.../buildsystem/build_dir/target-aarch64-unknown-linux-gnu_musl/lvm2-normal/LVM2.2.03.22/ipkg-install/usr/sbin/ -type l -exec cp -fpR -a {} /home/.../buildsystem/build_dir/target-aarch64-unknown-linux-gnu_musl/lvm2-normal/LVM2.2.03.22/.pkgdir/lvm2/sbin/ \; make[6]: /bin/sh: Argument list too long This is likely happening once the number of symlinks exceeds the shell's maximum argument limit. So lets fix it by switching to more reliable xargs based solution: print0/xargs -0 to handle filenames with special characters xargs -r to skip execution if no files are found cp -t to specify the target directory once instead of for each file Fixes: openwrt#26552 Signed-off-by: Petr Štetiar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In utils/lvm2/Makefile, the following install command creates very long command lines, which can overflow the default limit of 4096 characters.
I experienced build failures in my environment because the PKG_INSTALL_DIR is quite long.
It would be more robust to execute individual cp commands per file.
The text was updated successfully, but these errors were encountered: