Building an installable Debian / Ubuntu package from scratch in master.
Matthew Newton
mcn4 at leicester.ac.uk
Tue Jun 21 21:59:07 UTC 2016
On Tue, Jun 21, 2016 at 02:36:51PM -0700, Jeremy Allison wrote:
> So for various reasons (too complex to go into :-) at
> the Redmond plugfest I'd like to create a Debian .deb
> package from my current (modified) git master source
> code tree.
>
> https://wiki.samba.org/index.php/Samba4/Debian
>
> Is just plain wrong :-(.
>
> I've gotten to the point where I can run
> dpkg-buildpackage with a tarballs directory
> containing my gzipped master tarball, but
> it's trying to find:
>
> samba4_4.0.0~rc6+dfsg1.orig.tar
I'm not familiar with building Samba debian packages, but this may
help...
For building any debian packages from source I always set it as a
"native" package, so it doesn't require a source tarball.
e.g.
echo "3.0 (native)" > debian/source/format
Debian don't like this (and it doesn't make sense for debs in the
main project) but for things built outside of the Debian project
it makes far more sense to me. There is no debian tarball, so you
(as you've found) have got to try and make one up with the right
name as well, which is very annoying and unnecessary.
FWIW, it gets the version number from the top of debian/changelog.
Matthew
--
Matthew Newton, Ph.D. <mcn4 at leicester.ac.uk>
Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
More information about the samba-technical
mailing list