[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: List of powerpc / pmac specific package for debian-ports



On 08/01/2019 13:24, John Paul Adrian Glaubitz wrote:

> I meant:
> 
> $ dget -u http://snapshot.debian.org/archive/debian-debug/20160406T034459Z/pool/main/p/pmac-utils/pmac-utils_1.1.3-27.dsc

Okay, thanks. The vanilla output from building the package was below:

make[1]: Entering directory '/home/mca/deb-src/pmac-utils-1.1.3'
gcc -Wall -Wstrict-prototypes -g -Wall -O2 -g -fsigned-char -D_GNU_SOURCE  -o
autoboot autoboot.c
gcc -Wall -Wstrict-prototypes -g -Wall -O2 -g -fsigned-char -D_GNU_SOURCE  -o
bootsched bootsched.c
gcc -Wall -Wstrict-prototypes -g -Wall -O2 -g -fsigned-char -D_GNU_SOURCE  -o clock
clock.c
gcc -Wall -Wstrict-prototypes -g -Wall -O2 -g -fsigned-char -D_GNU_SOURCE  -o
mousemode mousemode.c
gcc -Wall -Wstrict-prototypes -g -Wall -O2 -g -fsigned-char -D_GNU_SOURCE  -o
nvsetenv nvsetenv.c nwnvsetenv.c
nwnvsetenv.c:13: warning: "__USE_GNU" redefined
 #define __USE_GNU // need strnlen

In file included from /usr/include/powerpc-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from nwnvsetenv.c:10:
/usr/include/features.h:376: note: this is the location of the previous definition
 # define __USE_GNU 1

In function ‘insert_val’,
    inlined from ‘set_var’ at nwnvsetenv.c:188:3:
nwnvsetenv.c:165:5: warning: ‘strncpy’ output truncated before terminating nul
copying as many bytes from a string as its length [-Wstringop-truncation]
     strncpy(valpos, newval, newlen);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nwnvsetenv.c: In function ‘set_var’:
nwnvsetenv.c:152:20: note: length computed here
     int  newlen  = strlen(newval);
                    ^~~~~~~~~~~~~~
sgml2txt -man autoboot.sgml && mv -f autoboot.man autoboot.8
Processing file autoboot.sgml
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:32:12:E: end tag
for "BF" omitted, but its declaration does not permit this
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:32:5: start tag
was here
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:32:13:E: end tag
for "DESCRIP" which is not finished
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:33:0:E:
character data is not allowed here
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:34:4:E: document
type does not allow element "TAG" herenwnvsetenv
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:35:4:E: document
type does not allow element "TAG" here
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:37:4:E: document
type does not allow element "TAG" here
onsgmls:/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout:40:9:E: end tag
for element "DESCRIP" which is not open
Error: "onsgmls -D /usr/share/sgml -D /usr/share/linuxdoc-tools -iman
/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.01.precmdout >
/tmp/linuxdoc-tools.etgYQ8JwRY/sgmltmp.autoboot.02.nsgmlsout" failed with exit status: 1
make[1]: *** [Makefile:90: autoboot.8] Error 1
make[1]: Leaving directory '/home/mca/deb-src/pmac-utils-1.1.3'
make: *** [debian/rules:24: build-stamp] Error 2


The attached patch fixes the build for me: it removes the __USE_GNU definition from
nwnvsetenv for tidiness and fixes up the main issue which is that autoboot.sgml fails
to build (presumably because checks on bad markup have become more strict in newer
versions of the documentation tools).

Finally I also bumped debian/compat from 7 to 9 with no obvious ill-effects since
every dpkg command was emitting warnings about compat level 7 being deprecated.


ATB,

Mark.
diff -ur pmac-utils-1.1.3.vanilla/autoboot.sgml pmac-utils-1.1.3/autoboot.sgml
--- pmac-utils-1.1.3.vanilla/autoboot.sgml	2019-01-08 13:51:30.138704781 +0000
+++ pmac-utils-1.1.3/autoboot.sgml	2019-01-08 14:11:48.200944294 +0000
@@ -29,9 +29,8 @@
 <descrip>
 <tag/<bf/on/</> 
 Set Server Mode for automatic boot on power restoration after outage
-<tag/<bf>off/</></>
+<tag/<bf/off/</>
 Clear Server Mode to require manual boot after power restoration.
-<tag>
 <tag/<bf/-V/</>
 Print version number.
 <tag/<bf/-v/</>
diff -ur pmac-utils-1.1.3.vanilla/debian/compat pmac-utils-1.1.3/debian/compat
--- pmac-utils-1.1.3.vanilla/debian/compat	2019-01-08 13:51:30.122680506 +0000
+++ pmac-utils-1.1.3/debian/compat	2019-01-08 14:27:02.183690399 +0000
@@ -1 +1 @@
-7
+9
diff -ur pmac-utils-1.1.3.vanilla/nwnvsetenv.c pmac-utils-1.1.3/nwnvsetenv.c
--- pmac-utils-1.1.3.vanilla/nwnvsetenv.c	2019-01-08 13:51:30.150722986 +0000
+++ pmac-utils-1.1.3/nwnvsetenv.c	2019-01-08 14:22:57.784694784 +0000
@@ -10,8 +10,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#define __USE_GNU	// need strnlen
-
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>

Reply to: