unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Anybody please help improving rust crates importer
@ 2020-11-07 18:08 Hartmut Goebel
  2020-11-07 18:13 ` John Soo
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2020-11-07 18:08 UTC (permalink / raw)
  To: Guix-devel

Hi,

can anybody please help improving the crates importer? My guile skills
are far to poor and my time is to limited. Help is appreciated!

Why the crates importer needs to be improved

rust is still an young language and many rust packages (crates) still
have 0.x versions. Also crates use semantic versioning and describe
dependencies the same way. Thus, when importing or updating a package,
the packager has to validate *every* dependency manually.

To give you a number: When updating seqouia-pgp, one new dependency was
added, which introduced 151 dependencies - each of which need to be
checked and adopted *manually*.

How the crates importer needs to be improved

  *

    Automatically add the semantic version base to the package's
    variable name (e.g. rust-aaa-1, rust-aaa-0.7). This is stupid work,
    currently to be done manually. Anyhow, this should be easy to implement.

  *

    When creating the package sexp, refer to each dependency using its
    semantic versioned variable name. This is stupid work, currently to
    be done manually. Anyhow, this should be easy to implement, once the
    next point is done.

  *

    When looking up dependencies, follow the semantic version
    requirement. Looking this up manually is the most elaborate, stupid
    work - and it is demotivating.

  *

    When checking whether a dependency is already packaged, take the
    semantic version into account. This is another demotivating,
    elaborate work, done by the computer much faster ans less error-prone.

Anybody taking up this job? I can provide more details, e.g. links, API
end-points, etc.

(Side-note: I'm not a rust developer, I'm just trying to make
sequoia-pgp and pEp available for guix.)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



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

* Re: Anybody please help improving rust crates importer
  2020-11-07 18:08 Anybody please help improving rust crates importer Hartmut Goebel
@ 2020-11-07 18:13 ` John Soo
  0 siblings, 0 replies; 2+ messages in thread
From: John Soo @ 2020-11-07 18:13 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

     Hello Hartmut, 

 
There is a patch set that has slightly bit rotted that does what you want.    It could use a little polish but any work on it would be appreciated:   http://issues.guix.gnu.org/38408
 

 
Thanks for thinking about the rust ecosystem in guix!
 

 
- John
     

[-- Attachment #2: Type: text/html, Size: 506 bytes --]

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

end of thread, other threads:[~2020-11-07 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 18:08 Anybody please help improving rust crates importer Hartmut Goebel
2020-11-07 18:13 ` John Soo

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).