Probem in Packaging New Software Article

Bug #1248353 reported by Morgan Fraughton
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu Packaging Guide
Fix Released
Critical
Andrew Starr-Bochicchio

Bug Description

I am attempting to get through the "packaging new software" section (http://developer.ubuntu.com/packaging/html/packaging-new-software.html) of ubuntu's packaging guide. I have hit a roadblock and am hoping that somebody can point me in the right direction.

When I get to the point were it asks me to insert the code:

[CODE]$ bzr builddeb -- -us -uc[/CODE]

I get this message in the terminal:

[CODE]
make[1]: Entering directory `/home/morgan/build-area/hello-2.9'
There seems to be no Makefile in this directory.
You must run ./configure before running 'make'.
make[1]: *** [abort-due-to-no-makefile] Error 1
make[1]: Leaving directory `/home/morgan/build-area/hello-2.9'
dh_auto_clean: make -j1 distclean returned exit code 2
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1361:
dpkg-buildpackage -rfakeroot -D -us -uc failed
bzr: ERROR: The build failed.
morgan@morgans-laptop:~/hello/debian$
[/CODE]

I am assuming that this means I am missing a makefile so it is not able to get past that. I just dont understand why I am missing a makefile or where to get it.

To get to this point I have followed the "GETTING SET UP" article (http://developer.ubuntu.com/packaging/html/getting-set-up.html) and the "PACKAGING NEW SOFTWARE" article (http://developer.ubuntu.com/packaging/html/packaging-new-software.html) point by point.

Related branches

Changed in ubuntu-packaging-guide:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

I can confirm this. Further more, replacing all instances with of 2.9 with 2.7 allows everything to work as expected again. So, this is a regression introduced in revision 445: http://bazaar.launchpad.net/~ubuntu-packaging-guide-team/ubuntu-packaging-guide/trunk/revision/445

Revision history for this message
Morgan Fraughton (morganfraughton) wrote :

Are you saying I should download the file again and rename it to 2.7 then go through the tutorial again?

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote : Re: [Bug 1248353] Re: Probem in Packaging New Software Article

On Tue, Nov 5, 2013 at 7:34 PM, Morgan Fraughton
<email address hidden> wrote:
> Are you saying I should download the file again and rename it to 2.7
> then go through the tutorial again?

No. It seems to be an issues with the 2.9 release of "hello." Until
just recently, the tutorial used the 2.7 release. I guess when it was
updated, no one actually tested it.

So, to successfully finish the tutorial you could just use the 2.7
release. instead of running:

wget -O hello-2.9.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.9.tar.gz"

run:

wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"

and do the same for any other command in the tutorial.

Revision history for this message
Morgan Fraughton (morganfraughton) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks. I'll give it a shot

On 13-11-05 04:49 PM, Andrew Starr-Bochicchio wrote:
> On Tue, Nov 5, 2013 at 7:34 PM, Morgan Fraughton
> <email address hidden> wrote:
>> Are you saying I should download the file again and rename it to
>> 2.7 then go through the tutorial again?
>
> No. It seems to be an issues with the 2.9 release of "hello."
> Until just recently, the tutorial used the 2.7 release. I guess
> when it was updated, no one actually tested it.
>
> So, to successfully finish the tutorial you could just use the 2.7
> release. instead of running:
>
> wget -O hello-2.9.tar.gz
> "http://ftp.gnu.org/gnu/hello/hello-2.9.tar.gz"
>
> run:
>
> wget -O hello-2.7.tar.gz
> "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"
>
> and do the same for any other command in the tutorial.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSeZYqAAoJEEKnNKNWdm9I2fAIAJcztymajao8HFJGXFMXRIcx
JPGi+0mwIoG73O/Lq4QvlUziQ8NtX3Dit9cuWDNyLvNnSbmVUnEoM8/+Uhq3ZNrp
8NWb3FNhW2HXkKeRgUNPC5Jd0fBYg5KPg/RJv7GWsD/E6VuDZUkH2+moWmejWK0/
IUl9KEdAoeKyaiEGcSBGIulwvxOUszqwmp64H+tkPiAo9Bxw9K3c7FelPI/gSBDl
l9S5WRDGdSVp6dVEHm+kSyJ1OHGg4lFNXlS4XOMPpaVUUfoc57RmsikUq0pQmtVm
j6TndOz/p2oN/mPP9m7meg8G+sq4GOXP3PFcMgbugDiHa1GuEZLXvUjv/hqJj/s=
=9zZ1
-----END PGP SIGNATURE-----

Changed in ubuntu-packaging-guide:
status: Confirmed → In Progress
importance: High → Critical
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Changed in ubuntu-packaging-guide:
status: In Progress → Fix Committed
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

This is live on the web site, so setting Fix Released. The bug never made it into a released version of the package.

Changed in ubuntu-packaging-guide:
status: Fix Committed → Fix Released
Revision history for this message
Ken Gilmer (kgilmer) wrote :

I am experiencing this same issue with hello-2.10 as described on http://packaging.ubuntu.com/html/packaging-new-software.html.

Revision history for this message
Ken Gilmer (kgilmer) wrote :

I can also verify that reverting to 2.7 resolves my issue. So whatever was broken in 2.9 is also seemingly broken in 2.10.

Revision history for this message
adutzu89 (verbanady) wrote :

adi@adi-ubuntu:~/hello$ bzr builddeb -- -us -uc
Building using working tree
Building package in normal mode
Purging the build dir: /home/adi/build-area/hello-2.10
Looking for a way to retrieve the upstream tarball
Upstream tarball already exists in build directory, using that
Building the package in /home/adi/build-area/hello-2.10, using debuild -us -uc
 dpkg-buildpackage -rfakeroot -us -uc -ui
dpkg-buildpackage: info: source package hello
dpkg-buildpackage: info: source version 2.10-0ubuntu1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Verban Adrian <email address hidden>
 dpkg-source --before-build hello-2.10
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
 make -j4 -O distclean
make[1]: Entering directory '/home/adi/build-area/hello-2.10'
There seems to be no Makefile in this directory.
You must run ./configure before running 'make'.
GNUmakefile:106: recipe for target 'abort-due-to-no-makefile' failed
make[1]: *** [abort-due-to-no-makefile] Error 1
make[1]: Leaving directory '/home/adi/build-area/hello-2.10'
dh_auto_clean: make -j4 -O distclean returned exit code 2
debian/rules:18: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed
bzr: ERROR: The build failed.

Error in 2019.

Revision history for this message
Benjamin Allot (ballot) wrote :

The issue is that dh_auto_clean calls for a "make -j4 distclean" but the Makefile is not generated by "configure" yet.

A workaround is to add

  override_dh_auto_clean:

in your debian/rules file.

Revision history for this message
John Losito (jlosito) wrote :

Shouldn't the tutorial be set back to install the source for 2.7 since it's broken for 2.10?

Revision history for this message
Abdul Rauf (armujahid) wrote :

yes it is broken for 2.10. So status of this issue should be changed from "Fixed released" to something else like "New". Or we should open a new issue.
For now the workaround mentioned by Benjamin Allot (ballot) is working for 2.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.