diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/flawfinder/APKBUILD | 22 | ||||
-rw-r--r-- | testing/flawfinder/use-python3.patch | 22 |
2 files changed, 37 insertions, 7 deletions
diff --git a/testing/flawfinder/APKBUILD b/testing/flawfinder/APKBUILD index 69ecf74b27..75a1b1f28d 100644 --- a/testing/flawfinder/APKBUILD +++ b/testing/flawfinder/APKBUILD @@ -1,27 +1,35 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=flawfinder -pkgver=2.0.4 +pkgver=2.0.7 pkgrel=0 pkgdesc="Examines C/C++ source code for security flaws" url="http://www.dwheeler.com/flawfinder/" arch="noarch" license="GPL-2.0" -depends="python2" -makedepends="python2-dev py-setuptools" +depends="python3" +makedepends="python3-dev py3-setuptools" subpackages="$pkgname-doc" -source="http://www.dwheeler.com/flawfinder/$pkgname-$pkgver.tar.gz" +source="http://www.dwheeler.com/flawfinder/$pkgname-$pkgver.tar.gz + use-python3.patch + " builddir="$srcdir"/$pkgname-$pkgver +check() { + cd "$builddir" + make check +} + build() { cd "$builddir" - python2 setup.py build + python3 setup.py build } package() { cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="32a68b840e8de8b0181793834b45aafe2dc71581a4f3ad34c9f564c5267fa36c5ecbd00193a2819187a30ec868b4ff7f3d0a117b34d0743e8808d513df942b66 flawfinder-2.0.4.tar.gz" +sha512sums="ecfe98c58e253b1d90b833747d69c41597ab7b4c82286e5f45dff45de90056216c25d2c9626540aebfc1e475882a04c3cfa3c0cb3ee242f498f5cdfe188d761f flawfinder-2.0.7.tar.gz +aef3c9fc285255903e3b244bd76f99c7a7fe3c391f2d6a274ff7d1ea6dc38be82c9b537f3518c6cc600d5b3d5f60f1ed3b69aeaefc13246f9d908066273148ce use-python3.patch" diff --git a/testing/flawfinder/use-python3.patch b/testing/flawfinder/use-python3.patch new file mode 100644 index 0000000000..1b3a5d8a35 --- /dev/null +++ b/testing/flawfinder/use-python3.patch @@ -0,0 +1,22 @@ +--- flawfinder-2.0.7/makefile ++++ flawfinder-2.0.7-use-python3/makefile +@@ -12,8 +12,7 @@ + ARCH=noarch + + SAMPLE_DIR=/usr/src/linux-2.2.16 +-PYTHON=python +-PYTHON2=python2 ++PYTHON=python3 + PYTHON3=python3 + + # Flawfinder has traditionally used INSTALL_DIR, INSTALL_DIR_BIN, and +@@ -190,9 +189,6 @@ + + # Usual check routine. Run all tests using *both* python2 and python3. + check: +- @echo "Testing with $(PYTHON2)" +- @PYTHON="$(PYTHON2)" $(MAKE) test +- @echo + @echo "Testing with $(PYTHON3)" + @PYTHON="$(PYTHON3)" $(MAKE) test + |