doesn't created needed directory for TMP

Bug #795503 reported by KarlGoetz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg
Incomplete
Undecided
Unassigned

Bug Description

Sorry if this is a bzr-buildpackage bug and i got this wrong.

I kept running out of space on /tmp running bzr import-dsc (its a 2gb tempfs, it may not have been enough), so tried to set a different temporary directory with TMP=. This directory not exiting seems to be handled quite poorly, so i'm putting in this ticket.

21:55:24 kgoetz@epicfail: ~/dsc-import-test $ TMP="~/bzr-temp" bzr import-dsc --verbose /home/debianmirror/pool/main/l/linux-2.6/linux-2.6_2.6.32-31.dsc
bzr: ERROR: exceptions.AssertionError: dpkg-source -x failed, output:
dpkg-source: info: extracting linux-2.6 in linux-2.6-2.6.32
dpkg-source: info: unpacking linux-2.6_2.6.32.orig.tar.gz
dpkg-source: info: applying linux-2.6_2.6.32-31.diff.gz
patch: **** Can't create file '~/bzr-temp/ppLI1UpJ' : No such file or directory
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -g0 -b -z .dpkg-orig < /home/kgoetz/linux-2.6_2.6.32-31.diff.gz gave error exit status 2

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/kgoetz/.bazaar/plugins/builddeb/cmds.py", line 882, in run
    self.import_many(db, files_list, orig_target)
  File "/home/kgoetz/.bazaar/plugins/builddeb/cmds.py", line 824, in import_many
    db.import_package(os.path.join(orig_target, filename))
  File "/home/kgoetz/.bazaar/plugins/builddeb/import_dsc.py", line 1259, in import_package
    extractor.extract()
  File "/home/kgoetz/.bazaar/plugins/builddeb/import_dsc.py", line 1481, in extract
    (stdout,)
AssertionError: dpkg-source -x failed, output:
dpkg-source: info: extracting linux-2.6 in linux-2.6-2.6.32
dpkg-source: info: unpacking linux-2.6_2.6.32.orig.tar.gz
dpkg-source: info: applying linux-2.6_2.6.32-31.diff.gz
patch: **** Can't create file '~/bzr-temp/ppLI1UpJ' : No such file or directory
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -g0 -b -z .dpkg-orig < /home/kgoetz/linux-2.6_2.6.32-31.diff.gz gave error exit status 2

bzr 2.1.2 on python 2.6.6 (Linux-2.6.32-5-686-bigmem-i686-with-debian-6.0.1)
arguments: ['/usr/bin/bzr', 'import-dsc', '--verbose', '/home/debianmirror/pool/main/l/linux-2.6/linux-2.6_2.6.32-31.dsc']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.utf8'
plugins:
  builddeb /home/kgoetz/.bazaar/plugins/builddeb [2.7.0dev]
  bzrtools /home/kgoetz/.bazaar/plugins/bzrtools [2.4.0]
  cia /home/kgoetz/.bazaar/plugins/cia [1.0.0dev]
  email /home/kgoetz/.bazaar/plugins/email [unknown]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  fastimport /home/kgoetz/.bazaar/plugins/fastimport [0.10.0dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.2]
  interactive /home/kgoetz/.bazaar/plugins/interactive [1.2.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.2]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.1.2]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.2]
  pager /home/kgoetz/.bazaar/plugins/pager [unknown]
  rewrite /home/kgoetz/.bazaar/plugins/rewrite [0.7.0dev]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.3]

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
22:02:52 kgoetz@epicfail: ~/dsc-import-test $

Revision history for this message
KarlGoetz (kgoetz) wrote :

reassigning

affects: bzr → bzr-builddeb
Revision history for this message
KarlGoetz (kgoetz) wrote :

i just tried without the quotes and it still fails. the TMP dir has to exist or it backtrace.

Jelmer Vernooij (jelmer)
affects: bzr-builddeb → dpkg
Revision history for this message
Martin Pool (mbp) wrote :

Do unix programs in general create $TMPDIR if it doesn't exist? I don't think they do.

Changed in dpkg:
status: New → Incomplete
Revision history for this message
KarlGoetz (kgoetz) wrote : Re: [Bug 795503] Re: doesn't created needed directory for TMP

On Tue, 21 Jun 2011 16:06:36 -0000
Martin Pool <email address hidden> wrote:

> Do unix programs in general create $TMPDIR if it doesn't exist? I
> don't think they do.
>
> ** Changed in: dpkg
> Status: New => Incomplete
>

Not in the general case. I don't particularly mind how this is
resolved, it'd just be nice if bzr didn't backtrace if $TMP is missing

--
Karl Goetz, (Kamping_Kaiser / VK5FOSS)
Debian contributor / gNewSense Maintainer
http://www.kgoetz.id.au
No, I won't join your social networking group

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.