tools/coreutils: update to 9.2#12233
Conversation
|
i don't understand "the fix in gnulib modifies m4" do you mean "the fix in gnulib is required in m4"? there has not been any update to the release branch of m4 since Jan 2023, when they updated gnulib checkout and some other small things, I'm assuming you will need to add a similar patch like this in order to bump it again |
|
I actually don't understand how that works though, or what an "m" filetype is, but it shouldn't be difficult right? |
|
first commit to do so updated docs too
|
|
perhaps we can have gnulib as a separate tool? |
@mpratt14 This gnulib commit is related to the macOS issue with corrupted sparse file copies and modifies I would assume that We should also decide what to do with this patch: https://github.com/openwrt/openwrt/blob/master/tools/coreutils/patches/001-m4.patch Currently the build requires it, and if we remove it, it fails with the following error: However outside the OpenWRT build environment, This looks like incorrectly configured include path or alike. If we can fix that and then the patch will not longer be needed. What do you think? |
|
@mpratt14
I have no experience with the m4 macro processor. |
|
in that case we just have to refer to old conversations |
|
like I said, if gnulib happens to be providing macros that are in missing-macros, IMO we should add gnulib as a separate tool and link coreutils and others to it and get rid of these patches, but I didn't take a close look yet so I don't know for sure if that's the best option |
|
@mpratt14 Good find, Michael! Normally when At this point I believe we should do the following:
Note that as long as we don't reconfigure, the patch is not needed. If we add the patch, it will force reconfigure the project, since
Seems like a good idea, considering |
|
I'm putting together a PR to use gnulib as a separate build tool (just like missing-macros to be honest), which would be one of several methods for resolving the difference between macros in these gnu programs where some are older than others, but we need recent macro fixes that way, both m4 and coreutils can be bootstrapped using the same checkout of gnulib and have all the same macros at build time and in aclocal at the same time |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS: openwrt#11960 As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal. openwrt#12233 (comment) Coreutils bug report and discussion https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 Signed-off-by: Georgi Valkov <[email protected]>
942a92b to
4693625
Compare
|
so it is no longer having a conflict with missing-macros? what changed? |
|
@mpratt14
|
|
the autoreconf step and the patch was added at the same time, so I would expect the conflict to happen again when removing both the autoreconf step and patch without something else changing since then did that patch apply cleanly to 9.2, or did they make changes to that patched macro function as well? maybe they are coincidentally the same now |
I came across build issues with the the rest have minor problems that can be easily solved manually |
|
@mpratt14
https://httpstorm.com/share/.openwrt/test/2023-02-06_coreutils-9.1/2023-03-23-openwrt-build-coreutils-9.2-no-patch.txt Can you change the build system so that if an |
|
I recommend we grab this patch, but forget the changes to NEWS since it will conflict |
|
might as well get this one too since date is one of the things we install |
|
@mpratt14 Hi Michael! |
|
I would do it in the same commit I'm ready to put my PR for gnulib, but it requires rebase and I want to put it on top of this directly |
|
i mean the same commit as this update to 9.2 |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS: openwrt#11960 As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal. openwrt#12233 (comment) Coreutils bug report and discussion https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 backport a couple of upstream patches as requested by mpratt14 date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases Signed-off-by: Georgi Valkov <[email protected]>
|
@mpratt14 |
|
add the commit messages and headers with commit, date, subject, so later everyone can see that these are backports when you're done run
(which removes the "git diff" and "index" lines I think, otherwise you can do it manually since its not needed) |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS: openwrt#11960 As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal. openwrt#12233 (comment) Coreutils bug report and discussion https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 backport a couple of upstream patches as requested by mpratt14 date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases Signed-off-by: Georgi Valkov <[email protected]>
|
@mpratt14 Thanks! Is it good now? |
|
now I'm going to be very picky and specific... in the commit message put the links at the bottom with either footnote numbers I would link directly to the GNU bug report instead of the other pull request you don't have to mention me, but if you do write I also test built on my system, everything else looks good to me 👍🏼 |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS [1]. As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal [2]. backport a couple of upstream patches date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 [2] openwrt#12233 (comment) Co-developed-by: Michael Pratt <[email protected]> Signed-off-by: Georgi Valkov <[email protected]>
|
@mpratt14 Ready! |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS [1]. As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal [2]. backport a couple of upstream patches date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 [2] openwrt#12233 (comment) Co-developed-by: Michael Pratt <[email protected]> Signed-off-by: Georgi Valkov <[email protected]>
|
@hauke Thank you! Can you please also review the |
This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS [1]. As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal [2]. backport a couple of upstream patches date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 [2] openwrt#12233 (comment) Co-developed-by: Michael Pratt <[email protected]> Signed-off-by: Georgi Valkov <[email protected]>
The bug appears to be resolved: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 See also here: openwrt/openwrt#11960 (comment) And here: openwrt/openwrt#12233
This resolves an error when building
toolchain/muslon macOS due to improper hole-detection caused by a bug in macOS/APFS: #11960Coreutils bug report and discussion
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386
coreutils-9.2compiles correctly, however the fix ingnulibalso modifiesm4and there is no new release. The latest version ism4-1.4.19from 2021-05-28 17:55. I would assume that we can clonegnulib, checkoutf17d397771164c1b0f77fea8fb0abdc99cf4a3e1or masterdd723a3ed53cc3b969c6abdf7b0fb6ea8339079a, and buildm4from there. However I'm not sure how to configuretools/m4/Makefileto achieve this. We can also follow the steps for buildingcoreutilswithout relying ontools/m4. The build process automatically downloads and buildsgnulibandm4:Once we update
gnulib/m4, the following patch will no longer be needed:001-m4.patch
@Ansuel @pixelb @hauke @nbd168
Please help me update
coreutilsandm4!