Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package crda for openSUSE:Factory checked in at 2023-06-24 20:13:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/crda (Old) and /work/SRC/openSUSE:Factory/.crda.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "crda" Sat Jun 24 20:13:33 2023 rev:31 rq:1094860 version:4.15 Changes: -------- --- /work/SRC/openSUSE:Factory/crda/crda.changes 2023-01-18 13:08:25.655996329 +0100 +++ /work/SRC/openSUSE:Factory/.crda.new.15902/crda.changes 2023-06-24 20:13:44.860074962 +0200 @@ -1,0 +2,9 @@ +Fri Jun 23 10:57:35 UTC 2023 - Dr. Werner Fink <wer...@suse.de> + +- Update to crda 4.15 +- Remove patches now upstream + * crda-67f1e6ddbdfade357e234c9d58a30fe0a283fe60.patch + * crda-f4ef2531698fb9ba006e8b31a223b3269be8bc7c.patch +- Port patch crda-python3.patch + +------------------------------------------------------------------- Old: ---- crda-4.14.tar.gz crda-67f1e6ddbdfade357e234c9d58a30fe0a283fe60.patch crda-f4ef2531698fb9ba006e8b31a223b3269be8bc7c.patch New: ---- crda-4.15.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ crda.spec ++++++ --- /var/tmp/diff_new_pack.CiqG8A/_old 2023-06-24 20:13:45.664079709 +0200 +++ /var/tmp/diff_new_pack.CiqG8A/_new 2023-06-24 20:13:45.668079732 +0200 @@ -24,7 +24,7 @@ License: SUSE-Copyleft-Next-0.3.0 Group: Hardware/Wifi URL: https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA -Version: 4.14 +Version: 4.15 Release: 0 Source0: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-%{version}.tar.gz Source1: crda.default @@ -34,6 +34,7 @@ BuildRequires: python3 BuildRequires: python3-pycrypto BuildRequires: wireless-regdb +BuildRequires: pkgconfig(libgcrypt) BuildRequires: pkgconfig(libnl-3.0) BuildRequires: pkgconfig(udev) Requires: wireless-regdb @@ -42,12 +43,8 @@ Patch0: gcc6-fix-errors.patch # PATCH-FIX-OPENSUSE python2 is gone, port to python3 Patch1: crda-python3.patch -# PATCH-FIX-UPSTREAM crda-67f1e6ddbdfade357e234c9d58a30fe0a283fe60.patch -Patch2: crda-67f1e6ddbdfade357e234c9d58a30fe0a283fe60.patch -# PATCH-FIX-UPSTREAM crda-f4ef2531698fb9ba006e8b31a223b3269be8bc7c.patch -Patch3: crda-f4ef2531698fb9ba006e8b31a223b3269be8bc7c.patch # PATCH-FIX-SUSE crda-default.patch -Patch4: crda-default.patch +Patch2: crda-default.patch %description The crda binary provides access to the wireless-regdb to the kernel @@ -55,17 +52,16 @@ %prep %setup -q -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%patch0 -p1 -b .p0 +%patch1 -p1 -b .p1 +%patch2 -p1 -b .p2 # make install calls 'ldconfig' and fails if it cannot run it... ln -s /bin/true ldconfig %build +export CC="gcc" export CFLAGS="%{optflags}" -make all_noverify %{?_smp_mflags} V=1 +%make_build all_noverify %{?_smp_mflags} V=1 %install # to find ldconfig... ++++++ crda-4.14.tar.gz -> crda-4.15.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crda-4.14/Makefile new/crda-4.15/Makefile --- old/crda-4.14/Makefile 2018-01-05 19:53:11.000000000 +0100 +++ new/crda-4.15/Makefile 2019-11-12 23:34:04.000000000 +0100 @@ -114,19 +114,19 @@ $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem) $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@ -$(LIBREG): regdb.h reglib.h reglib.c +$(LIBREG): reglib.c regdb.h reglib.h $(NQ) ' CC ' $@ - $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ + $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< install-libreg-headers: $(NQ) ' INSTALL libreg-headers' $(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR) - $(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/ + $(Q)$(INSTALL) -m 644 *.h $(DESTDIR)/$(INCLUDE_DIR)/ install-libreg: $(NQ) ' INSTALL libreg' $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) - $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/ + $(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/ $(Q)ldconfig %.o: %.c regdb.h $(LIBREG) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crda-4.14/README new/crda-4.15/README --- old/crda-4.14/README 2018-01-05 19:53:11.000000000 +0100 +++ new/crda-4.15/README 2019-11-12 23:34:04.000000000 +0100 @@ -1,12 +1,19 @@ Central Regulatory Domain Agent (CRDA) ======================================== +<https://wireless.wiki.kernel.org/en/developers/regulatory/crda> This is the Central Regulatory Domain Agent for Linux. It serves one -purpose: tell Linux kernel what to enforce. In essence it is a udev -helper for communication between the kernel and userspace. You only -need to run this manually for debugging purposes. For manual changing -of regulatory domains use iw (iw reg set) or wpa_supplicant (feature -yet to be added). +purpose: tell Linux kernel what regulatory ruels to enforce for 802.11. + +CRDA is no longer needed as of kernel v4.15 since commit 007f6c5e6eb45 +("cfg80211: support loading regulatory database as firmware file") added +support to use the kernel's firmware request API which looks for the +firmware on /lib/firmware. Because of this CRDA is legacy software for +older kernels. It will continue to be maintained. + +CRDA is a udev helper for communication between the kernel and userspace. You +only need to run this manually for debugging purposes. For manual changing of +regulatory domains use iw (iw reg set) or wpa_supplicant. HOST REQUIREMENTS =================== @@ -46,6 +53,7 @@ OVERVIEW ========== +<https://wireless.wiki.kernel.org/en/developers/regulatory> The database is maintained on the wireless-regdb.git tree. This git tree maintains a binary regulatory database file which is produced diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crda-4.14/reglib.c new/crda-4.15/reglib.c --- old/crda-4.14/reglib.c 2018-01-05 19:53:11.000000000 +0100 +++ new/crda-4.15/reglib.c 2019-11-12 23:34:04.000000000 +0100 @@ -443,7 +443,7 @@ for (i = 0; i < rd->n_reg_rules; i++) { reg_rule = &rd->reg_rules[i]; if (!is_valid_reg_rule(reg_rule)) - return 0; + return 0; } return 1; } ++++++ crda-python3.patch ++++++ --- /var/tmp/diff_new_pack.CiqG8A/_old 2023-06-24 20:13:45.756080252 +0200 +++ /var/tmp/diff_new_pack.CiqG8A/_new 2023-06-24 20:13:45.760080276 +0200 @@ -12,12 +12,11 @@ * The generated constants are given the 'ull' suffix to prevent warnings about constants that are too large. --- - Makefile | 2 +- - utils/key2pub.py | 146 ++++++++++++++++++++++++++++--------------------------- + Makefile | 2 + utils/key2pub.py | 146 +++++++++++++++++++++++++++---------------------------- 2 files changed, 75 insertions(+), 73 deletions(-) diff --git a/Makefile b/Makefile -index a3ead30..65fc780 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,7 @@ $(REG_BIN): @@ -25,12 +24,11 @@ $(NQ) ' GEN ' $@ $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem) - $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@ -+ $(Q) python3 ./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@ ++ $(Q)python3 ./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@ - $(LIBREG): regdb.h reglib.h reglib.c + $(LIBREG): reglib.c regdb.h reglib.h $(NQ) ' CC ' $@ diff --git a/utils/key2pub.py b/utils/key2pub.py -index 3e84cd2..ff92748 100755 --- a/utils/key2pub.py +++ b/utils/key2pub.py @@ -1,126 +1,128 @@ @@ -257,4 +255,3 @@ modes[mode][1](output, idx - 1) -