From: Sarah Morgensen <iskarian@mgsn.dev>
To: phodina <phodina@protonmail.com>
Cc: help-guix@gnu.org
Subject: Re: Apply patch to read-only file
Date: Mon, 27 Sep 2021 21:47:14 -0700 [thread overview]
Message-ID: <861r59ux0t.fsf@mgsn.dev> (raw)
In-Reply-To: phodina@protonmail.com's message of "Mon, 27 Sep 2021 22:57:16 +0000"
Hello Petr,
phodina <phodina@protonmail.com> writes:
> Hi Guillaume,
>
> Sure, here's the formatted file. My appology for the issue with the mail client.
>
> --8<---------------cut here---------------start------------->8---
>
> (define-module (realmd)
> #:use-module (guix packages)
> #:use-module (gnu packages)
> #:use-module (gnu packages image)
> #:use-module (gnu packages glib)
> #:use-module (gnu packages autotools)
> #:use-module (gnu packages pkg-config)
> #:use-module (gnu packages polkit)
> #:use-module (guix git-download)
> #:use-module (guix build-system gnu)
> #:use-module ((guix licenses) #:prefix license:))
>
> (define-public realmd
> (package
> (name "realmd")
> (version "0.17.0")
> (source (origin
> (method git-fetch)
> (uri (git-reference
> (url "https://github.com/freedesktop/realmd")
> (commit version)))
> (file-name (git-file-name name version))
> (modules '((guix build utils)))
> (snippet
> '(begin
> (delete-file "configure.ac")
> ;(make-file-writable "configure.ac")
> #t))
> (patches '("endgame/packages/patches/realmd-guixsd-support.patch"))
> (sha256
> (base32
> "1c6q2a86kk2f1akzc36nh52hfwsmmc0mbp6ayyjxj4zsyk9zx5bf"))))
> (build-system gnu-build-system)
> (arguments
> `(#:phases
> (modify-phases %standard-phases
> (add-after 'unpack 'make-git-checkout-writable
> (lambda* (#:key inputs #:allow-other-keys)
> (make-file-writable "configure.ac"))
> (add-after 'unpack 'apply-patches
> (for-each
> (lambda (file)
> (invoke "patch" "--force" "-p1" "-input" "endgame/packages/patches/realmd-guixsd-support.patch"))))
> ))))
>
> ; gnuzilla.scm
> ; jami.scm
> (native-inputs `(("pkg-config" ,pkg-config)
> ("autoconf" ,autoconf)
> ("intltool" ,intltool)
> ("automake" ,automake)))
> (inputs `(("glib" ,glib)
> ("polkit" ,polkit)))
> (synopsis "DBus service for configuring kerberos and other online identities")
> (description "Dbus system service that manages discovery and enrollment
> in realms/domains like Active Directory or IPA.")
> (home-page "https://www.freedesktop.org/software/realmd/")
> (license license:lgpl2.1)))
Is the issue maybe from deleting "configure.ac" in the snippet, then
trying to modify its permissions in 'make-git-checkout-writable'?
--
Sarah
next reply other threads:[~2021-09-28 4:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 4:47 Sarah Morgensen [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-16 7:49 Apply patch to read-only file phodina via
2021-09-25 12:08 ` Guillaume Le Vaillant
2021-09-27 22:57 ` phodina
2021-09-29 8:42 ` Guillaume Le Vaillant
2021-10-02 19:49 ` phodina
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=861r59ux0t.fsf@mgsn.dev \
--to=iskarian@mgsn.dev \
--cc=help-guix@gnu.org \
--cc=phodina@protonmail.com \
/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).