WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Salvatore LaMendola <salvatore@lamendola.me>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Suggested Debian install instructions patch for the website
Date: Sat, 7 Sep 2019 12:54:23 +0000
Message-ID: <BN7PR04MB5300E9570A3AA9F1A9B82141D4B50@BN7PR04MB5300.namprd04.prod.outlook.com> (raw)

[-- Attachment #1.1: Type: text/plain, Size: 1700 bytes --]

Hello,

On the [install page of the website](https://www.wireguard.com/install/), the default pin config smartly deprioritizes Sid after adding the repository. However, it seems this causes the wireguard packages to be non-upgradable. After speaking with someone on IRC about this, I can't think of a reason why we wouldn't want to be able to upgrade the wireguard packages. So, I'd like to propose the following addition to the pinning configuration written in the instructions (unified diff follows):

==========================

--- orig        2019-09-07 08:43:08.489455140 -0400
+++ new 2019-09-07 08:45:49.056137802 -0400
@@ -1,4 +1,4 @@
# echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list
-# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
+# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n\nPackage: /^wireguard/\nPin: release a=unstable\nPin-Priority: 500\n' > /etc/apt/preferences.d/limit-unstable
# apt update
# apt install wireguard

==========================

This preserves the general priority of 90 for *, but it also sets any package starting with wireguard to 500, which matches the default priority used in the PPAs.

The only reason I chose a regex match here is in case any additional wireguard packages get added later, other than wireguard, wireguard-dkms, and wireguard-tools. Otherwise, the Package line could read:

Package: wireguard wireguard-dkms wireguard-tools

Anyone have any objections to this approach? Also, is there a repo for the website I can fork and PR this to?

Thank you in advance.

--
Salvatore LaMendola


[-- Attachment #1.2: Type: text/html, Size: 4747 bytes --]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Hello,<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
On the [install page of the website](<a href="https://www.wireguard.com/install/">https://www.wireguard.com/install/</a>), the default pin config smartly deprioritizes Sid after adding the repository. However, it seems this causes the wireguard packages to
 be non-upgradable. After speaking with someone on IRC about this, I can't think of a reason why we wouldn't want to be able to upgrade the wireguard packages. So, I'd like to propose the following addition to the pinning configuration written in the instructions
 (unified diff follows):<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
==========================<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
--- orig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2019-09-07 08:43:08.489455140 -0400<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
&#43;&#43;&#43; new 2019-09-07 08:45:49.056137802 -0400<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
@@ -1,4 +1,4 @@<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# echo &quot;deb <a href="http://deb.debian.org/debian">http://deb.debian.org/debian</a>/ unstable main&quot; &gt; /etc/apt/sources.list.d/unstable.list<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
-# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' &gt; /etc/apt/preferences.d/limit-unstable<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
&#43;# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n\nPackage: /^wireguard/\nPin: release a=unstable\nPin-Priority: 500\n' &gt; /etc/apt/preferences.d/limit-unstable<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# apt update<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
# apt install wireguard<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
==========================<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
This preserves the general priority of 90 for *, but it also sets any package starting with wireguard to 500, which matches the default priority used in the PPAs.
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
The only reason I chose a regex match here is in case any additional wireguard packages get added later, other than wireguard, wireguard-dkms, and wireguard-tools. Otherwise, the Package line could read:<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Package: wireguard wireguard-dkms wireguard-tools<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Anyone have any objections to this approach? Also, is there a repo for the website I can fork and PR this to?<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thank you in advance.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
-- <br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Salvatore LaMendola</div>
</span><br>
</div>
</body>
</html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically 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=BN7PR04MB5300E9570A3AA9F1A9B82141D4B50@BN7PR04MB5300.namprd04.prod.outlook.com \
    --to=salvatore@lamendola.me \
    --cc=wireguard@lists.zx2c4.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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox