Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] crda: update to 4.14
@ 2021-02-08 12:32 edersohe
  2021-02-09  1:34 ` [PR REVIEW] " ericonr
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: edersohe @ 2021-02-08 12:32 UTC (permalink / raw)
  To: ml

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

There is a new pull request by edersohe against master on the void-packages repository

https://github.com/edersohe/void-packages crda-branch
https://github.com/void-linux/void-packages/pull/28580

crda: update to 4.14
update packages 

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From eb9f00e1fe68b59462fd348587f3be4ac73db66b Mon Sep 17 00:00:00 2001
From: Eder Sosa <edersohe@github.com>
Date: Mon, 8 Feb 2021 06:27:47 -0600
Subject: [PATCH] crda: update to 4.14

crda-4.14
wireless-regdb-2020.12.20

fix error messages like

[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
---
 srcpkgs/crda/files/set-wireless-regdom |  5 ---
 srcpkgs/crda/template                  | 42 +++++++-------------------
 2 files changed, 11 insertions(+), 36 deletions(-)
 delete mode 100644 srcpkgs/crda/files/set-wireless-regdom

diff --git a/srcpkgs/crda/files/set-wireless-regdom b/srcpkgs/crda/files/set-wireless-regdom
deleted file mode 100644
index 0a857d974ea..00000000000
--- a/srcpkgs/crda/files/set-wireless-regdom
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-unset WIRELESS_REGDOM
-. /etc/wireless-regdom.conf
-[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}
diff --git a/srcpkgs/crda/template b/srcpkgs/crda/template
index 59ebaf7d24c..ba0c594516f 100644
--- a/srcpkgs/crda/template
+++ b/srcpkgs/crda/template
@@ -1,9 +1,9 @@
 # Template file for 'crda'
 pkgname=crda
-version=3.18
-revision=5
+version=4.14
+revision=1
 _dbname=wireless-regdb
-_dbversion=2016.06.10
+_dbversion=2020.11.20
 _dbsrc="${XBPS_BUILDDIR}/${_dbname}-${_dbversion}/"
 hostmakedepends="libressl python python-M2Crypto pkg-config"
 makedepends="libnl-devel libgcrypt-devel"
@@ -11,48 +11,28 @@ depends="iw"
 short_desc="Central Regulatory Domain Agent for wireless networks"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="ISC"
-homepage="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
-distfiles="https://kernel.org/pub/software/network/crda/${pkgname}-${version}.tar.xz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
-checksum="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf
-cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
-conf_files="/etc/wireless-regdom.conf"
-
-build_options="wardrive"
-desc_option_wardrive="Disable CRDA checks for wardriving competitions"
-
-post_extract() {
-	if [ "$build_option_wardrive" ]; then
-		sed -i 's/([0-9][0-9])/(33)/g' ${_dbsrc}/db.txt # Max 2W =~ 33dBm
-	fi
-}
+homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda"
+distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/${pkgname}-${version}.tar.gz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
+checksum="5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2
+ b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52"
 
 do_build() {
 	CFLAGS+=" -Wno-unused-const-variable"
 	cd ${_dbsrc}
 	make
-	cp *.pem ${wrksrc}/pubkeys
+	cp *.pub.pem ${wrksrc}/pubkeys
 
 	cd ${wrksrc}
-
 	make CC="$CC" all_noverify
 }
 
 do_install() {
 	make DESTDIR="${DESTDIR}" SBINDIR="/usr/bin/" UDEV_RULE_DIR="/usr/lib/udev/rules.d/" install
-	vlicense LICENSE
+	vlicense LICENSE LICENSE.crda
 
 	cd ${_dbsrc}
-	vmkdir usr/lib/crda/
-	vinstall regulatory.bin 644 usr/lib/crda/
-	vmkdir etc/conf.d/
-	for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
-		echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${DESTDIR}/etc/wireless-regdom.tmp
-	done
-	sort -u ${DESTDIR}/etc/wireless-regdom.tmp >> ${DESTDIR}/etc/wireless-regdom.conf
-	rm ${DESTDIR}/etc/wireless-regdom.tmp
-
-	vbin ${FILESDIR}/set-wireless-regdom
-	echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
+	make DESTDIR="${DESTDIR}" FIRMWARE_PATH="/usr/lib/firmware" install
+	vlicense LICENSE LICENSE.wireless-regdb
 
 	find ${DESTDIR} -type f -name \*.h -delete # No need for devel files, no package i know uses libreg.so
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
@ 2021-02-09  1:34 ` ericonr
  2021-02-09  5:37 ` [PR PATCH] [Updated] " edersohe
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-02-09  1:34 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#discussion_r572502580

Comment:
Please split these into two lines/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
  2021-02-09  1:34 ` [PR REVIEW] " ericonr
@ 2021-02-09  5:37 ` edersohe
  2021-02-09  6:52 ` edersohe
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-09  5:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/edersohe/void-packages crda-branch
https://github.com/void-linux/void-packages/pull/28580

crda: update to 4.14
update packages 

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From f1b8990752579f2cf4e3609d3b48d6123bc2a91e Mon Sep 17 00:00:00 2001
From: Eder Sosa <edersohe@github.com>
Date: Mon, 8 Feb 2021 06:27:47 -0600
Subject: [PATCH] update packages

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999
---
 srcpkgs/crda/template | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/srcpkgs/crda/template b/srcpkgs/crda/template
index 59ebaf7d24c..56912cf3116 100644
--- a/srcpkgs/crda/template
+++ b/srcpkgs/crda/template
@@ -1,9 +1,9 @@
 # Template file for 'crda'
 pkgname=crda
-version=3.18
-revision=5
+version=4.14
+revision=1
 _dbname=wireless-regdb
-_dbversion=2016.06.10
+_dbversion=2020.11.20
 _dbsrc="${XBPS_BUILDDIR}/${_dbname}-${_dbversion}/"
 hostmakedepends="libressl python python-M2Crypto pkg-config"
 makedepends="libnl-devel libgcrypt-devel"
@@ -11,10 +11,11 @@ depends="iw"
 short_desc="Central Regulatory Domain Agent for wireless networks"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="ISC"
-homepage="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
-distfiles="https://kernel.org/pub/software/network/crda/${pkgname}-${version}.tar.xz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
-checksum="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf
-cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda"
+distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/${pkgname}-${version}.tar.gz
+https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
+checksum="5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2
+ b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52"
 conf_files="/etc/wireless-regdom.conf"
 
 build_options="wardrive"
@@ -30,21 +31,22 @@ do_build() {
 	CFLAGS+=" -Wno-unused-const-variable"
 	cd ${_dbsrc}
 	make
-	cp *.pem ${wrksrc}/pubkeys
+	cp *.pub.pem ${wrksrc}/pubkeys
 
 	cd ${wrksrc}
-
 	make CC="$CC" all_noverify
 }
 
 do_install() {
 	make DESTDIR="${DESTDIR}" SBINDIR="/usr/bin/" UDEV_RULE_DIR="/usr/lib/udev/rules.d/" install
-	vlicense LICENSE
+	vlicense LICENSE crda.LICENSE
 
 	cd ${_dbsrc}
-	vmkdir usr/lib/crda/
-	vinstall regulatory.bin 644 usr/lib/crda/
+	make DESTDIR="${DESTDIR}" FIRMWARE_PATH="/usr/lib/firmware" install
+	vlicense LICENSE wireless-regdb.LICENSE
+
 	vmkdir etc/conf.d/
+
 	for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
 		echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${DESTDIR}/etc/wireless-regdom.tmp
 	done
@@ -52,7 +54,7 @@ do_install() {
 	rm ${DESTDIR}/etc/wireless-regdom.tmp
 
 	vbin ${FILESDIR}/set-wireless-regdom
-	echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
+	echo 'ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
 
 	find ${DESTDIR} -type f -name \*.h -delete # No need for devel files, no package i know uses libreg.so
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
  2021-02-09  1:34 ` [PR REVIEW] " ericonr
  2021-02-09  5:37 ` [PR PATCH] [Updated] " edersohe
@ 2021-02-09  6:52 ` edersohe
  2021-02-09  6:53 ` [PR REVIEW] " edersohe
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-09  6:52 UTC (permalink / raw)
  To: ml

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

New comment by edersohe on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#issuecomment-775715415

Comment:
> Please explain in the commit message why you are removing the `set-wireless-regdom` script and the `wardrive` build option.
> 
> @thypon

I changed the pull request to support `wardrive` build option and `set-wireless-regdom`  through udev rule

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (2 preceding siblings ...)
  2021-02-09  6:52 ` edersohe
@ 2021-02-09  6:53 ` edersohe
  2021-02-10  7:45 ` [PR PATCH] [Updated] " edersohe
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-09  6:53 UTC (permalink / raw)
  To: ml

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

New review comment by edersohe on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#discussion_r572633708

Comment:
done

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (3 preceding siblings ...)
  2021-02-09  6:53 ` [PR REVIEW] " edersohe
@ 2021-02-10  7:45 ` edersohe
  2021-02-10  7:51 ` edersohe
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-10  7:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/edersohe/void-packages crda-branch
https://github.com/void-linux/void-packages/pull/28580

crda: update to 4.14
update packages 

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 2af3b19e5a5b5ffca264bea8706bd709d776ffd2 Mon Sep 17 00:00:00 2001
From: Eder Sosa <edersohe@github.com>
Date: Mon, 8 Feb 2021 06:27:47 -0600
Subject: [PATCH] update packages

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999 and

```
[    6.917367] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.920611] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
```
---
 srcpkgs/crda/template | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/srcpkgs/crda/template b/srcpkgs/crda/template
index 59ebaf7d24c..45d4bac0602 100644
--- a/srcpkgs/crda/template
+++ b/srcpkgs/crda/template
@@ -1,9 +1,9 @@
 # Template file for 'crda'
 pkgname=crda
-version=3.18
-revision=5
+version=4.14
+revision=1
 _dbname=wireless-regdb
-_dbversion=2016.06.10
+_dbversion=2020.11.20
 _dbsrc="${XBPS_BUILDDIR}/${_dbname}-${_dbversion}/"
 hostmakedepends="libressl python python-M2Crypto pkg-config"
 makedepends="libnl-devel libgcrypt-devel"
@@ -11,10 +11,11 @@ depends="iw"
 short_desc="Central Regulatory Domain Agent for wireless networks"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="ISC"
-homepage="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
-distfiles="https://kernel.org/pub/software/network/crda/${pkgname}-${version}.tar.xz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
-checksum="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf
-cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda"
+distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/${pkgname}-${version}.tar.gz
+https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
+checksum="5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2
+ b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52"
 conf_files="/etc/wireless-regdom.conf"
 
 build_options="wardrive"
@@ -29,22 +30,22 @@ post_extract() {
 do_build() {
 	CFLAGS+=" -Wno-unused-const-variable"
 	cd ${_dbsrc}
-	make
-	cp *.pem ${wrksrc}/pubkeys
+	cp *.pub.pem ${wrksrc}/pubkeys
 
 	cd ${wrksrc}
-
 	make CC="$CC" all_noverify
 }
 
 do_install() {
 	make DESTDIR="${DESTDIR}" SBINDIR="/usr/bin/" UDEV_RULE_DIR="/usr/lib/udev/rules.d/" install
-	vlicense LICENSE
+	vlicense LICENSE crda.LICENSE
 
 	cd ${_dbsrc}
-	vmkdir usr/lib/crda/
-	vinstall regulatory.bin 644 usr/lib/crda/
+	make DESTDIR="${DESTDIR}" FIRMWARE_PATH="/usr/lib/firmware" install
+	vlicense LICENSE wireless-regdb.LICENSE
+
 	vmkdir etc/conf.d/
+
 	for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
 		echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${DESTDIR}/etc/wireless-regdom.tmp
 	done
@@ -52,7 +53,7 @@ do_install() {
 	rm ${DESTDIR}/etc/wireless-regdom.tmp
 
 	vbin ${FILESDIR}/set-wireless-regdom
-	echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
+	echo 'ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
 
 	find ${DESTDIR} -type f -name \*.h -delete # No need for devel files, no package i know uses libreg.so
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (4 preceding siblings ...)
  2021-02-10  7:45 ` [PR PATCH] [Updated] " edersohe
@ 2021-02-10  7:51 ` edersohe
  2021-02-10  7:52 ` edersohe
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-10  7:51 UTC (permalink / raw)
  To: ml

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

New comment by edersohe on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#issuecomment-776515333

Comment:
now the build avoid resign with a new self signed cert that cause messages like

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (5 preceding siblings ...)
  2021-02-10  7:51 ` edersohe
@ 2021-02-10  7:52 ` edersohe
  2021-02-10 12:41 ` ericonr
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-10  7:52 UTC (permalink / raw)
  To: ml

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

New comment by edersohe on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#issuecomment-776515333

Comment:
now the build avoid re-sign with a new self signed cert that causes messages like

```
[    6.920611] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (6 preceding siblings ...)
  2021-02-10  7:52 ` edersohe
@ 2021-02-10 12:41 ` ericonr
  2021-02-10 14:51 ` [PR PATCH] [Updated] " edersohe
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-02-10 12:41 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#issuecomment-776680305

Comment:
Ah, please also fix the commit message. The title should be the same as the PR title.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (7 preceding siblings ...)
  2021-02-10 12:41 ` ericonr
@ 2021-02-10 14:51 ` edersohe
  2021-02-10 15:01 ` edersohe
  2021-02-25 20:08 ` [PR PATCH] [Merged]: " ericonr
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-10 14:51 UTC (permalink / raw)
  To: ml

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

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

https://github.com/edersohe/void-packages crda-branch
https://github.com/void-linux/void-packages/pull/28580

crda: update to 4.14
update packages 

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999 and

```
[    6.917367] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.920611] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
```

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 49b6ed088f71d6b0825869e1ed7dd92a03b1123b Mon Sep 17 00:00:00 2001
From: Eder Sosa <edersohe@github.com>
Date: Mon, 8 Feb 2021 06:27:47 -0600
Subject: [PATCH] crda: update to 4.14 #28580

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999 and

```
[    6.917367] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.920611] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
```
---
 srcpkgs/crda/template | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/srcpkgs/crda/template b/srcpkgs/crda/template
index 59ebaf7d24c..45d4bac0602 100644
--- a/srcpkgs/crda/template
+++ b/srcpkgs/crda/template
@@ -1,9 +1,9 @@
 # Template file for 'crda'
 pkgname=crda
-version=3.18
-revision=5
+version=4.14
+revision=1
 _dbname=wireless-regdb
-_dbversion=2016.06.10
+_dbversion=2020.11.20
 _dbsrc="${XBPS_BUILDDIR}/${_dbname}-${_dbversion}/"
 hostmakedepends="libressl python python-M2Crypto pkg-config"
 makedepends="libnl-devel libgcrypt-devel"
@@ -11,10 +11,11 @@ depends="iw"
 short_desc="Central Regulatory Domain Agent for wireless networks"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="ISC"
-homepage="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
-distfiles="https://kernel.org/pub/software/network/crda/${pkgname}-${version}.tar.xz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
-checksum="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf
-cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda"
+distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/${pkgname}-${version}.tar.gz
+https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
+checksum="5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2
+ b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52"
 conf_files="/etc/wireless-regdom.conf"
 
 build_options="wardrive"
@@ -29,22 +30,22 @@ post_extract() {
 do_build() {
 	CFLAGS+=" -Wno-unused-const-variable"
 	cd ${_dbsrc}
-	make
-	cp *.pem ${wrksrc}/pubkeys
+	cp *.pub.pem ${wrksrc}/pubkeys
 
 	cd ${wrksrc}
-
 	make CC="$CC" all_noverify
 }
 
 do_install() {
 	make DESTDIR="${DESTDIR}" SBINDIR="/usr/bin/" UDEV_RULE_DIR="/usr/lib/udev/rules.d/" install
-	vlicense LICENSE
+	vlicense LICENSE crda.LICENSE
 
 	cd ${_dbsrc}
-	vmkdir usr/lib/crda/
-	vinstall regulatory.bin 644 usr/lib/crda/
+	make DESTDIR="${DESTDIR}" FIRMWARE_PATH="/usr/lib/firmware" install
+	vlicense LICENSE wireless-regdb.LICENSE
+
 	vmkdir etc/conf.d/
+
 	for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
 		echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${DESTDIR}/etc/wireless-regdom.tmp
 	done
@@ -52,7 +53,7 @@ do_install() {
 	rm ${DESTDIR}/etc/wireless-regdom.tmp
 
 	vbin ${FILESDIR}/set-wireless-regdom
-	echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
+	echo 'ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> ${DESTDIR}/usr/lib/udev/rules.d/85-regulatory.rules
 
 	find ${DESTDIR} -type f -name \*.h -delete # No need for devel files, no package i know uses libreg.so
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (8 preceding siblings ...)
  2021-02-10 14:51 ` [PR PATCH] [Updated] " edersohe
@ 2021-02-10 15:01 ` edersohe
  2021-02-25 20:08 ` [PR PATCH] [Merged]: " ericonr
  10 siblings, 0 replies; 12+ messages in thread
From: edersohe @ 2021-02-10 15:01 UTC (permalink / raw)
  To: ml

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

New comment by edersohe on void-packages repository

https://github.com/void-linux/void-packages/pull/28580#issuecomment-776767135

Comment:
> Ah, please also fix the commit message. The title should be the same as the PR title.

Done, thanks for you review.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Merged]: crda: update to 4.14
  2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
                   ` (9 preceding siblings ...)
  2021-02-10 15:01 ` edersohe
@ 2021-02-25 20:08 ` ericonr
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-02-25 20:08 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

crda: update to 4.14
https://github.com/void-linux/void-packages/pull/28580

Description:
crda: update to 4.14 #28580

* crda-4.14
* wireless-regdb-2020.12.20

fix error messages like

```
[    6.954196] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.954207] cfg80211: failed to load regulatory.db
```

registered also in the issue #2999 and

```
[    6.917367] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.920611] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
```

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-02-25 20:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 12:32 [PR PATCH] crda: update to 4.14 edersohe
2021-02-09  1:34 ` [PR REVIEW] " ericonr
2021-02-09  5:37 ` [PR PATCH] [Updated] " edersohe
2021-02-09  6:52 ` edersohe
2021-02-09  6:53 ` [PR REVIEW] " edersohe
2021-02-10  7:45 ` [PR PATCH] [Updated] " edersohe
2021-02-10  7:51 ` edersohe
2021-02-10  7:52 ` edersohe
2021-02-10 12:41 ` ericonr
2021-02-10 14:51 ` [PR PATCH] [Updated] " edersohe
2021-02-10 15:01 ` edersohe
2021-02-25 20:08 ` [PR PATCH] [Merged]: " ericonr

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).