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
[PATCH] $(MINIPERL_EXE) shouldn't be required to exist for "rm" #17127
Comments
From @haukexHi, Pretty simple: "rm \$(MINIPERL_EXE)" can cause the build step to fail, Thanks, Best, |
From @haukex0001-Don-t-require-MINIPERL_EXE-to-exist-for-removal.patchFrom 182809027cce9a844ab9e730d620f21369282c7f Mon Sep 17 00:00:00 2001
From: Hauke D <haukex@zero-g.net>
Date: Tue, 13 Aug 2019 22:12:36 +0200
Subject: [PATCH] Don't require $(MINIPERL_EXE) to exist for removal
---
Makefile.SH | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.SH b/Makefile.SH
index 9f04c7dcde..180def880b 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1029,7 +1029,7 @@ lib/buildcustomize.pl: $& $(miniperl_objs) write_buildcustomize.pl
$spitshell >>$Makefile <<!GROK!THIS!
lib/buildcustomize.pl: \$& \$(miniperl_dep) write_buildcustomize.pl
-@rm -f miniperl.xok
- -@rm \$(MINIPERL_EXE)
+ -@rm -f \$(MINIPERL_EXE)
\$(LNS) \$(HOST_PERL) \$(MINIPERL_EXE)
\$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
\$(MINIPERL) -f write_buildcustomize.pl 'osname' "$osname"
--
2.22.0
|
From @tonycozOn Tue, 13 Aug 2019 13:24:26 -0700, haukex@zero-g.net wrote:
I don't see how, the "-" means that the exit value from rm is ignored.
This only prevents a diagnostic, it won't prevent any sort of build failure (which will happen if miniperl exista and is immutable for example.) Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @haukexHi, $ man rm It's the nonzero exit code that causes `make` to think the build step failed. Or am I misunderstanding you? Best, On Wed, 14 Aug 2019 18:15:37 -0700, tonyc wrote:
|
From @tonycozOn Wed, 14 Aug 2019 23:19:58 -0700, haukex@zero-g.net wrote:
-@rm \$(MINIPERL_EXE) The "-" at the front of the recipe means that the exit code of rm is ignored. (The @ means the command isn't echoed.) From the GNU make documentation: To ignore errors in a recipe line, write a '-' at the beginning of For example, clean: This causes 'make' to continue even if 'rm' is unable to remove a file. Tony |
From @haukexHi, Oh, I see what you mean, thanks! That's strange then, I will have to do some more research on why the build failed on my end then. Will update once I know more. Best, On Mon, 19 Aug 2019 23:22:11 -0700, tonyc wrote:
|
From @tonycozOn Mon, 19 Aug 2019 23:25:06 -0700, haukex@zero-g.net wrote:
Closing this, if you end up finding the cause and it's our problem, please open a new ticket. Tony |
@tonycoz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#134361 (status was 'rejected')
Searchable as RT134361$
The text was updated successfully, but these errors were encountered: