summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-06-21 15:57:16 +0000
committerJoonas Niilola <juippis@gentoo.org>2023-07-14 10:29:02 +0300
commit1b4e8a16d9eade4225d3a6d27736e715b96340b5 (patch)
treee48a437a2175fa0f72adbae0c01b6ef9c8e5c874 /sys-firmware
parentnet-misc/wput: Fix call to undeclared library function exit (diff)
downloadgentoo-1b4e8a16d9eade4225d3a6d27736e715b96340b5.tar.gz
gentoo-1b4e8a16d9eade4225d3a6d27736e715b96340b5.tar.bz2
gentoo-1b4e8a16d9eade4225d3a6d27736e715b96340b5.zip
sys-firmware/atmel-firmware: Fix type specifier missing, defaults to int
Closes: https://bugs.gentoo.org/887113 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31565 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild60
-rw-r--r--sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch13
2 files changed, 73 insertions, 0 deletions
diff --git a/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild
new file mode 100644
index 000000000000..bd7600155a73
--- /dev/null
+++ b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Firmware and config for atmel and atmel_cs wlan drivers included in linux 2.6"
+HOMEPAGE="https://www.thekelleys.org.uk/atmel/"
+SRC_URI="https://www.thekelleys.org.uk/atmel/${P}.tar.gz"
+
+LICENSE="Atmel"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="pcmcia usb"
+
+RDEPEND=">=net-wireless/wireless-tools-26-r1
+ pcmcia? ( sys-apps/pcmciautils )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3-clang-16-build.patch
+)
+
+src_compile() {
+ tc-export CC
+ emake atmel_fwl
+}
+
+src_install() {
+ # atmel_at76c504c-wpa.bin should be renamed to atmel_at76c504-wpa.bin, bug #398803
+ mv images/atmel_at76c504c-wpa.bin images/atmel_at76c504-wpa.bin || die
+
+ insinto /lib/firmware
+ doins images/*.bin
+
+ if use usb; then
+ doins images.usb/*.bin
+ fi
+
+ if use pcmcia; then
+ insinto /etc/pcmcia
+ doins atmel.conf
+ fi
+
+ dosbin atmel_fwl atmel_fwl.pl
+ doman atmel_fwl.8
+ dodoc README VERSION
+}
+
+pkg_postinst() {
+ if use pcmcia && [ -f /run/cardmgr.pid ]; then
+ kill -HUP `cat /run/cardmgr.pid`
+ fi
+}
+
+pkg_postrm() {
+ if use pcmcia && [ -f /run/cardmgr.pid ]; then
+ kill -HUP `cat /run/cardmgr.pid`
+ fi
+}
diff --git a/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch b/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch
new file mode 100644
index 000000000000..dca3dd03be43
--- /dev/null
+++ b/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch
@@ -0,0 +1,13 @@
+Fix build with clang 16
+Bug: https://bugs.gentoo.org/887113
+--- a/atmel_fwl.c
++++ b/atmel_fwl.c
+@@ -37,7 +37,7 @@ struct atmel_priv_ioctl {
+ unsigned short len;
+ };
+
+-main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int i, magic, rc, sock = -1;
+ struct ifreq ifr;