unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* rust-build-system: Unvendor *-sys libraries in phase?
@ 2020-01-24 21:49 John Soo
  2020-01-25 18:49 ` Efraim Flashner
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2020-01-24 21:49 UTC (permalink / raw)
  To: Guix-devel

Hi guix,

After working on a few rust packages, it looks like there could be another step on the process.  There are a number of libraries in the crates registry that wrap and vendor c libraries - libgit2, openssl, or jemalloc for example. The wrapping libraries, for reference, are usually called <c-library-name>-sys - libgit2-sys for example.

In the current rust-build-system, the onus of removing the vendored code falls on the ultimate consumer of the library. So, for instance, cbindgen would have to define a phase to remove the vendored code in a *-sys library even if that library is a transitive dependency.

What would you all think about adding a phase to the standard phases of the rust-build-system? I’m imagining some phase that would delete the vendored code and performed the other necessary steps to use the c libraries in /gnu/store.

Wdyt?

John

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-01-27 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-24 21:49 rust-build-system: Unvendor *-sys libraries in phase? John Soo
2020-01-25 18:49 ` Efraim Flashner
2020-01-25 19:01   ` John Soo
2020-01-25 19:36     ` Efraim Flashner
2020-01-27 14:44       ` John Soo
2020-01-27 16:36         ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).