mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Issue with distfile names, extraction and var


From: Gregorio Litenstein
Subject: Re: [Mingw-cross-env-list] Issue with distfile names, extraction and variables in download/extraction steps.
Date: Wed, 11 Sep 2019 18:25:21 -0700

Sure, you can check it out at https://github.com/Lord-Kamina/mxe/tree/rust


I haven’t been able to test it but that should be done and functional,

Things to keep in mind; 


1) I did what I did with the llvm-tools chiefly to avoid messing with the llvm package but there’s no other reason to have a separate-package; so if you’d prefer to eventually merge both things, that’s fine)


2) There many horrible hacks in here; if you have cleaner ways of doing it, I’m definitely open to suggestions.


3) I’m not sure this will work with gcc5; I used gcc8.3.0


-- 
Gregorio Litenstein Goldzweig 
glit_ind.png
Médico Cirujano
 


On September 11, 2019 at 21:39:45, Tony Theodore (address@hidden) wrote:

Can you push your work-in-progress somewhere? I’m not at a computer now but will try to have a look tonight. 

Cheers,

Tony

On 12 Sep 2019, at 10:07, Gregorio Litenstein <address@hidden> wrote:

Just following up to say I got it sorted; I came up with a very hacky solution, though.

Added a meta-package called get-target-triplet that essentially just writes a file with the target triplet. My package then depends on that and reads the file (and deletes both the file and the get-target-triplet file inside the installed directory)


-- 
Gregorio Litenstein Goldzweig 
glit_ind.png
Médico Cirujano
 


On September 11, 2019 at 15:47:54, Gregorio Litenstein (address@hidden) wrote:

I think I have gotten to the root of this issue.


I need to be able to access $(TARGET) when the file is downloaded and checksummed. Evidently this would require a patch to MXE (or some workaround to get that bit of information into the proper scope) but I’m not quite sure how to go about it.


Any ideas?


-- 
Gregorio Litenstein Goldzweig 
glit_ind.png
Médico Cirujano
 


On September 9, 2019 at 07:52:29, Gregorio Litenstein (address@hidden) wrote:

So…

I have two packages:

1) foo-bootstrap
2) foo

foo-bootstrap defines its filename as foo-1.0.1-something.tar.xz
foo defines its filename as foo-1.1.0-something-else.tar.xz

In this case, both something and something-else are derived from $(TARGET) or $(BUILD)

Behavior I’m seeing right now is, if I try “make foo”, after having done foo-bootstrap, it will directly go into build stage (without downloading anything) and it fails due to a wrong package name (because apparently $(TARGET) and $(BUILD) are not accessible at this stage even though it’s obvious they are already known if the folder is able to be created.

Beside this, the file doesn’t exist (due to not having downloaded it)

If I delete the foo-bootstrap file from mxe/pkg, “make foo” will download the file from foo-bootstrap instead and fail in the same way.

Does anybody have an idea why this might be happening? And  if it is a bug in the mxe Makefile, where should I go hunting for it? I tried debugging it yesterday but am not that experienced with make so I’m not sure exactly which function does what and what order they’re called in…

-- 
Gregorio Litenstein Goldzweig 
glit_ind.png
Médico Cirujano
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]