Package: superkb / 0.23-5

Metadata

Package Version Patches format
superkb 0.23-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
let debian override pedantic errors | (download)

Makefile | 4 4 0 - 0 !
1 file changed, 4 insertions( )

 let debian override --pedantic-errors
 Upstream Superkb will always compile using --pedantic-errors. This
 patch allows debian/rules to export an OVERRIDE_PEDANTIC_ERRORS
 variable so this can be disabled.
 .
 The motivation for this patch is that GCC 6 is detecting an ISO C
 violation by GObject, even though it is valid in GNU C. This patch
 worksaround the fixed --pedantic-errors parameter so it lets
 compilation of Superkb succeed. 
 .
 This patch is used together with OVERRIDE_PEDANTIC_ERRORS in
 debian/rules.

fix ldlibs m position on invocation | (download)

Makefile | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix ldlibs-m position on compiler invocation
 LDLIBS (or whatever variable has a similar function) must always go
 at the end of GCC invocation. There is an error in upstream but for some
 reason it didn't affect Debian, only Ubuntu.
 .
 This patch fixes this.
 
make pkg config subsitutable | (download)

Makefile | 40 21 19 - 0 !
approve-config | 4 3 1 - 0 !
2 files changed, 24 insertions( ), 20 deletions(-)

 make pkg-config substitutable
 Taken from Helmut's e-mail:
 .
 superkb fails to cross build from source, because the upstream build
 system hard codes build architecture build tools (gcc and pkg-config).
 The attached patch makes pkg-config substitutable, but it doesn't make
 superkb cross buildable due to its use of help2man [*]. Please consider
 applying the attached patch anyway and close this bug when doing so even
 though superkb will continue to fail cross building.
 .
 [*] A later patch fixes this too.

make gcc substitutable | (download)

Makefile | 4 2 2 - 0 !
1 file changed, 2 insertions( ), 2 deletions(-)

 <short summary of the patch>
 Taken from Helmut's e-mail:
 .
 superkb fails to cross build from source, because the upstream build
 system hard codes build architecture build tools (gcc and pkg-config).
 The attached patch makes gcc substitutable, but it doesn't make
 superkb cross buildable due to its use of help2man [*]. Please consider
 applying the attached patch anyway and close this bug when doing so even
 though superkb will continue to fail cross building.
 .
 [*] A later patch fixes this too.

make help2man call a stub instead of the binary | (download)

Makefile | 7 4 3 - 0 !
help2man-stub/superkb | 15 15 0 - 0 !
main-help-message.h | 9 9 0 - 0 !
main.c | 10 2 8 - 0 !
4 files changed, 30 insertions( ), 11 deletions(-)

 make help2man call a stub instead of the binary
 In Debian bug #929005, Helmut Grohen correctly points out that
 Superkb is not cross-buildable because of the use of help2man.
 .
 Help2man works by running the built binary with -h and -v to
 find out the help text and version and build a manpage from that.
 If we are cross-building Superkb we probably don't have access
 to a host with the target architecture, so we don't have a way
 for help2man to run the application binary to get needed texts.
 .
 This is fixed by moving the help text outside main.c into an .h
 in a specific format that can be processed by a "help stub"
 written in Bash; thus, breaking the portability issue. help2man
 will call the stub instead of the application binary.
 .
 The patch is applied upstream using multiple patches. This is the
 blend of all four:
 .
 1. https://gitlab.com/alvarezp2000/superkb/commit/b364c8989773d68fb116fe2a8a5fd0c27b71bc18
 2. https://gitlab.com/alvarezp2000/superkb/commit/6ba0933bd06d9ac5640aac42109f98ec1c2774fd
 3. https://gitlab.com/alvarezp2000/superkb/commit/b5a418cc4020b4ba276944b178235a9fb2373d8a
 4. https://gitlab.com/alvarezp2000/superkb/commit/cf9a9bb303036085180181808078abe6ac652aff