Compare commits
No commits in common. "483e4e75011ec30aa88a93ae0a0e260b5f85d28d" and "a7233628b5ba1c6446744183201e9a06f9ce4d0f" have entirely different histories.
483e4e7501
...
a7233628b5
@ -1,36 +0,0 @@
|
|||||||
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
||||||
Date: Wed, 27 Mar 2019 14:53:02 +0300
|
|
||||||
Subject: [PATCH] Explicitly use python3
|
|
||||||
|
|
||||||
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
||||||
|
|
||||||
diff --git a/disassembler/b43-ivaldump b/disassembler/b43-ivaldump
|
|
||||||
index ce06cbb..1de4b42 100755
|
|
||||||
--- a/disassembler/b43-ivaldump
|
|
||||||
+++ b/disassembler/b43-ivaldump
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/usr/bin/env python
|
|
||||||
+#!/usr/bin/env python3
|
|
||||||
"""
|
|
||||||
# A small script to dump the contents of a b43 initvals file
|
|
||||||
#
|
|
||||||
diff --git a/disassembler/brcm80211-fwconv b/disassembler/brcm80211-fwconv
|
|
||||||
index 5c32f28..28884dd 100755
|
|
||||||
--- a/disassembler/brcm80211-fwconv
|
|
||||||
+++ b/disassembler/brcm80211-fwconv
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/usr/bin/env python
|
|
||||||
+#!/usr/bin/env python3
|
|
||||||
"""
|
|
||||||
# Copyright (C) 2010 Michael Buesch <m@bues.ch>
|
|
||||||
#
|
|
||||||
diff --git a/disassembler/brcm80211-ivaldump b/disassembler/brcm80211-ivaldump
|
|
||||||
index 4225da6..4d2346b 100755
|
|
||||||
--- a/disassembler/brcm80211-ivaldump
|
|
||||||
+++ b/disassembler/brcm80211-ivaldump
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/usr/bin/env python
|
|
||||||
+#!/usr/bin/env python3
|
|
||||||
"""
|
|
||||||
# A small script to dump the contents of a brcm80211 initvals section
|
|
||||||
#
|
|
||||||
@ -1,14 +1,13 @@
|
|||||||
Name: b43-tools
|
Name: b43-tools
|
||||||
Version: 019
|
Version: 019
|
||||||
Release: 7
|
Release: 3
|
||||||
Summary: Tools for the Broadcom 43xx series WLAN chip
|
Summary: Tools for the Broadcom 43xx series WLAN chip
|
||||||
License: GPLv2 and GPLv2+ and GPLv3 and BSD-2-Clause and Public Domain
|
License: GPLv2 and GPLv2+ and GPLv3
|
||||||
URL: https://bues.ch/cgit/b43-tools.git
|
URL: https://bues.ch/cgit/b43-tools.git
|
||||||
Source0: https://bues.ch/cgit/b43-tools.git/snapshot/b43-tools-b43-fwcutter-019.tar.xz
|
Source0: https://bues.ch/cgit/b43-tools.git/snapshot/b43-tools-b43-fwcutter-019.tar.xz
|
||||||
BuildRequires: bison flex flex-static python3-devel gcc
|
BuildRequires: bison flex flex-static python2-devel
|
||||||
Patch0001: 0001-b43-tools-fix-format-security-errors.patch
|
Patch0001: 0001-b43-tools-fix-format-security-errors.patch
|
||||||
Patch0002: 0002-Explicitly-use-python3.patch
|
|
||||||
Patch0003: fix-function-file-to-open.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tools for the Broadcom 43xx series WLAN chip.
|
Tools for the Broadcom 43xx series WLAN chip.
|
||||||
@ -22,23 +21,14 @@ install -p -m 0644 debug/README README.debug
|
|||||||
install -p -m 0644 disassembler/COPYING COPYING.disassembler
|
install -p -m 0644 disassembler/COPYING COPYING.disassembler
|
||||||
install -p -m 0644 ssb_sprom/README README.ssb_sprom
|
install -p -m 0644 ssb_sprom/README README.ssb_sprom
|
||||||
install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
|
install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
|
||||||
sed 's/py_modules=/version="%{version}", py_modules=/' debug/install.py > debug/setup.py
|
install -p -m 0644 debug/install.py debug/setup.py
|
||||||
|
|
||||||
2to3 -w .
|
|
||||||
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/disassembler/brcm80211-fwconv
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/disassembler/b43-ivaldump
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/disassembler/brcm80211-ivaldump
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/debug/b43-beautifier
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/debug/b43-fwdump
|
|
||||||
2to3 -w %{_builddir}/b43-tools-b43-fwcutter-019/debug/patcher-template
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %make_build -C assembler
|
CFLAGS="%{optflags}" %make_build -C assembler
|
||||||
CFLAGS="%{optflags}" %make_build -C disassembler
|
CFLAGS="%{optflags}" %make_build -C disassembler
|
||||||
CFLAGS="%{optflags}" %make_build -C ssb_sprom
|
CFLAGS="%{optflags}" %make_build -C ssb_sprom
|
||||||
cd debug
|
cd debug
|
||||||
%py3_build
|
%py2_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d %{buildroot}%{_bindir}
|
install -d %{buildroot}%{_bindir}
|
||||||
@ -50,26 +40,14 @@ install -p -m 0755 disassembler/brcm80211-fwconv %{buildroot}%{_bindir}
|
|||||||
install -p -m 0755 disassembler/brcm80211-ivaldump %{buildroot}%{_bindir}
|
install -p -m 0755 disassembler/brcm80211-ivaldump %{buildroot}%{_bindir}
|
||||||
install -p -m 0755 ssb_sprom/ssb-sprom %{buildroot}%{_bindir}
|
install -p -m 0755 ssb_sprom/ssb-sprom %{buildroot}%{_bindir}
|
||||||
cd debug
|
cd debug
|
||||||
%py3_install
|
%py2_install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.* COPYING.*
|
%doc README.* COPYING.*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{python3_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue May 30 2023 wulei <wu_lei@hoperun.com> - 019-7
|
|
||||||
- Fix python compatibility
|
|
||||||
|
|
||||||
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 019-6
|
|
||||||
- Add gcc in BuildRequires
|
|
||||||
|
|
||||||
* Tue Jan 5 2021 Ge Wang<wangge20@huawei.com> - 019-5
|
|
||||||
- Modify license information
|
|
||||||
|
|
||||||
* Tue Oct 27 2020 leiju<leiju4@huawei.com> - 019-4
|
|
||||||
- Modify BuildRequires from python2-devel to python3-devel
|
|
||||||
|
|
||||||
* Thu Jan 16 2020 sunguoshuai<sunguoshuai@huawei.com> - 019-3
|
* Thu Jan 16 2020 sunguoshuai<sunguoshuai@huawei.com> - 019-3
|
||||||
- Change tar packages.
|
- Change tar packages.
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: git
|
|
||||||
src_repo: https://bues.ch/cgit/b43-tools.git
|
|
||||||
tag_prefix: "b43-fwcutter-"
|
|
||||||
seperator: "."
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
diff -Nur a/disassembler/b43-ivaldump b/disassembler/b43-ivaldump
|
|
||||||
--- a/disassembler/b43-ivaldump 2023-05-30 16:33:01.128951580 +0800
|
|
||||||
+++ b/disassembler/b43-ivaldump 2023-05-30 16:33:38.732951580 +0800
|
|
||||||
@@ -36,7 +36,7 @@
|
|
||||||
filename = sys.argv[1]
|
|
||||||
|
|
||||||
try:
|
|
||||||
- ivals = file(filename).read()
|
|
||||||
+ ivals = open(filename).read()
|
|
||||||
except IOError, e:
|
|
||||||
print "Could not read the initvals file: %s" % e.strerror
|
|
||||||
sys.exit(1)
|
|
||||||
diff -Nur a/disassembler/brcm80211-ivaldump b/disassembler/brcm80211-ivaldump
|
|
||||||
--- a/disassembler/brcm80211-ivaldump 2023-05-30 16:33:01.128951580 +0800
|
|
||||||
+++ b/disassembler/brcm80211-ivaldump 2023-05-30 16:34:17.524951580 +0800
|
|
||||||
@@ -36,7 +36,7 @@
|
|
||||||
filename = sys.argv[1]
|
|
||||||
|
|
||||||
try:
|
|
||||||
- ivals = file(filename).read()
|
|
||||||
+ ivals = open(filename).read()
|
|
||||||
except IOError, e:
|
|
||||||
print "Could not read the initvals file: %s" % e.strerror
|
|
||||||
sys.exit(1)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user