Control: tag -1 + patch

On Sun, 03 Nov 2013 18:30:33 +0100, David Suárez wrote:

> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Debian now contains samba 4, which has header files in a special directory:   
>        
>   /usr/include/samba-4.0/libsmbclient.h  
> 
> Relevant part (hopefully):
> > gcc -DHAVE_CONFIG_H -I.   -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector 
> > --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wall -W 
> > -D_REENTRANT -D_GNU_SOURCE -DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64 
> > -I/usr/include/fuse   -I/usr/include/gnome-keyring-1 
> > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -c 
> > smb_conn_srv.c
> > smb_conn_srv.c:12:26: fatal error: libsmbclient.h: No such file or directory
> >  #include <libsmbclient.h>
> >                           ^
> > compilation terminated.
> > make[3]: *** [smb_conn_srv.o] Error 1

Something like the attached patch makes the package build again, no
idea if it works with samba4 afterwards ...


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Rolling Stones: Nevertoointo
diff -Nru smbnetfs-0.5.3a/debian/changelog smbnetfs-0.5.3a/debian/changelog
--- smbnetfs-0.5.3a/debian/changelog	2011-10-26 23:56:36.000000000 +0200
+++ smbnetfs-0.5.3a/debian/changelog	2013-11-18 19:20:48.000000000 +0100
@@ -1,3 +1,13 @@
+smbnetfs (0.5.3a-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS: smb_conn_srv.c:12:26: fatal error: libsmbclient.h: No
+    such file or directory":
+    use pkg-config to find smbclient headers.
+    (Closes: #728632)
+
+ -- gregor herrmann <gre...@debian.org>  Mon, 18 Nov 2013 19:05:14 +0100
+
 smbnetfs (0.5.3a-1) unstable; urgency=low
 
   * New upstream release
diff -Nru smbnetfs-0.5.3a/debian/rules smbnetfs-0.5.3a/debian/rules
--- smbnetfs-0.5.3a/debian/rules	2008-03-17 21:54:27.000000000 +0100
+++ smbnetfs-0.5.3a/debian/rules	2013-11-18 19:19:47.000000000 +0100
@@ -5,6 +5,7 @@
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
 export LDFLAGS := -Wl,--as-needed
+export CFLAGS += $(shell pkg-config --cflags smbclient)
 
 get-orig-source:
 	uscan --upstream-version 0 --rename

Attachment: signature.asc
Description: Digital signature

Reply via email to