bcal: fix build; adopt
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
9059f66475
commit
1d97f0235c
2 changed files with 16 additions and 6 deletions
11
srcpkgs/bcal/patches/non-null.patch
Normal file
11
srcpkgs/bcal/patches/non-null.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/bcal.c 2018-12-11 16:12:41.000000000 +0100
|
||||
+++ src/bcal.c 2019-09-24 22:34:39.475836973 +0200
|
||||
@@ -1923,7 +1923,7 @@
|
||||
char *expr = fixexpr(exp, &ret); /* Make parsing compatible */
|
||||
char *ptr;
|
||||
|
||||
- log(DEBUG, "expr: %s\n", expr);
|
||||
+ log(DEBUG, "expr: %s\n", expr ? expr : "<null>");
|
||||
|
||||
if (expr == NULL) {
|
||||
if (ret)
|
|
@ -1,18 +1,17 @@
|
|||
# Template file for 'bcal'
|
||||
pkgname=bcal
|
||||
version=2.1
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
makedepends="readline-devel"
|
||||
depends="bc"
|
||||
short_desc="Byte CALculator for storage conversions and calculations"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/jarun/bcal"
|
||||
distfiles="https://github.com/jarun/bcal/archive/v${version}.tar.gz"
|
||||
checksum=c0b6cb911a773abdd555e6a9e0eb8a25934ceca038156e6250e117fa451beaa6
|
||||
nocross=yes
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*) broken="https://build.voidlinux.org/builders/i686_builder/builds/6760/steps/shell_3/logs/stdio";;
|
||||
esac
|
||||
if [ "$XBPS_TARGET_WORDSIZE" -ne 64 ]; then
|
||||
broken="Can only be built for 64 bit targets which define __uint128_t."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue