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
dev-lang/lazarus-2.2.4: attempting to address calling gcc
directly
#28789
Conversation
0e96038
to
9bf68af
Compare
Pull request CI reportReport generated at: 2022-12-24 21:53 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
gcc
directlygcc
directly [please reassign]
gcc
directly [please reassign]gcc
directly
Pull request CI reportReport generated at: 2022-12-24 22:04 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Hello, thank you for the fix. We usually prefer patches. Would you mind making a patch for the makefile? Thanks :) |
I wouldn't mind at all, there's a bit of a problem, though. I formatted a patch, https://dpaste.com/76WBW653B.txt but it's 138KB in size, which is probably a bit large for |
I just thought of something. While we're at it, maybe we should add |
You can place it somewhere and add it from SRC_URI. Anyway it seems better your one-line in this case |
Yeah, that's what I originally thought, it makes very little sense to me to add a patch of that size that can be generated on the fly with just one |
gcc
directlygcc
directly [please reassign]
gcc
directly [please reassign]gcc
directly
Pull Request assignmentSubmitter: @corvus1 dev-lang/lazarus: @Amynka, Linked bugsIn order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
c21c8c6
to
0eb4431
Compare
Pull request CI reportReport generated at: 2022-12-26 08:54 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Hello, You can use it from here https://dev.gentoo.org/~amynka/snap/lazarus-2.2.4-makefile.patch.bz2 |
Do you really want me to apply that instead of just the one-line command? It seems to me like a really bizarre thing to do. Not to mention, when they add a little tiny extra module to the build in the next version, the one-liner will keep working, but the patch will have to be reworked, reuploaded, re-mirrored, redistributed... Why are we doing this? |
Using find/sed would change everything without any control by you (you know what you are actually changing but you don't actually know where the changes are made). At every new version you have to verify if your sed is still valid and look if some files should not have to be changed. Making a patch will helps you to track these changes on source code. It's longer but safer compared to sedding everything |
I sort of get that argument, and I thought about it, but in this case... really? I can come up with a more reliable regular expression, and match the |
How about that idea?
But honestly, we really should match the |
Or even, just |
So... I don't know. My original plan was to actually go to bugzilla, and simply ask Ago to re-run his automated check, to make sure it actually removes all direct calls to It's just dragging on. And the bug seems minor and not really affecting anyone. While I have new and exciting changes planned and prepared in my little overlay. The next phase was going to be to add libqt5pas-9999, lazarus-9999, and, hopefully, double-commander-9999, if my other PR gets merged. And after that, I was planning to propagate changes to stable. Seeing that stable lazarus is still gtk2-only. The plan that I had was to just stabilize lazarus-2.2.4 and drop old (and the old is really old, by the way). So, Amy, if you approve of the plan, I will line up the changes and fire up more PRs, as soon as we're done with what automated systems managed to dig up. :-) |
Thats certainly not good.. Then we have to review to patch and worst case I will have to re-upload it :) |
I couldn't quite tell if you're kidding at first, I think you got me there. |
Pull request CI reportReport generated at: 2022-12-30 18:09 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
@corvus1 Hello, Sorry for late response. I suggest we review properly the patch as mentioned.. We test it and revbump it and then commit it to the tree and that will close the bug... |
I don't quite understand how we can review a 160KB patch generated by If you have a better idea, I'd love to learn about it. |
@corvus1 Well right now i could think of at least one way.. For example: One uses the patch and then checks the files again in workdir with grep if there is other gcc calls or if it was eliminated .. I can check that out as well.. Anyhow for sure we revbump.. |
In workdir returns empty. Did you think sed would miss anything? :-) |
The build system does things like GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`) Replace with ${CC}. Add QA_FLAGS_IGNORED and QA_PRESTRIPPED as FPC doesn't care about CFLAGS and does its own stripping. Closes: https://bugs.gentoo.org/818154 Closes: https://bugs.gentoo.org/737060 Signed-off-by: Michael Corvinus <voron1@gmail.com>
9b36335
to
c511702
Compare
@corvus1 I suggest you switch to more friendly tone :) |
That wasn't unfriendly. Sorry if it came across that way. I was joking. |
Pull request CI reportReport generated at: 2023-01-10 23:19 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
So, I grepped the workdir as you suggested, and the gcc calls I was aiming to remove are of course all removed. However, there are of course other mentionings of the word "gcc" in the makefiles. And there's a lot of them. It's just impossible to check them all by hand. This is what automated checks are for, right? The system that detected the problem to begin with. So I suggest we go with what we have now, and see if the system reproduces the problem again, or it is fixed. The only thing is, I'm not sure we should actually close the bug. Maybe just reference it. Or maybe it's not important, and it will reopen if it reproduces the issue again. I'm not sure. |
FreePascal does clunky things in Makefiles, such as:
My first naive idea is to replace
gcc
with${CC}
. If there are better ways of doing it, please tell me. ;-)Bug: https://bugs.gentoo.org/818154