Package: calc / 2.12.7.2-4
Metadata
Package | Version | Patches format |
---|---|---|
calc | 2.12.7.2-4 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
manpage fixes | (download) |
Makefile |
5 4 + 1 - 0 ! |
manpage spelling & line wrap fixes Bug-Debian: http://bugs.debian.org/602081 |
only install sharedlib if built | (download) |
Makefile |
5 4 + 1 - 0 ! |
don't try to install shared libraries if they were not built |
restore 2.12.1.5 filepos2z ftbfs 414893 | (download) |
file.c |
2 1 + 1 - 0 ! |
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); ^~~~~~~~~~~~~~~~~~~~ Bug-Debian: http://bugs.debian.org/414893 |
support kfreebsd hurd build ftbfs 490552 | (download) |
Makefile |
8 4 + 4 - 0 ! |
support building on kfreebsd & hurd Bug-Debian: http://bugs.debian.org/490552 |
debianization build | (download) |
Makefile |
13 7 + 6 - 0 ! |
debian-policy & fhs-compliant defaults |
debianization doc | (download) |
sample.README |
3 2 + 1 - 0 ! |
document fhs-compliant file names used for debian package |
warning fixes | (download) |
byteswap.c |
24 12 + 12 - 0 ! |
fix some warnings reported by gcc 4.9.1 |
fix z2filepos buffoverflow | (download) |
file.c |
2 1 + 1 - 0 ! |
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 */ ^~~ |
fix makefile ildflags | (download) |
Makefile |
4 2 + 2 - 0 ! |
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. |