GNU bug report logs - #25977
[PATCH 0/3] Updater for netfilter.org.

Previous Next

Package: guix-patches;

Reported by: Marius Bakke <mbakke <at> fastmail.com>

Date: Sun, 5 Mar 2017 15:56:02 UTC

Severity: normal

Tags: moreinfo, patch

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25977 in the body.
You can then email your comments to 25977 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#25977; Package guix-patches. (Sun, 05 Mar 2017 15:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marius Bakke <mbakke <at> fastmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 05 Mar 2017 15:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: guix-patches <at> gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH 0/3] Updater for netfilter.org.
Date: Sun,  5 Mar 2017 16:54:54 +0100
Hello!

These three patches make it possible to use `guix refresh` to update
iptables (with signature verification etc).

It seems overkill to have a full updater for a single package, although
the latest iptables version require a few other packages from
netfilter.org.

Tips for how to generalize this welcome!

Marius Bakke (3):
  guix: Add updater for netfilter.org.
  download: Add netfilter mirror.
  gnu: iptables: Use netfilter mirror.

 doc/guix.texi            |  2 ++
 gnu/packages/linux.scm   |  2 +-
 guix/download.scm        |  5 +++++
 guix/gnu-maintenance.scm | 17 +++++++++++++++++
 guix/scripts/refresh.scm |  4 +++-
 5 files changed, 28 insertions(+), 2 deletions(-)

-- 
2.12.0





Information forwarded to guix-patches <at> gnu.org:
bug#25977; Package guix-patches. (Sun, 05 Mar 2017 15:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 25977 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: 25977 <at> debbugs.gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH 1/3] guix: Add updater for netfilter.org.
Date: Sun,  5 Mar 2017 16:56:51 +0100
* guix/gnu-maintenance.scm (latest-netfilter.org-release,
%netfilter.org-updater): New variables.
* doc/guix.texi (Invoking guix refresh): Mention it.
---
 doc/guix.texi            |  2 ++
 guix/gnu-maintenance.scm | 17 +++++++++++++++++
 guix/scripts/refresh.scm |  4 +++-
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 7c7729859..3507ee38f 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5525,6 +5525,8 @@ the updater for GNOME packages;
 the updater for KDE packages;
 @item xorg
 the updater for X.org packages;
+@item netfilter.org
+the updater for packages hosted on netfilter.org;
 @item kernel.org
 the updater for packages hosted on kernel.org;
 @item elpa
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index 07e690964..e405dac88 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -61,6 +61,7 @@
             %gnome-updater
             %kde-updater
             %xorg-updater
+            %netfilter.org-updater
             %kernel.org-updater))
 
 ;;; Commentary:
@@ -540,6 +541,15 @@ source URLs starts with PREFIX."
       #:directory
       (string-append "/pub/xorg/" (dirname (uri-path uri)))))))
 
+(define (latest-netfilter.org-release package)
+  "Return the latest release of PACKAGE, the name of a netfilter.org package."
+  (let ((uri (string->uri (origin-uri (package-source package)))))
+    (false-if-ftp-error
+     (latest-ftp-release
+      (package-name package)
+      #:server "ftp.netfilter.org"
+      #:directory (string-append "/pub" (dirname (uri-path uri)))))))
+
 (define (latest-kernel.org-release package)
   "Return the latest release of PACKAGE, the name of a kernel.org package."
   (let ((uri (string->uri (origin-uri (package-source package)))))
@@ -584,6 +594,13 @@ source URLs starts with PREFIX."
    (pred (url-prefix-predicate "mirror://xorg/"))
    (latest latest-xorg-release)))
 
+(define %netfilter.org-updater
+  (upstream-updater
+   (name 'netfilter.org)
+   (description "Updater for packages hosted on netfilter.org")
+   (pred (url-prefix-predicate "mirror://netfilter.org/"))
+   (latest latest-netfilter.org-release)))
+
 (define %kernel.org-updater
   (upstream-updater
    (name 'kernel.org)
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index 4d3c695aa..4c5ec6c77 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -36,6 +36,7 @@
                           %gnome-updater
                           %kde-updater
                           %xorg-updater
+                          %netfilter.org-updater
                           %kernel.org-updater))
   #:use-module (guix import elpa)
   #:use-module (guix import cran)
@@ -211,7 +212,8 @@ unavailable optional dependencies such as Guile-JSON."
                  ((guix import pypi) => %pypi-updater)
                  ((guix import gem) => %gem-updater)
                  ((guix import github) => %github-updater)
-                 ((guix import crate) => %crate-updater)))
+                 ((guix import crate) => %crate-updater)
+                 %netfilter.org-updater))
 
 (define (lookup-updater-by-name name)
   "Return the updater called NAME."
-- 
2.12.0





Information forwarded to guix-patches <at> gnu.org:
bug#25977; Package guix-patches. (Sun, 05 Mar 2017 15:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 25977 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: 25977 <at> debbugs.gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH 2/3] download: Add netfilter mirror.
Date: Sun,  5 Mar 2017 16:56:52 +0100
* guix/download.scm (%mirrors): Add mirrors for www.netfilter.org.
---
 guix/download.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/guix/download.scm b/guix/download.scm
index 86f859881..33870e8ba 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -124,6 +124,11 @@
        "http://tenet.dl.sourceforge.net/project/"
        "http://vorboss.dl.sourceforge.net/project/"
        "http://netassist.dl.sourceforge.net/project/")
+      (netfilter.org ; https://www.netfilter.org/mirrors.html
+       "http://ftp.netfilter.org/pub/"
+       "ftp://ftp.es.netfilter.org/mirrors/netfilter/"
+       "ftp://ftp.hu.netfilter.org/"
+       "ftp://www.lt.netfilter.org/pub/")
       (kernel.org
        "http://www.all.kernel.org/pub/"
        "http://ramses.wh2.tu-dresden.de/pub/mirrors/kernel.org/"
-- 
2.12.0





Information forwarded to guix-patches <at> gnu.org:
bug#25977; Package guix-patches. (Sun, 05 Mar 2017 15:57:02 GMT) Full text and rfc822 format available.

Message #14 received at 25977 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: 25977 <at> debbugs.gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH 3/3] gnu: iptables: Use netfilter mirror.
Date: Sun,  5 Mar 2017 16:56:53 +0100
* gnu/packages/linux.scm (iptables)[source]: Download from mirror.
---
 gnu/packages/linux.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6e08473ec..a156455fb 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1018,7 +1018,7 @@ external rate conversion.")
     (source (origin
              (method url-fetch)
              (uri (string-append
-                   "http://www.netfilter.org/projects/iptables/files/iptables-"
+                   "mirror://netfilter.org/iptables/iptables-"
                    version ".tar.bz2"))
              (sha256
               (base32
-- 
2.12.0





Information forwarded to guix-patches <at> gnu.org:
bug#25977; Package guix-patches. (Tue, 07 Mar 2017 17:09:01 GMT) Full text and rfc822 format available.

Message #17 received at 25977 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 25977 <at> debbugs.gnu.org
Subject: Re: bug#25977: [PATCH 0/3] Updater for netfilter.org.
Date: Tue, 07 Mar 2017 18:07:55 +0100
Hi Marius!

Marius Bakke <mbakke <at> fastmail.com> skribis:

> These three patches make it possible to use `guix refresh` to update
> iptables (with signature verification etc).

Cool!

> It seems overkill to have a full updater for a single package, although
> the latest iptables version require a few other packages from
> netfilter.org.
>
> Tips for how to generalize this welcome!

I was thinking we could have a generic FTP updater (rather
FTP-with-signature updater).  It would match packages whose source is
fetched over ftp already, or packages that have a special 'ftp-url
property, say.

How does that sound?

In the meantime your 3 patches LGTM.  You can definitely apply #2 and
#3; as for #1, I think it’s fine, and we can always remove it when we
have a more generic updater.

Thanks!

Ludo’.




Added tag(s) moreinfo. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 13 Mar 2017 13:10:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25977 <at> debbugs.gnu.org and Marius Bakke <mbakke <at> fastmail.com> Request was from Marius Bakke <mbakke <at> fastmail.com> to control <at> debbugs.gnu.org. (Tue, 22 Aug 2017 21:49:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Sep 2017 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.