bzr crashed when attempting to build a package for ppa
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
No need to repeat here that the documentation to properly build a package is of appalling quality. That has been widely commented and is probably a major hurdle why people don't "package".
Sorry, so that being said, I am using the little documentation there is on those pages "Ubuntu packaging guide":
https:/
Environment: On a fresh 20.04 I ran the command:
Steps to reproduce: (following the above documentation from a fresh 20.04)
sudo apt install gnupg pbuilder ubuntu-dev-tools apt-file
(Which pulled a gazillion packages... but ran successfully)
gpg and ssh keys steps where already done from 16.04 and the gpg key has been imported... this is anyway of no importance since the crash occurs much before we need that!
Then we move to page 4 of the documentation since this is for packaging "new software".
https:/
Now we install as instructed:
sudo apt-get install dh-make bzr-builddeb
Which successfully pulls another couple of packages.
Next step is to build a tar with all my files to compile. I use here the same commands that works fine with 16.04 and successfully produces a tar in /tmp/1fichierfs.tar
Then, as instructed I run:
bzr dh-make 1fichierfs 1.7.2~Focal /tmp/1fichierfs.tar
And immediately get a stacktrace:
$ bzr dh-make 1fichierfs 1.7.2~Focal /tmp/1fichierfs.tar
brz: ERROR: AttributeError: 'NoneType' object has no attribute 'initialize_
Traceback (most recent call last):
File "/usr/lib/
tree = workingtree.
File "/usr/lib/
control = controldir.
File "/usr/lib/
return klass.open_
File "/usr/lib/
transport, format = _mod_transport.
File "/usr/lib/
return action(transport)
File "/usr/lib/
return transport, ControlDirForma
File "/usr/lib/
raise errors.
breezy.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
a_controldir = controldir.
File "/usr/lib/
transport, format = _mod_transport.
File "/usr/lib/
return action(transport)
File "/usr/lib/
return transport, ControlDirForma
File "/usr/lib/
raise errors.
breezy.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
return _do_with_cleanups(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
tree = dh_make.
File "/usr/lib/
tree = _get_tree(
File "/usr/lib/
branch = create_
File "/usr/lib/
controldir = klass.create(base, format, possible_
File "/usr/lib/
return format.
AttributeError: 'NoneType' object has no attribute 'initialize_
brz 3.0.2 on python 3.8.2 (Linux-
arguments: ['/usr/bin/bzr', 'dh-make', '1fichierfs', '1.7.2~Focal',
'/tmp/
plugins: bash_completion
commitfromn
email[3.0.2], fastimport[3.0.2], launchpad[3.0.2], mtn[3.0.2],
netrc_
propose[3.0.2], repodebug[3.0.2], stats[3.0.2], upload[3.0.2],
weave_
encoding: 'utf-8', fsenc: 'utf-8', lang: 'fr_FR.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
-------
As if the poor quality of the documentation was not enough...
Fortunately it still works with my 16.04 and I could build (just to check it builds!) and upload the sources to my ppa where they built perfectly for Xenial/
Unrelated to the current bug, the 16.04 commands fails the lintian step... which has the only consequence of having to wait for a "timeout" like 2 minutes. This is not an big issue anyway since the documentation is so bad, I have really no clue where to find leads to fix what Lintian is spitting at my face with the 18.04 iteration that works fine!
-------
This bud was probably automatically reported by apport, but I wanted to give you some context in the case that could help fixing things.
Attached a crash file about this bug.
Hello, this report has stayed "undecided" / "unassigned" for 3 weeks now.
It makes the Ubuntu ppa documentation irrelevant: https:/ /packaging. ubuntu. com/html/ packaging- new-software. html
Was it the right place to post it or should I post it somewhere else, for instance "bzr developers"?