tools/gnulib: use exact directory copy for install
authorMichael Pratt <[email protected]>
Sat, 31 May 2025 18:07:05 +0000 (14:07 -0400)
committerRobert Marko <[email protected]>
Sat, 26 Jul 2025 12:38:08 +0000 (14:38 +0200)
commit774ce21c6671427e5a28c5183acb0065549feeea
treeb755a555e39b8290338cec9c44204dfc7a0d6a7a
parentb07b8c8b4331d4ffcdbb5112f007778451dfa3f5
tools/gnulib: use exact directory copy for install

The python implementation of gnulib-tool
uses a hidden file as the independent main function.

A copy with glob ('*') does not include hidden files
at the top level directory, so use whole directory copy
instead and remove the patch for a non-hidden python file.

Ensure the directory does not already exist
by attempting uninstall first to remove it
and by not using "install" to create a directory.

Rename the clean target to uninstall, as it handles
the staging directory and not the build directory.

Removed:
 - 021-python-main.patch

Signed-off-by: Michael Pratt <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <[email protected]>
tools/gnulib/Makefile
tools/gnulib/patches/021-python-main.patch [deleted file]