From: Doron Behar <doron.behar@gmail.com>
To: help-guix@gnu.org
Subject: Re: Trying to contribute packages: ./pre-inst-env doesn't work
Date: Wed, 15 May 2019 12:46:29 +0300 [thread overview]
Message-ID: <20190515094629.hcxxxddpgoirwhza@NUC.doronbehar.com> (raw)
In-Reply-To: <CAE4v=pgbWYRApjxWsZSOgPa7baD04_REaX_sFHv-wXmBy7SLXw@mail.gmail.com>
Thanks for the quick reply!
On Wed, May 15, 2019 at 10:46:29AM +0200, Gábor Boskovits wrote:
> >
> It might be easier to first set up a channel with your packages only. You
> can find
> several examples out there.
> Here is one of my channels:
> https://gitlab.com/g_bor/nominatim-channel
Oh right, thanks. That's an excellent reference.
> >
> > - I ran ./configure inside /var/code/doron/guix
> >
>
> Did you specify your localstatedir to configure?
Yes, I've given it the same flags I gave it when I've build it at first.
> Did you also run make?
No! I was hoping I could avoid that as that's extremely CPU intensive..
Is there a way to run make with only the relevant targets? That could be
very helpful...
Plus, do I have to run make after every change to a package definition!?
Will it compile everything from the ground up after every such change? I
wish these technical details would have been documented...
I'm running make while I'm writing this email and I must say that not
only it takes a lot of time and uses a lot of CPU power, it handles way
too much irrelevant things such as translations.
I also noticed it runs GUILEC - is it really necessary? I'm no Guile
expert and I wish I could avoid diving to the whole ecosystem of it just
because I want to use Guix and contribute some packages!
I talked about this subject in a different thread: The design choice of
putting all package definitions in the same repository as the package
manager it self is very uncommon in the Linux. I understand that almost
all of Guix is written in Guile so it must be linked somehow to the
package definitions but I think it makes it very hard to actually
contribute something to the packages definitions! It seems that we,
package maintainers, or to put it simply - the community, need to be too
much involved in the source code of everything in order to help the
distributions. That's rather unfortunate IMHO. I'd like to be convinced
I'm wrong at least in this subject because as I dive more and more into
Guix I feel there have been made a lot of poor design choices in it..
>
> Are your packages in a separate file?
> If yes, did you add it to local.mk?
No, I've added new definitions to existing files.
> > -----
> >
> > Failing to do that and after looking for alternative ways to create new
> > packages, I read about the `--load-path` option of `guix build`. Is it
> > possible to use it for new packages testings? I tried to run the
> > following but I got all kinds of warnings and errors:
> >
> > guix build -L/var/code/doron/guix my-new-package
> >
> >
> I would not do that, the channel mechanism superseded this.
I see, makes sense.
> > Here is all of the output:
> > https://gist.github.com/doronbehar/38d31142522fd01a67e7da412b0cf5ed
> >
> > Since there were all of these "source file newer than compiled"
> >
>
> These are actually harmless, they indicate that your .go files should be
> regenerated, as they are older than the .scm files. You can run make to
> get rid of these. (Have not looked at the error, tough)
Oh right, makes sense in accordance to your previous comment on running
make.
>
>
> > messages, I tried putting back my channels configuration from above and
> > run `guix pull` again but I got pretty much the same errors and
> > warnings.
> >
> > -----
> >
> > Any way, I'm very frustrated. Although I'm very excited as for the
> > genius design of Guix and it's flexibility and extensibility, I'm very
> > disappointed by it's UX for a simple thing as package contribution. but
> > this should be addressed in a separate discussion
>
> .
> >
>
> I am very sorry to hear that. I hope you can point us to the right
> directions
> to make this easier. Suggestions about documentation are also very welcome.
Oh right. When I'll actually understand everything hopefully with your
guidance, I hope I'll find the time to send some patches.
Doron.
next prev parent reply other threads:[~2019-05-15 9:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-15 8:06 Trying to contribute packages: ./pre-inst-env doesn't work Doron Behar
2019-05-15 8:46 ` Gábor Boskovits
2019-05-15 9:46 ` Doron Behar [this message]
2019-05-15 10:22 ` Doron Behar
2019-05-15 10:46 ` Gábor Boskovits
2019-05-15 14:49 ` Doron Behar
2019-05-15 15:04 ` Ricardo Wurmus
2019-05-15 16:10 ` Doron Behar
2019-05-15 10:41 ` Gábor Boskovits
2019-05-15 14:31 ` Doron Behar
2019-05-15 16:33 ` Amirouche
2019-05-15 16:37 ` Amirouche
2019-05-15 21:26 ` Ricardo Wurmus
2019-05-16 9:30 ` Doron Behar
2019-05-15 9:08 ` pelzflorian (Florian Pelz)
2019-05-15 10:06 ` Doron Behar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190515094629.hcxxxddpgoirwhza@NUC.doronbehar.com \
--to=doron.behar@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).