cargo build-system should be able to filter out target.cfg(windows) dependencies

OpenSubmitted by ng0.
Details
4 participants
  • Hartmut Goebel
  • John Soo
  • ng0
  • zimoun
Owner
unassigned
Severity
normal
N
(address . bug-guix@gnu.org)
87zijathke.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me
The cargo build-system should be able to filter out Windowsdependencies.Ignore blocks with this in Cargo.toml files:[target.'cfg(windows)'.dependencies]
until the next [ ] starts.
I also found that most *32-sys packages (currently ALL *32-sysI've seen) are windows specific.As the build system is simple enough to not complain, you justhave to learn about this while doing the work.
-- ♥Ⓐ ng0PGP keys and more: https://n0is.noblogs.org/http://ng0.chaosnet.org
Z
Z
zimoun wrote on 18 Dec 2020 20:56
(address . 25327@debbugs.gnu.org)
86pn36vqfe.fsf@gmail.com
Hi,
On Mon, 02 Jan 2017 at 00:46, ng0 <ng0@libertad.pw> wrote:
Toggle quote (12 lines)> The cargo build-system should be able to filter out Windows> dependencies.> Ignore blocks with this in Cargo.toml files:> [target.'cfg(windows)'.dependencies]>> until the next [ ] starts.>> I also found that most *32-sys packages (currently ALL *32-sys> I've seen) are windows specific.> As the build system is simple enough to not complain, you just> have to learn about this while doing the work.
This bug is really old and the story about cargo has a bit evolved. Isit still relevant with the recent additions?
If no, feel free to close it. And without more comment, I will close itafter the usual 2 weeks delay.

All the best,simon
H
H
Hartmut Goebel wrote on 19 Dec 2020 14:10
(address . 25327@debbugs.gnu.org)
bc4b27b4-5d3a-fac2-f7c2-689147b9c16d@crazy-compilers.com
Am 18.12.20 um 20:56 schrieb zimoun:
Toggle quote (2 lines)> Is it still relevant with the recent additions?
I just checked this with sequoia 0.20.0: The package "winapi" is still downloaded and compiled - even if obviously not used sicne on Linux.
-- RegardsHartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com || www.crazy-compilers.com | compilers which you thought are impossible |
Z
Z
zimoun wrote on 11 Jan 13:41 +0100
(name . Hartmut Goebel)(address . h.goebel@crazy-compilers.com)
86lfcztzla.fsf@gmail.com
Hi Hartmut,
On Sat, 19 Dec 2020 at 14:10, Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:
Toggle quote (6 lines)> Am 18.12.20 um 20:56 schrieb zimoun:>> Is it still relevant with the recent additions?>> I just checked this with sequoia 0.20.0: The package "winapi" is still> downloaded and compiled - even if obviously not used sicne on Linux.
Should the remove of this “winapi” happen at the build-system level orat the package per package level?
Other said, are the Windows dependencies normalized by Cargo?
All the best,simon
J
J
John Soo wrote on 11 Jan 14:33 +0100
(name . zimoun)(address . zimon.toutoune@gmail.com)
bf65844a-c17c-4e6c-a5ae-5a88b404ba55@Johns-iPhone
Hi zimoun,
I think that the configuration phase will fail even if conditional compilation dependencies are missing. It’s worth a shot though!
- John
Attachment: file
?