mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/scanssh: fix build with gcc 14
This commit is contained in:
parent
7d885ba7dd
commit
df80a9ed76
@ -2,7 +2,7 @@
|
||||
# Maintainer: fossdd <fossdd@pwned.life>
|
||||
pkgname=scanssh
|
||||
pkgver=2.1.3.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Fast SSH server and open proxy scanner"
|
||||
url="https://github.com/ofalk/scanssh"
|
||||
arch="all"
|
||||
@ -10,7 +10,9 @@ license="BSD-3-Clause"
|
||||
options="!check" # no testsuite
|
||||
makedepends="autoconf automake libpcap-dev libevent-dev libdnet-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/ofalk/scanssh/archive/$pkgver.tar.gz"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/ofalk/scanssh/archive/$pkgver.tar.gz
|
||||
gcc14.patch
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
@ -33,4 +35,5 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
970cbb03aa44fcef62aa03132335e6ecedb083cee98a360b3d781efc8c2d3c169f70c17837b1faaf9ceaa2691a7c619174a9bb185146af50188eaceda5d14adb scanssh-2.1.3.1.tar.gz
|
||||
72b136f29ce041a7111be2896a5471469eab90c8c8fdfd4eb05fd294796afd9804adc3dc07c894a559cbf16679184ce00b713b0394e9a9a399b587d7f6daa231 gcc14.patch
|
||||
"
|
||||
|
20
community/scanssh/gcc14.patch
Normal file
20
community/scanssh/gcc14.patch
Normal file
@ -0,0 +1,20 @@
|
||||
Fix -Wimplicit-function-declaration error with gcc 14.
|
||||
|
||||
Error:
|
||||
|
||||
```
|
||||
arc4random.c:19:25: error: implicit declaration of function 'time'
|
||||
[-Wimplicit-function-declaration]
|
||||
19 | srandom(time(NULL));
|
||||
| ^~~~
|
||||
```
|
||||
|
||||
--- scanssh-2.1.3.1-origin/arc4random.c
|
||||
+++ scanssh-2.1.3.1/arc4random.c
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
+#include <time.h>
|
||||
|
||||
#include "config.h"
|
||||
|
Loading…
Reference in New Issue
Block a user