Mailing List Archive

Problem building ARMHF Debian deb file
I am trying to install dbmail on a Cubieboard-2, which is an armhf system.

The Cubieboard-2 is installed using the standard debian-installer as a jessie
(i.e. currently testing) system.

I have installed all the dependencies, and git cloned the repository. The
only pre-req I had to adjust was on automake, the debian/control file says
automake1-9, but the earliest version available seems to be 1-14, so I
changed the debian/control file to say simply automake. I realise that this
may cause problems later on, but I seem to be failing long before this.

But when I use dpkg-buildpackage I get:-

$dpkg-buildpackage
dpkg-buildpackage: source package dbmail
dpkg-buildpackage: source version 3.0.2-1
dpkg-buildpackage: source distribution oneiric
dpkg-buildpackage: source changed by Paul J Stevens <paul@nfg.nl>
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build dbmail
fakeroot debian/rules clean
debian/rules:138: *** missing separator. Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

Any idea as to why this might happen?

I also tried apt-get source dbmail but that gave:-

$apt-get source dbmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
WARNING: The following packages cannot be authenticated!
dbmail
E: Some packages could not be authenticated

I am not sure how I get the source authenticated? Anyone know?

David
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Problem building ARMHF Debian deb file [ In reply to ]
On Tuesday 23 December 2014 18:08:22 David Goodenough wrote:
> I am trying to install dbmail on a Cubieboard-2, which is an armhf system.
>
> The Cubieboard-2 is installed using the standard debian-installer as a
> jessie (i.e. currently testing) system.
>
> I have installed all the dependencies, and git cloned the repository. The
> only pre-req I had to adjust was on automake, the debian/control file says
> automake1-9, but the earliest version available seems to be 1-14, so I
> changed the debian/control file to say simply automake. I realise that this
> may cause problems later on, but I seem to be failing long before this.
>
> But when I use dpkg-buildpackage I get:-
>
> $dpkg-buildpackage
> dpkg-buildpackage: source package dbmail
> dpkg-buildpackage: source version 3.0.2-1
> dpkg-buildpackage: source distribution oneiric
> dpkg-buildpackage: source changed by Paul J Stevens <paul@nfg.nl>
> dpkg-buildpackage: host architecture armhf
> dpkg-source --before-build dbmail
> fakeroot debian/rules clean
> debian/rules:138: *** missing separator. Stop.
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status
> 2
>
> Any idea as to why this might happen?
>
> I also tried apt-get source dbmail but that gave:-
>
> $apt-get source dbmail
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> WARNING: The following packages cannot be authenticated!
> dbmail
> E: Some packages could not be authenticated
>
> I am not sure how I get the source authenticated? Anyone know?
>
> David
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Well I made some progress.

Firstly the lines flagged as in error in the debian/rules file seem to be
unnecessary.

binary-%: build install
make -f debian/rules binary-common $* DH_OPTIONS=-p$*

They can be either commented out or deleted.

I then had a problem where it complained that it could not use quilt
and download the relevant source tarball. Switching from (quilt)
to (git) in debian/source/format cured that, but various files were not
checked in and needed to be to keep things going. Any now it seems to work,
but I have only built 3.0 as yet as that is what the debian directory
seems to have been set up with.

I have also not upgraded the dependencies, but it still seems to build.

Now to try to install and run the .deb file.

David

David
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Problem building ARMHF Debian deb file [ In reply to ]
On 23-12-14 19:08, David Goodenough wrote:
> I am trying to install dbmail on a Cubieboard-2, which is an armhf system.
>
> The Cubieboard-2 is installed using the standard debian-installer as a jessie
> (i.e. currently testing) system.
>
> I have installed all the dependencies, and git cloned the repository. The
> only pre-req I had to adjust was on automake, the debian/control file says
> automake1-9, but the earliest version available seems to be 1-14, so I
> changed the debian/control file to say simply automake. I realise that this
> may cause problems later on, but I seem to be failing long before this.
>
> But when I use dpkg-buildpackage I get:-
>
> $dpkg-buildpackage
> dpkg-buildpackage: source package dbmail
> dpkg-buildpackage: source version 3.0.2-1
> dpkg-buildpackage: source distribution oneiric
> dpkg-buildpackage: source changed by Paul J Stevens <paul@nfg.nl>
> dpkg-buildpackage: host architecture armhf
> dpkg-source --before-build dbmail
> fakeroot debian/rules clean
> debian/rules:138: *** missing separator. Stop.
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

Ai. Replace the spaces at the beginning of that line with a tab.

Weird that debuild never complains about this one.





--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Problem building ARMHF Debian deb file [ In reply to ]
On 28-12-14 12:48, David Goodenough wrote:

>> dpkg-buildpackage: source version 3.0.2-1

You really should update debian/changelog to reflect the version you're
building: 3.2.2-1

> I then had a problem where it complained that it could not use quilt
> and download the relevant source tarball. Switching from (quilt)
> to (git) in debian/source/format cured that, but various files were not
> checked in and needed to be to keep things going. Any now it seems to work,
> but I have only built 3.0 as yet as that is what the debian directory
> seems to have been set up with.

See above.


--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Problem building ARMHF Debian deb file [ In reply to ]
On Sunday 28 December 2014 12:52:47 Paul J Stevens wrote:
> On 28-12-14 12:48, David Goodenough wrote:
> >> dpkg-buildpackage: source version 3.0.2-1
>
> You really should update debian/changelog to reflect the version you're
> building: 3.2.2-1
>
> > I then had a problem where it complained that it could not use quilt
> > and download the relevant source tarball. Switching from (quilt)
> > to (git) in debian/source/format cured that, but various files were not
> > checked in and needed to be to keep things going. Any now it seems to
> > work, but I have only built 3.0 as yet as that is what the debian
> > directory seems to have been set up with.
>
> See above.
I was just using the one from git. I simply did a git clone and then tried
to build it. I have never updated the debian control files before so I
do not really know what I am doing and try to keep changes to a minimum.

Is the changelog the only place I need to adjust the version?

David
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Problem building ARMHF Debian deb file [ In reply to ]
On 28-12-14 13:02, David Goodenough wrote:
> Is the changelog the only place I need to adjust the version?

It is the only place to specify the debian build version, yes.


If you install the devscripts package, there is a helper to edit that
file called 'dch'



--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail