Github messages for voidlinux
 help / color / mirror / Atom feed
From: yoshiyoshyosh <yoshiyoshyosh@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ufw: update to 0.36.2.
Date: Sun, 13 Aug 2023 02:39:27 +0200	[thread overview]
Message-ID: <20230813003927.BhNDJWzKK8zHsw89BSwmtTup40_KL1kcaDUv0TITnLc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45559@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

There is an updated pull request by yoshiyoshyosh against master on the void-packages repository

https://github.com/yoshiyoshyosh/void-packages ufw
https://github.com/void-linux/void-packages/pull/45559

ufw: update to 0.36.2.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, `x86_64`

A patch file from https://github.com/void-linux/void-packages/pull/45559.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ufw-45559.patch --]
[-- Type: text/x-diff, Size: 2750 bytes --]

From d1d815fcadddb3742608cf5b47158e84f5873549 Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Sat, 12 Aug 2023 00:19:40 -0500
Subject: [PATCH] ufw: update to 0.36.2.

---
 srcpkgs/ufw/patches/fix_build_paths.patch | 22 ++++++++++++++++++++++
 srcpkgs/ufw/template                      | 15 +++++++--------
 2 files changed, 29 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/ufw/patches/fix_build_paths.patch

diff --git a/srcpkgs/ufw/patches/fix_build_paths.patch b/srcpkgs/ufw/patches/fix_build_paths.patch
new file mode 100644
index 0000000000000..14980dbc2661e
--- /dev/null
+++ b/srcpkgs/ufw/patches/fix_build_paths.patch
@@ -0,0 +1,22 @@
+diff --git a/setup.py b/setup.py
+index 1c0e620..6367695 100644
+--- a/setup.py
++++ b/setup.py
+@@ -54,7 +54,7 @@ class Install(_install, object):
+             return
+ 
+         real_confdir = os.path.join('/etc')
+-        real_statedir = os.path.join('/lib', 'ufw')
++        real_statedir = os.path.join('/usr/lib', 'ufw')
+         real_prefix = self.prefix
+         if self.home != None:
+             real_confdir = self.home + real_confdir
+@@ -113,7 +113,7 @@ class Install(_install, object):
+         if self.root != None:
+             prefix = self.root + real_prefix
+ 
+-        script = os.path.join(prefix, 'sbin', 'ufw')
++        script = os.path.join(prefix, 'bin', 'ufw')
+         manpage = os.path.join(prefix, 'share', 'man', 'man8', 'ufw.8')
+         manpage_f = os.path.join(prefix, 'share', 'man', 'man8', \
+                                  'ufw-framework.8')
diff --git a/srcpkgs/ufw/template b/srcpkgs/ufw/template
index 03b0b7b3a2ffe..4d88a828f42d7 100644
--- a/srcpkgs/ufw/template
+++ b/srcpkgs/ufw/template
@@ -1,27 +1,26 @@
 # Template file for 'ufw'
 pkgname=ufw
-version=0.36.1
-revision=3
+version=0.36.2
+revision=1
 _major_minor="${version%.*}"
 build_style=python3-module
 conf_files="
  /etc/ufw/*.conf
  /etc/ufw/*.rules
  /etc/ufw/applications.d/*"
-hostmakedepends="python3-setuptools iptables"
+hostmakedepends="python3-wheel iptables"
 depends="iptables python3"
 short_desc="Uncomplicated Firewall"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-only"
 homepage="https://launchpad.net/ufw"
 distfiles="https://launchpad.net/ufw/${_major_minor}/${version}/+download/ufw-${version}.tar.gz"
-checksum=1c57e78fbf2970f0cc9c56ea87a231e6d83d825e55b9e31e2c88b91b0ea03c8c
+checksum=2a57a99eecef6b44db3537ed2520b30bae3759f8465456e22e404cd643838bf5
 
-pre_configure() {
-	sed -i -e 's|/lib|/usr/lib|' setup.py
-	sed -i -e 's|sbin|bin|' setup.py
-}
+# tests fail with void build paths as well as vague errors on finding profiles
+make_check=no
 
 post_install() {
 	vsv ufw
+	vcompletion ./shell-completion/bash bash
 }

  parent reply	other threads:[~2023-08-13  0:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-12  5:23 [PR PATCH] " yoshiyoshyosh
2023-08-12  6:04 ` yoshiyoshyosh
2023-08-12  6:05 ` yoshiyoshyosh
2023-08-12  6:06 ` yoshiyoshyosh
2023-08-12  6:07 ` yoshiyoshyosh
2023-08-12  6:12 ` yoshiyoshyosh
2023-08-12 14:33 ` yoshiyoshyosh
2023-08-13  0:39 ` yoshiyoshyosh [this message]
2023-08-13  0:44 ` yoshiyoshyosh
2023-08-13  0:44 ` yoshiyoshyosh
2023-08-20 14:30 ` [PR PATCH] [Merged]: " Duncaen

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=20230813003927.BhNDJWzKK8zHsw89BSwmtTup40_KL1kcaDUv0TITnLc@z \
    --to=yoshiyoshyosh@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /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 NNTP newsgroup(s).