[Samba] creating an ubuntu package of version 4.1.0

bugblatterbeast samba at bugblatterbeast.de
Sun Nov 3 06:03:01 MST 2013


Thank you Harry. I've stopped posting my progress because it's somehow 
off topic here.

I've already found a far less sophisticated solution than you did, by 
just adding the dependency to the util-target in "lib/util/wscript_build".

Still, when I reactivate the old DISABLE_NTDB definition, I'm getting 
this dependency-check-error after linking:

dpkg-shlibdeps: error: no dependency information found for 
/home/username/build2/samba4/debian/tmp/usr/lib/x86_64-linux-gnu/samba/libntdb.so.0 
(used by debian/python-samba/usr/lib/x86_64-linux-gnu/samba/libdbwrap.so).

otherwise it doesn't even start compiling because it wants ntdb >= 0.9 
to be already installed....

Did you get along that?



Anyway, I think we should follow Trent's suggestion and stop by here:

Useful resources:

    - #debian-mentors on irc.oftc.net (general Debian packaging advice & 
review)
    - 
https://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-samba-maint



Nice regards, bbb



Am 02.11.2013 23:21, schrieb Harry Jede:
> On 23:17:47 wrote bugblatterbeast:
>> Hi,
>>
>>       to build an ubuntu-package of samba4.1.0, I'm using a slightly
>> modified debian package-configuration from a previous version. I
>> created a quilt-patch (attached to this email) that sets the
>> DISABLE_NTDB var again, to solve dependency problems.
>>
>> It's compiling nicely now, but I still get this linker-error:
>>
>> default/source3/lib/util_58.o: In function `str_checksum':
>> /home/nils/build2/samba4/bin/../source3/lib/util.c:1310: undefined
>> reference to `hash_any'
>>
>>
>> Did this happen to anybody before? Did anybody already succeed in
>> building a ubuntu- or debian-package of samba 4.1.0?
>>
>>
>> Nice regards, bbb
> I've found this patch which solved the issue with
> source3/lib/util.c
>
> ######
>
>  From c432b5aa4f15be3a1743023ebe7039d80d3ce298 Mon Sep 17 00:00:00 2001
> From: Matthieu Patou <mat at matws.net>
> Date: Fri, 17 Feb 2012 09:51:56 -0800
> Subject: [PATCH] DONOTPUSH: temporary fix for ccan dependency on
> source3/lib/util.c
>
> Remove the need of hash_any in this code so that we don't ends up with
> symbols problems.
> ---
>   source3/lib/util.c |    7 +++----
>   1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/source3/lib/util.c b/source3/lib/util.c
> index 2e432ab..5be15f6 100644
> --- a/source3/lib/util.c
> +++ b/source3/lib/util.c
> @@ -28,7 +28,7 @@
>   #include "ctdbd_conn.h"
>   #include "../lib/util/util_pw.h"
>   #include "messages.h"
> -#include <ccan/hash/hash.h>
> +//#include <ccan/hash/hash.h>
>   #include "libcli/security/security.h"
>   
>   #ifdef HAVE_SYS_PRCTL_H
> @@ -1357,9 +1357,8 @@ const char *tab_depth(int level, int depth)
>   
>   int str_checksum(const char *s)
>   {
> -	if (s == NULL)
> -		return 0;
> -	return hash(s, strlen(s), 0);
> +       TDB_DATA key = string_tdb_data(s);
> +       return tdb_jenkins_hash(&key);
>   }
>   
>   /*****************************************************************



More information about the samba mailing list