Skip to content

Conversation

@mohawk2
Copy link
Contributor

@mohawk2 mohawk2 commented Mar 29, 2025

Thanks for the new version! With these changes (plus these fixes for PkgConfig: PerlPkgConfig/perl-PkgConfig#61), Prima now builds cleanly on my "place-with-space" Windows setup.

@mohawk2 mohawk2 force-pushed the fix-in-space branch 3 times, most recently from 576d035 to 7e9f420 Compare March 29, 2025 02:51
@dk
Copy link
Owner

dk commented Mar 29, 2025

Text::ParseWords::shellwords is a great idea

@mohawk2
Copy link
Contributor Author

mohawk2 commented Apr 11, 2025

@dk Thanks. Please could you merge and release this?

@dk
Copy link
Owner

dk commented Apr 11, 2025

I'd rather wait for you to answer my questions in the review first..

@mohawk2
Copy link
Contributor Author

mohawk2 commented Apr 19, 2025

I'd rather wait for you to answer my questions in the review first..

The "review" UI is pretty clear about reviews being pending. This means that, as here, you haven't actually sent it yet. Until you do, it will be very significantly difficult for me to answer any questions you may have.

@dk dk self-requested a review April 20, 2025 06:39
Copy link
Owner

@dk dk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the comments under individual commits

OBJECT => "@o_files",
INC =>
join(' ', map { "-I$_" } @INCPATH ).
join(' ', map qq{"-I$_"}, @INCPATH ).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the idea, but why not maybe_quote?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because that is how EUMM does it (unconditionally), which works great in all environments.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, but I think that conditionally quoted lines look better than unconditionally quoted. I rarely copypaste the individual compilation or linking lines and run them as standalone, and they are mostly ugly enough as they are, without quotes. The idea is good but let's use maybe_quote still, at least it is systematically used throughout makefile.pl

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dmitry's perspective makes sense to me. I like that in Perl I can say $hash{key} and am not required to say $hash{"key"}. Improving the legibility of auto-generated code is a good thing. Unlike the makefile's $(lib), these are Perl values that can be accurately examined.

@dk
Copy link
Owner

dk commented Apr 20, 2025

I don't understand why do you want a formal review instead of just reading comments under the proposed commits, but if it helps, well... here it goes

@mohawk2
Copy link
Contributor Author

mohawk2 commented Apr 20, 2025

I don't understand why do you want a formal review instead of just reading comments under the proposed commits, but if it helps, well... here it goes

Until today the only comment visible on here was "Text::ParseWords::shellwords is a great idea". You said above you'd "rather wait for [me] to answer my questions in the review first" about the changes I made here. No such questions were visible to me or anyone else, at all.

Either the "questions" were a GitHub review you'd written but not published (my assumption), or one of us doesn't know how to ask questions.

@dk
Copy link
Owner

dk commented Apr 21, 2025

That's not true that the only comment was visible is the one above; my comments on the commits were visible for 23 days. I also get mails for your answers under them today, so it looks like these were published alright.

Now, I added some text under both, hopefully you can see them. In short though, the first commit with 0,1 I don't find necessary, while the 2nd with the qq is okay but I would prefer maybe_quote. If you would address these I shall merge the pr

@mohawk2
Copy link
Contributor Author

mohawk2 commented Apr 28, 2025

That's not true that the only comment was visible is the one above; my comments on the commits were visible for 23 days. I also get mails for your answers under them today, so it looks like these were published alright.

Are you saying that I am wrong about what I could see in my view of this PR? You getting emails about my answers is irrelevant to what I was able to see. I can now see you wrote some messages that are dated 29 March, but they only became visible to me in late April.

Now, I added some text under both, hopefully you can see them. In short though, the first commit with 0,1 I don't find necessary, while the 2nd with the qq is okay but I would prefer maybe_quote. If you would address these I shall merge the pr

There are no guarantees you won't change @INCPATH to do hardcode values like $(lib) that will be later expanded to have spaces, but which would give a false negative in maybe_quote. I am therefore leaving the quotes as unconditional.

@run4flat
Copy link
Contributor

run4flat commented Apr 28, 2025 via email

@dk
Copy link
Owner

dk commented Apr 28, 2025

If that's okay, i can also cancel this pr and rework the patch.

@dk
Copy link
Owner

dk commented Apr 28, 2025

That's not true that the only comment was visible is the one above; my comments on the commits were visible for 23 days. I also get mails for your answers under them today, so it looks like these were published alright.

Are you saying that I am wrong about what I could see in my view of this PR? You getting emails about my answers is irrelevant to what I was able to see. I can now see you wrote some messages that are dated 29 March, but they only became visible to me in late April.

Yes I believe you are wrong in exactly about what you could see after 29/03. I did not do any special privacy editing or similar changes in these comments, and I doubt that it was a github UI bug that hid these from you and only magically made them visible in the later april. I believe these comments were seen immediately, but either the notification didn't reach you properly, or you did look in the wrong place.

Anyways, I'm glad that they are visible to you, and indeed as David pointed, they provide much better contextualization for the discussion. I agreed with the arguments about makefile expansion, so this part is okay; but not about the uncoditional quotes, so to expand on my previous short note, if there is any problem with changing the commit, and can also cancel the pr but add the patches manually.

Copy link
Owner

@dk dk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good except the same qq{"-I$"} (and -L too) vs maybe_quote("-I$"). It doesn't seem that makefile variables come to @incpath and @LIBPATH, so I still would prefer no quoting where it can be avoided.

@dk
Copy link
Owner

dk commented May 8, 2025

I've incorporated the changes here and added a missed case of shellwords, kindly test

@dk dk closed this May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants