Skip to content

Conversation

@Corion
Copy link

@Corion Corion commented Jan 18, 2021

This incorporates changes from https://github.com/msys2/MSYS2-packages/blob/master/perl/perl.cygwin-Win32.patch into Perl.

I've split up the PR into several commits to make reviewing easier hopefully. Also, hopefully, bisecting a problem points more closely to the problem than one large patch.

There are separate .patchfiles for Configure which I did not apply or touch (yet)

Makefile.SH Outdated
test_prep test-prep: test_prep_pre $(MINIPERL_EXE) $(unidatafiles) $(PERL_EXE) \
$(dynamic_ext) $(TEST_PERL_DLL) runtests $(generated_pods) common_build
cd t && (rm -f $(PERL_EXE); $(LNS) ../$(PERL_EXE) $(PERL_EXE))
cd t && (rm -f $(PERL_EXE) $(LIBPERL); $(LNS) ../$(PERL_EXE) $(PERL_EXE); $(LNS) ../$(LIBPERL) $(LIBPERL))
Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks dubious to me. It might be correct on msys (though I'd be curious as to why) but I'm not sure we should do it for the other operating systems (that certainly do not need libperl to be in t/

@toddr
Copy link
Member

toddr commented Jan 18, 2021

FYI porting/manifest.t is failing right now.

@Leont
Copy link
Contributor

Leont commented Jan 18, 2021

FYI porting/manifest.t is failing right now.

Yeah, dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/msys.pm needs to be added to MANIFEST

@@ -0,0 +1,33 @@
package ExtUtils::CBuilder::Platform::msys;
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is exactly the same as ExtUtils::CBuilder::Platform::cygwin, shouldn't it just inherit from that instead?

@Corion
Copy link
Author

Corion commented Feb 6, 2021

If the two files are exactly identical then we could do with inheritance. They should be fairly similar environments anyway.

@Leont
Copy link
Contributor

Leont commented Feb 7, 2021

Probably #18534 needs to be merged before this one.


WriteMakefile(
NAME=> 'NDBM_File',
LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"],
Copy link
Contributor

Choose a reason for hiding this comment

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

cygwin uses a hints/ file for this, msys should probably do exactly the same

Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect this entire patch isn't needed, can we double check that?

@demerphq
Copy link
Collaborator

demerphq commented Feb 8, 2023

@Corion this ticket is stalled and in conflict. Do you have any intention to rebase it to blead? It seems like people are cautiously enthusiastic about it.

@jkeenan
Copy link
Contributor

jkeenan commented Jul 31, 2023

@Corion this ticket is stalled and in conflict. Do you have any intention to rebase it to blead? It seems like people are cautiously enthusiastic about it.

@Corion, ^^

@Corion
Copy link
Author

Corion commented Jul 31, 2023

I'll look at it - thanks for keeping up with this!

@Corion
Copy link
Author

Corion commented Jul 31, 2023

Rebased to current blead

<<$^O-eq-cygwin>>
push(@names,"cyg$_.$dl_so") unless m:/:;
<</$^O-eq-cygwin>>
<<$^O-eq-msys>>
Copy link
Contributor

Choose a reason for hiding this comment

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

This commit should also update the version to '1.55'

Copy link
Author

Choose a reason for hiding this comment

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

Done

@Corion Corion force-pushed the msys2-upstream branch 2 times, most recently from 6cb7189 to 67d35ca Compare August 1, 2023 18:51
@goyalyashpal
Copy link

hi! is this like merged? (as in, sometimes commits get merged using git cli in a way that gh doesn't detect it)

@jkeenan
Copy link
Contributor

jkeenan commented Jan 2, 2024

hi! is this like merged? (as in, sometimes commits get merged using git cli in a way that gh doesn't detect it)

No, it does not appear to have been merged. In fact, it has merge conflicts. @Corion, can you give us an update on the status of this pull request?

Max Maischein added 5 commits January 2, 2024 17:53
# Conflicts: #	ext/File-Glob/t/basic.t
# Conflicts: #	ext/POSIX/t/time.t #	lib/Net/hostent.t
# Conflicts: #	MANIFEST
Also bump perl5db version Add ExtUtils::CBuilder::msys to MANIFEST ... at least for this proof-of-concept PR. Ideally, EU:CB:msys should go into the distribution and then get pulled back in via sync-with-cpan instead. # Conflicts: #	lib/perl5db.pl
@Corion
Copy link
Author

Corion commented Jan 2, 2024

Rebased. I think the two comments by @Leont still stand, but I can't promise that I can look into them. Maybe the rest should be applied and these two left out?

@Leont
Copy link
Contributor

Leont commented Jan 2, 2024

hi! is this like merged? (as in, sometimes commits get merged using git cli in a way that gh doesn't detect it)

Somehow this work got spread over multiple tickets. There's some additional work here but I haven't cut it into clean patches yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

6 participants