all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Katz via <help-guix@gnu.org>
To: "Gábor Boskovits" <boskovits@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Custom wireguard shepherd service
Date: Thu, 12 Mar 2020 12:30:28 +0000	[thread overview]
Message-ID: <XmQXGh1yUNnAEvJIWITxsbyh_olJxcGkztjLpQIRElZjM2BrkkBA_By-SqbskiGIPFMTwWqXL7BcXq3OI7X9SRuoTVmd16eUVGUmumNJZ8o=@protonmail.com> (raw)
In-Reply-To: <CAE4v=pip1KGRguhcM4KmB9B5FGKwBx7zV_KKTrO2W2XSeqfY6w@mail.gmail.com>

Thank you very much g_bor.  I believe you've given me the information I need to make this work.  I think I may be able to get away with regexp substitution for this very simple change.  If you know of an example in the source tree of regexp substitution of the top of your head please let me know, otherwise, I'm sure I'll be able to find an example on my own.

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, March 12, 2020 3:09 AM, Gábor Boskovits <boskovits@gmail.com> wrote:

> Hello Gregory,
>
> Gregory Katz via <help-guix@gnu.org> ezt írta (időpont: 2020. márc. 12., Csü 4:48):
>
>> Hi all,
>>
>> I'm trying to put together a wireguard shepherd service that operates similar to the current nftables service, i.e., the service works by running a utility program (in this case a shell script called wg-quick) with a configuration file.  Unfortunately, wg-quick, which is included in the wireguard-tools package, does not work with files interred by guix (the file names are too long).  To make it work, I have to patch wg-quick.
>>
>> Can anyone point me to where I can read up on how to apply a patch during the wireguard-tools build process?
>
> You can run a search against the keyword search-patches in a package module to see how patches are included in a package definition. If the patch only does simple regexp substitution, you can also consider using a phase with substitute*. There are a lot of packages using that. If you need to have a patch, then you should add it to the gnu/packages/patches directory, and also to the local.mk file patches variable, so that the build picks it up. You can search the git log for adding or removing a patch, so that you see how it is done.
>
>> Thanks very much for the help,
>>
>> Greg
>>
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
> Best regards,
> g_bor

  reply	other threads:[~2020-03-12 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-12  3:24 Custom wireguard shepherd service Gregory Katz via
2020-03-12  7:09 ` Gábor Boskovits
2020-03-12 12:30   ` Gregory Katz via [this message]
2020-03-12 12:39     ` Gábor Boskovits

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='XmQXGh1yUNnAEvJIWITxsbyh_olJxcGkztjLpQIRElZjM2BrkkBA_By-SqbskiGIPFMTwWqXL7BcXq3OI7X9SRuoTVmd16eUVGUmumNJZ8o=@protonmail.com' \
    --to=help-guix@gnu.org \
    --cc=boskovits@gmail.com \
    --cc=gregkatz@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.
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.