From: phodina <phodina@protonmail.com>
To: Guillaume Le Vaillant <glv@posteo.net>
Cc: help-guix@gnu.org, Sarah Morgensen <iskarian@mgsn.dev>
Subject: Re: Apply patch to read-only file
Date: Sat, 02 Oct 2021 19:49:14 +0000 [thread overview]
Message-ID: <smso9OSH9o0I6YsRHM-0rmibmCe2F999YIN-08cCpwYNIA4sJMOOK27AvchnSb_7tdyDwHhzHe6HRCcuQvTv5KSaZS2gUKM-y5nVjerdWfs=@protonmail.com> (raw)
In-Reply-To: <8735pn4v6e.fsf@kitej>
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
Hi Guillaume,
On Wednesday, September 29th, 2021 at 10:42 AM, Guillaume Le Vaillant <glv@posteo.net> wrote:
> Hi,
>
> I tried with simplified versions of your package definition and patch,
>
> and it builds fine for me. The patch gets applied successfully.
>
Thanks for the help and the package definition. I also managed to figure out what went wrong - I created the patch on master and attempted to patch 0.17.0.
The only other issue I had was with the xmlto, where I attempted to use local validation using docbook-xml based on example provided in gnu/packages/gnome.scm. See the attached file.
However, I gave up and also used the --disable-docs flag.
> However I haven't tried using the program to see if it works.
Well, that's another issue.
- It needs correct config file
- There has to be a service running. So I'll look into that now.
Thanks and have a nice day
Petr
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: realmd.scm --]
[-- Type: text/x-scheme; name=realmd.scm, Size: 3034 bytes --]
(define-module (endgame packages realmd)
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages openldap)
#:use-module (gnu packages glib)
#:use-module (gnu packages docbook)
#:use-module (gnu packages autotools)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages polkit)
#:use-module (gnu packages xml)
#: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))
(patches '("endgame/packages/patches/realmd-remove-distro-detection.patch"))
(sha256
(base32
"1c6q2a86kk2f1akzc36nh52hfwsmmc0mbp6ayyjxj4zsyk9zx5bf"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags (list "--with-systemd-unit-dir=no" "--with-systemd-journal=no" "--disable-doc")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'xml-validation
(lambda* (#:key inputs #:allow-other-keys)
(let ((local (string-append (assoc-ref inputs "docbook-xml") "/xml/dtd/docbook")))
; substitute in order to validate locally due to network restriction
(substitute* "doc/internals/realmd-internals.xml"
(("http://.*/xml/4.3") local))
(substitute* "doc/manual/realm.xml"
(("http://.*/xml/4.2") local))
(substitute* "doc/manual/realmd.conf.xml"
(("http://.*/xml/4.2") local))
(substitute* "doc/manual/realmd-docs.xml"
(("http://.*/xml/4.3") local))
(substitute* "doc/manual/realmd-guide-active-directory.xml"
(("http://.*/xml/4.3") local))
(substitute* "doc/manual/realmd-guide-ipa.xml"
(("http://.*/xml/4.3") local))
(substitute* "./doc/manual/realmd-guide-kerberos.xml"
(("http://.*/xml/4.3") local))#t))))))
(native-inputs `(("pkg-config" ,pkg-config)
("autoconf" ,autoconf)
("intltool" ,intltool)
("libxslt" ,libxslt)
("xmlto" ,xmlto)
("python" ,python)
("docbook-xml" ,docbook-xml)
("automake" ,automake)))
(inputs `(("glib" ,glib "bin")
("dbus" ,dbus)
("mit-krb5" ,mit-krb5)
("openldap" ,openldap)
("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)))
next prev parent reply other threads:[~2021-10-02 19:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-28 4:47 Sarah Morgensen
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='smso9OSH9o0I6YsRHM-0rmibmCe2F999YIN-08cCpwYNIA4sJMOOK27AvchnSb_7tdyDwHhzHe6HRCcuQvTv5KSaZS2gUKM-y5nVjerdWfs=@protonmail.com' \
--to=phodina@protonmail.com \
--cc=glv@posteo.net \
--cc=help-guix@gnu.org \
--cc=iskarian@mgsn.dev \
/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).