merge-upstream tarball results in ERROR: [Errno 2] No such file or directory

Bug #507270 reported by Dimitri John Ledkov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
Critical
Unassigned

Bug Description

$ bzr merge-upstream ../hello_2.4.orig.tar.gz --package hello --version 2.4-1
No distribution specified, and no changelog, assuming 'debian'
bzr: ERROR: [Errno 2] No such file or directory

I'm using the tip of builddeb trunk - 393.

I've runt the test-suite got 1 error:

(It used by global config in the test don't know whether this is expected....)

$ bzr test-builddeb
bzr selftest: /usr/bin/bzr
   /usr/lib/python2.6/dist-packages/bzrlib
   bzr-2.1.0dev5 python-2.6.4 Linux-2.6.31-18-generic-i686-with-Ubuntu-9.10-karmic

======================================================================
FAIL: test_contents_taken_from_export (bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo)
----------------------------------------------------------------------
_StringException: Text attachment: log
------------
80.266 creating repository in file:///tmp/testbzr-Fztzse.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/.bzr/.
80.269 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x9cf250c> in file:///tmp/testbzr-Fztzse.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/.bzr/
80.280 trying to create missing lock '/tmp/testbzr-Fztzse.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/.bzr/checkout/dirstate'
80.280 opening working tree '/tmp/testbzr-Fztzse.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work'
80.293 run bzr: ['bd-do', 'echo a > debian/changelog']
80.293 bzr arguments: ['bd-do', 'echo a > debian/changelog']
80.294 encoding stdout as sys.stdout encoding 'UTF-8'
80.299 opening working tree '/tmp/testbzr-Fztzse.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work'
80.303 Using True for merge, taken from default.conf
80.304 Using 'debian/changelog' to get package information
80.305 Using /home/dmitrij/src/build-dir for build-dir, taken from /home/dmitrij/.bazaar/builddeb.conf
80.305 Using /home/dmitrij/src/.tarballs for orig-dir, taken from /home/dmitrij/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
80.650 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1131, in run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1027, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 638, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/dmitrij/.bazaar/plugins/builddeb/cmds.py", line 810, in run
    builder.export()
  File "/home/dmitrij/.bazaar/plugins/builddeb/builder.py", line 75, in export
    self.distiller.distill(self.target_dir)
  File "/home/dmitrij/.bazaar/plugins/builddeb/source_distiller.py", line 83, in distill
    self._distill(target)
  File "/home/dmitrij/.bazaar/plugins/builddeb/source_distiller.py", line 124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/dmitrij/.bazaar/plugins/builddeb/upstream.py", line 402, in provide
    raise MissingUpstreamTarball(self._tarball_name())
MissingUpstreamTarball: Unable to find the needed upstream tarball: test_0.1.orig.tar.gz.

80.650 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look for the upstream tarball.\napt could not find the needed tarball.\nNo debian/rules file to try and use for a get-orig-source rule\nNo watch file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 368, in _run_test_method
    testMethod()
  File "/home/dmitrij/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line 153, in test_contents_taken_from_export
    self.run_bzr(['bd-do', 'echo a > debian/changelog'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------

----------------------------------------------------------------------
Ran 264 tests in 79.207s

FAILED (failures=1)

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: New → Confirmed
Revision history for this message
James Westby (james-w) wrote : Re: [Bug 507270] [NEW] merge-upstream tarball results in ERROR: [Errno 2] No such file or directory

On Thu, 14 Jan 2010 00:42:09 -0000, Dmitrijs Ledkovs <email address hidden> wrote:
> Public bug reported:
>
> $ bzr merge-upstream ../hello_2.4.orig.tar.gz --package hello --version 2.4-1
> No distribution specified, and no changelog, assuming 'debian'
> bzr: ERROR: [Errno 2] No such file or directory

I think, embarassingly, this is that the path to the tar executable is
wrong.

I think I fixed this the other day, but I could be wrong. Would you test
tip of lp:bzr-builddeb again please?

Thanks,

James

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [Bug 507270] [NEW] merge-upstream tarball results in ERROR: [Errno 2] No such file or directory

On 31 January 2010 23:00, James Westby <email address hidden> wrote:
> On Thu, 14 Jan 2010 00:42:09 -0000, Dmitrijs Ledkovs <email address hidden> wrote:
>> Public bug reported:
>>
>> $ bzr merge-upstream ../hello_2.4.orig.tar.gz --package hello --version 2.4-1
>> No distribution specified, and no changelog, assuming 'debian'
>> bzr: ERROR: [Errno 2] No such file or directory
>
> I think, embarassingly, this is that the path to the tar executable is
> wrong.
>
> I think I fixed this the other day, but I could be wrong. Would you test
> tip of lp:bzr-builddeb again please?
>

I do have pristine-tar installed, I'm running nightly bzr & bzrtools
and I've double checked that the only builddeb I have is the one in
~/.bazaar/plugins

Problem persists......

$ apt-get source hello
$ bzr init hello
$ cd hello
$ bzr mu ../hello_2.4.orig.tar.gz --package hello --version 2.4
No distribution specified, and no changelog, assuming 'debian'
bzr: ERROR: [Errno 2] No such file or directory

$ bzr info ~/.bazaar/plugins/builddeb/
Standalone tree (format: 2a)
Location:
  branch root: /home/dmitrij/.bazaar/plugins/builddeb

Related branches:
  parent branch:
bzr+ssh://bazaar.launchpad.net/~bzr-builddeb-hackers/bzr-builddeb/trunk/

$ bzr revno ~/.bazaar/plugins/builddeb/
397

--
With best regards

Dmitrijs Ledkovs (for short Dima),
Ледков Дмитрий Юрьевич

() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 507270] [NEW] merge-upstream tarball results in ERROR: [Errno 2] No such file or directory

On Mon, 01 Feb 2010 00:13:01 -0000, Dmitrijs Ledkovs <email address hidden> wrote:
> On 31 January 2010 23:00, James Westby <email address hidden> wrote:
> > On Thu, 14 Jan 2010 00:42:09 -0000, Dmitrijs Ledkovs <email address hidden> wrote:
> >> Public bug reported:
> >>
> >> $ bzr merge-upstream ../hello_2.4.orig.tar.gz --package hello --version 2.4-1
> >> No distribution specified, and no changelog, assuming 'debian'
> >> bzr: ERROR: [Errno 2] No such file or directory
> >
> > I think, embarassingly, this is that the path to the tar executable is
> > wrong.
> >
> > I think I fixed this the other day, but I could be wrong. Would you test
> > tip of lp:bzr-builddeb again please?
> >
>
> I do have pristine-tar installed, I'm running nightly bzr & bzrtools
> and I've double checked that the only builddeb I have is the one in
> ~/.bazaar/plugins
>
> Problem persists......
>
> $ apt-get source hello
> $ bzr init hello
> $ cd hello
> $ bzr mu ../hello_2.4.orig.tar.gz --package hello --version 2.4
> No distribution specified, and no changelog, assuming 'debian'
> bzr: ERROR: [Errno 2] No such file or directory

Hmm, please run with -Derror so that we can see where the error is being
raised.

Thanks,

James

Revision history for this message
Robert Collins (lifeless) wrote :

tar is set as /usr/bin/tar, but tar should be located via path. on karmic it is in /bin/tar, for instance.

Changed in bzr-builddeb:
importance: Undecided → Critical
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

=) Stole your valuable triaging

James Westby (james-w)
Changed in bzr-builddeb:
status: Confirmed → Fix Committed
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Dmitrijs Ledkovs wants to stay in touch on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Dmitrijs Ledkovs

Confirm that you know Dmitrijs Ledkovs
https://www.linkedin.com/e/isd/1067430394/Nk1dgtPo/

------
(c) 2010, LinkedIn Corporation

James Westby (james-w)
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
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.