Debian Patches

Status for calc/2.12.7.2-4

Patch Description Author Forwarded Bugs Origin Last update
manpage-fixes Manpage spelling & line wrap fixes Martin Buck <mbuck@debian.org> invalid debian
only-install-sharedlib-if-built Don't try to install shared libraries if they were not built Martin Buck <mbuck@debian.org> invalid
restore-2.12.1.5-filepos2z-ftbfs-414893 Restore filepos2z() implementation from apcalc 2.12.1.5 Fixes a FTBFS bug on big endian machines.
This is probably not the right solution, but at least it works.
.
Update 2019-01-14: Still required with calc 2.12.7.2 on mips, otherwise, we
get this (on minkus.debian.org, sid chroot):
.
gcc -DCALC_SRC -DCUSTOM -Wall -g -O2 -fdebug-prefix-map=/home/mbuck/apcalc-2.12.7.2=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -g3 -Wno-error=long-long -Wno-long-long -c file.c
In file included from qmath.h:32,
from cmath.h:32,
from value.h:33,
from calc.h:33,
from file.c:39:
file.c: In function 'filepos2z':
zmath.h:85:46: error: incompatible types when assigning to type 'HALF' {aka 'long unsigned int'} from type 'FILEPOS' {aka 'struct _G_fpos_t'}
#define SWAP_HALF_IN_B32(dest, src) (*(dest) = *(src))
^
fposval.h:15:42: note: in expansion of macro 'SWAP_HALF_IN_B32'
#define SWAP_HALF_IN_FILEPOS(dest, src) SWAP_HALF_IN_B32(dest, src)
^~~~~~~~~~~~~~~~
file.c:1370:2: note: in expansion of macro 'SWAP_HALF_IN_FILEPOS'
SWAP_HALF_IN_FILEPOS(ret.v, &pos);
^~~~~~~~~~~~~~~~~~~~
Martin Buck <mbuck@debian.org> invalid debian
support-kfreebsd-hurd-build-ftbfs-490552 Support building on kFreeBSD & Hurd Martin Buck <mbuck@debian.org> no debian
debianization-build Debian-Policy & FHS-compliant defaults Martin Buck <mbuck@debian.org> not-needed
debianization-doc Document FHS-compliant file names used for Debian package Martin Buck <mbuck@debian.org> not-needed
warning-fixes Fix some warnings reported by gcc 4.9.1 Martin Buck <mbuck@debian.org> no
fix-z2filepos-buffoverflow Fix buffer overflow in z2filepos Original code resulted in the following warning on amd64:
gcc -DCALC_SRC -DCUSTOM -Wall -g -O2 -fdebug-prefix-map=/home/mbuck/apcalc-2.12.7.2=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -g3 -Wno-error=long-long -Wno-long-long -c file.c
file.c: In function 'z2filepos':
file.c:1418:2: warning: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'pos' with type 'FULL' {aka 'long unsigned int'} [-Warray-bounds]
memcpy((void *)&ret, (void *)&pos, sizeof(FILEPOS));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c:1402:7: note: 'pos' declared here
FULL pos; /* zpos as a FULL */
^~~
Martin Buck <mbuck@debian.org> no
fix-makefile-ildflags Fix Makefile to properly honor ILDFLAGS Without this, some intermediate binaries are compiled without using
ILDFLAGS which causes Debian's hardening flags to be ignored which in turn
causes blhc https://ruderich.org/simon/blhc/ to complain.
Martin Buck <mbuck@debian.org> no

All known versions for source package 'calc'

Links