[Samba] Samba 4 Packaging Issues

Jelmer Vernooij jelmer at samba.org
Thu Apr 4 09:26:34 MDT 2013


Hi Mike,

On Thu, Apr 04, 2013 at 09:26:43AM -0500, Mike Ray wrote:
> Unfortunately not, I am still unable to get the 4.0.3 package to build successfully due to the aforementioned error. I have yet to try a different version as I think this to be a problem with my packaging attempts, not with anything within that version of samba. 
Have you tried just building the 4.0.3 package from experimental, without any additional changes? Does that work?

The ldb error in particular seems odd - do you have libldb1 and the other build dependencies installed?

It is normal that there are some errors from dpkg-shlibdeps, it doesn't deal with internal libraries found using rpath very well. 

> As I'm new to this, I've been poking around for even just beginner tutorials on the whole 'debianization' of packages in the hopes that maybe I made an obvious slip-up. This has also not yielded anything particularly helpful. 
> 
> I think the problem probably has to do with me attempting to use the --bundled-libraries option in the rules. As I understand it, --bundled-libraries incorporates libraries into the package itself so that the package need not rely on system libraries. This seemed like a safe way to ensure that (even if for however unlikely) once the package built successfully, it would *always* be functional. 
There should be no need to use --bundled-libraries. Debian makes sure that the
dependencies for Samba would always be present, while also giving you access to
(security) updates for them. --bundled-libraries also covers only a small
number of the libraries that Samba4 links with.

The reason --bundled-libraries exists is that on some platforms it is a hassle
to manually install all the libraries that Samba uses before actually building
Samba itself. On Debian, this is not necessary since the libraries are already
packaged.

Cheers,

Jelmer



 
> If I've gone astray in that thinking or you have some advice for me, I would greatly appreciate it. 
> 
> Thanks for responding, 
> Mike Ray 
> 
> ----- Original Message -----
> 
> From: "Jelmer Vernooij" <jelmer at samba.org> 
> To: "Mike Ray" <mray at xes-inc.com> 
> Sent: Thursday, April 4, 2013 7:11:14 AM 
> Subject: Re: Fwd: Samba 4 Packaging Issues 
> 
> Hi Mike, 
> 
> Did you manage to get an updated version of the Samba package built in the mean 
> time? If not, let me know. 
> 
> Cheers, 
> 
> Jelmer 
> 
> > ---------- Forwarded message ---------- 
> > From: Mike Ray <mray at xes-inc.com> 
> > Date: Wed, Mar 27, 2013 at 10:44 AM 
> > Subject: Samba 4 Packaging Issues 
> > To: debian-mentors at lists.debian.org 
> > 
> > 
> > Hello all- 
> > 
> > (After posting in -user, it was suggested I try this mailing list instead) 
> > 
> > Long story short, I am trying to package up a current version of Samba4 for 
> > Ubuntu Precise 12.04 so that I can easily and reliably deploy it to 
> > hardware from a PPA. 
> > I'm very new to debian packaging so I'll just start out by stating that 
> > anyone who can offer help on this is encouraged to *not* make assumptions 
> > about what I have or haven't done -- I'm new and bad at this. 
> > 
> > In any case, the samba 4.0.3 package (available in the experimental branch 
> > of debian packages http://packages.debian.org/source/experimental/samba4) 
> > is my base package and the provided debian folder was my starting point. I 
> > didn't use the samba packages for Precise because they are woefully old. 
> > I've tried to modify the files to meet my needs but am currently hitting an 
> > error on dpkg-shlibdeps. 
> > 
> > It spits out a lot of warnings about not being able to extract the name and 
> > version from certain libraries, but it is actually erroring out because it 
> > can't find certain libraries. 
> > dpkg-shlibdeps: error: couldn't find library libkrb5-samba4.so.26 needed by 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/libsamdb.so.0.0.1 (ELF format: 
> > 'elf64-x86-64'; RPATH: '/usr/lib/x86_64-linux-gnu/samba'). 
> > dpkg-shlibdeps: error: couldn't find library libgssapi-samba4.so.2 needed 
> > by debian/libsamdb0/usr/lib/x86_64-linux-gnu/libsamdb.so.0.0.1 (ELF format: 
> > 'elf64-x86-64'; RPATH: '/usr/lib/x86_64-linux-gnu/samba'). 
> > And also: 
> > dpkg-shlibdeps: error: no dependency information found for 
> > /home/USER/samba4_4.0.4/samba4-4.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/samba/libldb.so.1 
> > (used by 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so). 
> > 
> > dh_shlibdeps says this: 
> > dh_shlibdeps: dpkg-shlibdeps -Tdebian/libsamdb0.substvars 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/samba/libldbsamba.so 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/samba/libldb-cmdline.so 
> > debian/libsamdb0/usr/lib/x86_64-linux-gnu/libsamdb.so.0.0.1 returned exit 
> > code 2 
> > make[1]: *** [override_dh_shlibdeps] Error 2 
> > 
> > However, LD_LIBRARY_PATH, which to my understanding is what shlib uses to 
> > find libraries it needs to resolve dependencies, is set to a parent 
> > directory of where that library is: 
> > LD_LIBRARY_PATH evaluates to 
> > /home/USER/samba4_4.0.4/samba4-4.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/samba. 
> > /home/USER/samba4_4.0.4/samba4-4.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/samba/libkrb5-samba4.so.26 
> > 
> > So how can't dpkg-shlibdeps find the library? 
> > 
> > Also, the only dependency listed for libsamdb0 in the subtvars file is: 
> > libsamdb 0 libsamdb0 
> > So why is it getting mad about libldb not having dependencies? 
> > 
> > Here are pastebin links to the debian/rules and debian/control. 
> > 
> > rules: http://pastebin.com/dmVcyr0Y 
> > control: http://pastebin.com/QMdhWn3Z 
> > 
> > And insight/help would be much appreciated. 
> > 
> > -Mike Ray 
> > 
> > 
> > 
> > -- 
> > :wq 
> 
> -- 
> 

-- 


More information about the samba mailing list