Processed: Re: Bug#660399: FTBFS: FALLOC_FL_PUNCH_HOLD undeclared

2012-02-21 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 660399 + upstream fixed-upstream
Bug #660399 [nbd-client] FTBFS: FALLOC_FL_PUNCH_HOLD undeclared
Added tag(s) upstream and fixed-upstream.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
660399: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660399
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#660399: FTBFS: FALLOC_FL_PUNCH_HOLD undeclared

2012-02-21 Thread Wouter Verhelst
tags 660399 + upstream fixed-upstream
thanks

On Sat, Feb 18, 2012 at 08:31:49PM +, Sam Morris wrote:
 make[3]: Entering directory `/tmp/nbd-2.9.25'
 gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='/etc'  -g -O2 
 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 
 -c -o nbd_server-nbd-server.o `test -f 'nbd-server.c' || echo 
 './'`nbd-server.c
 nbd-server.c: In function ‘exptrim’:
 nbd-server.c:1477:28: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in 
 this function)
 nbd-server.c:1477:28: note: each undeclared identifier is reported only once 
 for each function it appears in
 make[3]: *** [nbd_server-nbd-server.o] Error 1
 make[3]: Leaving directory `/tmp/nbd-2.9.25'
 
 Fixed by the following patch:
 
 - --- /tmp/nbd-server.c   2012-02-18 20:30:10.399561659 +
 +++ nbd-server.c  2012-02-18 20:29:14.975848442 +
 @@ -1461,7 +1461,7 @@
   * file to resparsify stuff that isn't needed anymore (see NBD_CMD_TRIM)
   */
  int exptrim(struct nbd_request* req, CLIENT* client) {
 - -#ifdef HAVE_FALLOC_PH
 +#if HAVE_FALLOC_PH
   FILE_INFO prev = g_array_index(client-export, FILE_INFO, 0);
   FILE_INFO cur = prev;
   int i = 1;

Has already been fixed upstream, actually. I just need to get around to
doing a new upstream release.

(and tracking down the FTBFS on sparc, which is a bit worrisome).

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#660399: FTBFS: FALLOC_FL_PUNCH_HOLD undeclared

2012-02-18 Thread Sam Morris
Package: nbd-client
Version: 1:2.9.25-2
Severity: serious
Tags: patch
Justification: fails to build from source

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

make[3]: Entering directory `/tmp/nbd-2.9.25'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='/etc'  -g -O2 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 
-c -o nbd_server-nbd-server.o `test -f 'nbd-server.c' || echo './'`nbd-server.c
nbd-server.c: In function ‘exptrim’:
nbd-server.c:1477:28: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in 
this function)
nbd-server.c:1477:28: note: each undeclared identifier is reported only once 
for each function it appears in
make[3]: *** [nbd_server-nbd-server.o] Error 1
make[3]: Leaving directory `/tmp/nbd-2.9.25'

Fixed by the following patch:

- --- /tmp/nbd-server.c 2012-02-18 20:30:10.399561659 +
+++ nbd-server.c2012-02-18 20:29:14.975848442 +
@@ -1461,7 +1461,7 @@
  * file to resparsify stuff that isn't needed anymore (see NBD_CMD_TRIM)
  */
 int exptrim(struct nbd_request* req, CLIENT* client) {
- -#ifdef HAVE_FALLOC_PH
+#if HAVE_FALLOC_PH
FILE_INFO prev = g_array_index(client-export, FILE_INFO, 0);
FILE_INFO cur = prev;
int i = 1;


- -- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (550, 'stable-updates'), (550, 'stable'), (540, 'testing'), (530, 
'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nbd-client depends on:
ii  debconf [debconf-2.0] 1.5.41 Debian configuration management sy
ii  initscripts   2.88dsf-22 scripts for initializing and shutt
ii  libc6 2.13-26Embedded GNU C Library: Shared lib

nbd-client recommends no packages.

nbd-client suggests no packages.

- -- debconf information excluded

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk9ACrUACgkQshl/216gEHjlYgCg3GcUB9JGMsNKMID0I0h1Fplj
/zYAoI7RaGfQ9FHQI8yzAlhpOqeObNfR
=tC3y
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org