all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Eure <ian@retrospec.tv>
To: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
Cc: help-guix@gnu.org
Subject: Re: Packaging Proton Bridge: Progress Report #1
Date: Mon, 09 Dec 2024 11:33:16 -0800	[thread overview]
Message-ID: <87ttbc8xdv.fsf@retrospec.tv> (raw)
In-Reply-To: <6002705.MhkbZ0Pkbq@aisaka> ("Marek Paśnikowski"'s message of "Mon, 09 Dec 2024 20:15:07 +0100")

Hi Marek,

Marek Paśnikowski <marek@marekpasnikowski.pl> writes:

> I copied and extended the invocation of "make" from the 
> gnu-build-system:
> (arguments
>   (list
>     #:phases '(modify-phases
>                %standard-phases
>                (add-before
>                  'build
>                  'make-project
>                  (lambda*
>                    (#:key (make-flags (list "build-nogui"))
>                           (parallel-build? #t)
>                     #:allow-other-keys)
>                    (invoke "find"
>                            "."
>                            "-name"
>                            "Makefile")
>                    (invoke "ls"
>                            "-al"
>                            "./src/github.com/ProtonMail/proton-bridge/v3")
>
>                    (apply invoke
>                           "make"
>                           "-e"
>                           "-C"
>                           "./src/github.com/ProtonMail/proton-bridge/v3"
>                           "--debug=basic"
>                           `(,@(if parallel-build?
>                                 `("-j" ,(number->string 
>                                 (parallel-job-count)))
>                                 '())
>                            ,@make-flags)))))
>     #:embed-files '(list "children" "nodes" "text")
>     #:unpack-path "github.com/ProtonMail/proton-bridge/v3"
>     #:import-path 
>     "github.com/ProtonMail/proton-bridge/v3/cmd/Desktop-
> Bridge"))
>
> I am getting some kind of progress, pasted below.  Before 
> continuing, I would
> appreciate confirmation whether I am on the right track.
>

You don’t need to copy anything from gnu-build-system, so your 
approach is unnecessarily complicated and duplicates work 
go-build-system needs to do.  Replace the lambda in that phase 
with a (lambda _) which calls:

    (invoke "make" "gofiles")

Or:

    (with-directory-excursion "utils" (invoke "./credits.sh" 
    "bridge"))

...which is what the Makefile runs to generate the credits source.

  -- Ian


  reply	other threads:[~2024-12-09 19:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-30 16:26 Packaging Proton Bridge: cryptic compilation failure Marek Paśnikowski
2024-11-30 17:29 ` Ian Eure
2024-11-30 18:08 ` Cayetano Santos
2024-11-30 18:56   ` Marek Paśnikowski
2024-11-30 19:22     ` Ian Eure
2024-12-05 16:37       ` sebastien
2024-12-06 13:34         ` woshilapin
2024-12-06 18:01         ` Marek Paśnikowski
2024-12-09 16:24 ` Packaging Proton Bridge: Progress Report #1 Marek Paśnikowski
2024-12-09 16:38   ` Ian Eure
2024-12-09 16:47     ` Marek Paśnikowski
2024-12-09 16:52       ` Ian Eure
2024-12-09 19:15         ` Marek Paśnikowski
2024-12-09 19:33           ` Ian Eure [this message]
2024-12-10 10:28 ` Packaging Proton Bridge: Progress Report #2 Marek Paśnikowski
2024-12-10 14:08   ` Suhail Singh

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttbc8xdv.fsf@retrospec.tv \
    --to=ian@retrospec.tv \
    --cc=help-guix@gnu.org \
    --cc=marek@marekpasnikowski.pl \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.