unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Help with Packaging and Git
@ 2019-12-21 10:01 Raghav Gururajan
  0 siblings, 0 replies; 3+ messages in thread
From: Raghav Gururajan @ 2019-12-21 10:01 UTC (permalink / raw)
  To: help-guix

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

Hello Guix!

I am looking for quick and dirty steps to achieve the following:

Clone Guix Repo --> Create custom branch --> Insert my Package Defs to
gnome.scm --> Perform build and lint --> apply/commit changes -->
generate patch to send to guix.

I am trying to package 2 items as fast as I can, as I do not have much
free time this and following month. But operating with git and guix
lint consuming too much to learn via trial and error. I was hoping if
someone could give me a straight-forward step-by-step instructions to
achieve the above.

Please and thank you.

Regards,
RG.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Help with Packaging and Git
@ 2019-12-21 12:34 Leo Prikler
  2019-12-21 15:16 ` John Soo
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Prikler @ 2019-12-21 12:34 UTC (permalink / raw)
  To: raghavgururajan; +Cc: help-guix

> Clone Guix Repo --> Create custom branch --> Insert my Package Defs
> to
> gnome.scm --> Perform build and lint --> apply/commit changes -->
> generate patch to send to guix.

The workflow I'd suggest is:

1. `git clone https://git.savannah.gnu.org/git/guix.git`
   `git checkout -B custom-branch`
   `git config user.name Raghav Gururajan`
   `git config user.email raghavgururajan@disroot.org`
   [...]*
2. `guix environment --pure guix -- ./bootstrap && ./configure && make`
3. For each pkg you're interested in:
     while pkg does not build[1] or has critical lint errors[2]: 
       `$EDITOR gnu/packages/gnome.scm`
       [`guix environment --pure guix -- make`] 
     `git commit gnu/packages/gnome.scm`
3a. While guix build pkgs or guix lint pkgs fails[3]:
      `$EDITOR gnu/packages/gnome.scm`
      [`guix environment --pure guix -- make`]
    For each pkg in pkgs:
       `git commit gnu/packages/gnome.scm --patch`
       select hunks corresponding to $pkg
4. `git send-email origin/master --to=guix-patches@gnu.org [--compose]`
4a. `git format-patch origin/master`
    Compose message in whichever MUA you're using.

* other helpful git config items:
  `git config sendemail.smtpserver
<whatever>.disroot.org`
  `git config sendemail.smtpencrpytion <disroot
encryption>`
  `git config sendemail.smtpuser raghavgururajan`
  `git
config sendemail.confirm always` (YMMV)

3a and 4a are alternatives to 3 and 4 respectively.  Hope this helps
you.  [Brackets] denote optional steps, although --compose is
recommended if you're sending multiple packages at once.

Regards,
Leo

[1] ./pre-inst-env guix build $pkg
[2] ./pre-inst-env guix lint $pkg -- errors related to SWH or
versioning in case of GNOME may be ignored.  If you want to skip them,
you can do --checkers=description,inputs-should-be-native,inputs-
should-not-be-input,license,mirror-url,source-file-name,source-
unstable-tarball,derivation,patch-file-names,formatting,synopsis,gnu-
description,home-page,source,github-url,cve
[3] expand pkgs into pkg1 pkg2 ... pkgN, where pkgI, 1 <= I <= N, is a
package you've changed in the last iteration.  Alternatively always
build and lint all packages (slower).  At least build and lint all
packages together once at the end if you're going this route.

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

* Re: Help with Packaging and Git
  2019-12-21 12:34 Help with Packaging and Git Leo Prikler
@ 2019-12-21 15:16 ` John Soo
  0 siblings, 0 replies; 3+ messages in thread
From: John Soo @ 2019-12-21 15:16 UTC (permalink / raw)
  To: Leo Prikler; +Cc: raghavgururajan, help-guix

I agree with Leo. My only addition is to make sure you use --localstatedir=/var (or wherever your local state directory is) when running ./configure

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

end of thread, other threads:[~2019-12-21 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-21 12:34 Help with Packaging and Git Leo Prikler
2019-12-21 15:16 ` John Soo
  -- strict thread matches above, loose matches on Subject: below --
2019-12-21 10:01 Raghav Gururajan

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