"cp: target `4.3a.tar.gz-2.6.26-2-686.postinst' is not a directory" and "dpkg-buildpackage -rfakeroot -D -us -uc -b -i failed"

Bug #374760 reported by Ralf Hauser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
truecrypt-installer
Fix Released
High
Jari Aalto

Bug Description

just saw that this is the better place to report this than to send personal eMail

Hi,

On etch, we had truecrypt nicely working based on truecrypt-installer_20071024-1_i386.deb

Now, I am following your instructions in http://www.debian-administration.org/articles/506 to get it working on lenny again.

Unfortunately, I get:
<<Desktop# tc-dpkg --auto --install
Time-stamp: <2008-10-06 18:40:58 Jari Aalto (root)>
/usr/src/truecrypt-upstream-source-4.3a/truecrypt-4.3a-source-code.tar.gz: OK
Wait, checking build dependencies
/usr/src/truecrypt-upstream-source-4.3a/truecrypt-4.3a-source-code.tar.gz: OK
Wait, removing old sources /usr/src/truecrypt-4.3a-source-code
Wait, unpacking /usr/src/truecrypt-upstream-source-4.3a/truecrypt-4.3a-source-code.tar.gz
Wait, getting 'debian' control directory with: bzr branch http://bazaar.launchpad.net/~jari-aalto/truecrypt-deb/trunk/
Branched 339 revision(s).
This may take a while. Starting *.deb building process in /usr/src/truecrypt-4.3a-source-code
 dpkg-buildpackage -rfakeroot -D -us -uc -b -i
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package truecrypt
dpkg-buildpackage: source version 4.3a-13
dpkg-buildpackage: source changed by Jari Aalto <email address hidden>
dpkg-buildpackage: host architecture i386 fakeroot debian/rules clean # prepare-control: generate debian/control sed -e "s/_KVERM_/2.6.26/g" \
     -e "s/_KVER_/2.6.26-2-686/g"\
     -e "s/_TRVER_/4.3a 4.3a.tar.gz/g"\
     -e "s/-_KDEP_//g"\
     -e "s/_KDEPP_//g"\
     -e "s/_KDEP_//g"\
      debian/control.in > debian/control cd debian && \
 cp tc-modules.postinst.in \
    tc-modules-4.3a 4.3a.tar.gz-2.6.26-2-686.postinst
cp: target `4.3a.tar.gz-2.6.26-2-686.postinst' is not a directory
make: *** [prepare-control] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc -b -i failed Desktop#>>

First, there was a failure "fakeroot"

I guess also a dependency on "fakeroot" should be added.

Any hints what to do next?

Many thanks in advance!

   Regards

       Ralf

Revision history for this message
Ralf Hauser (hauser) wrote :

uname -a
   Linux hauser-debug 2.6.26-2-686 #1 SMP Thu Mar 26 01:08:11 UTC 2009 i686 GNU/Linux

bzr --version
Bazaar (bzr) 1.5
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/hauser/.bazaar
  Bazaar log file: /home/hauser/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

 head /etc/issue.net
Debian GNU/Linux 5.0

Revision history for this message
Ralf Hauser (hauser) wrote :

hauser-debug:/usr/src/truecrypt-4.3a-source-code/debian# ls -lart
total 156
drwxr-xr-x 11 root src 4096 2009-05-11 10:00 ..
-rwxr-xr-x 1 root root 38 2009-05-11 10:00 tc-modules.postrm.in
-rwxr-xr-x 1 root root 38 2009-05-11 10:00 tc-modules.postinst.in
-rwxr-xr-x 1 root root 532 2009-05-11 10:00 tc-modules-modprobe.postrm
-rwxr-xr-x 1 root root 4385 2009-05-11 10:00 tc-modules-modprobe.postinst
-rw-r--r-- 1 root root 101 2009-05-11 10:00 tc.modprobe
-rwxr-xr-x 1 root root 276 2009-05-11 10:00 tc-doc.prerm
-rwxr-xr-x 1 root root 208 2009-05-11 10:00 tc-doc.postinst
-rw-r--r-- 1 root root 242 2009-05-11 10:00 tc-doc.lintian-override
-rw-r--r-- 1 root root 248 2009-05-11 10:00 tc-doc.doc-base
-rw-r--r-- 1 root root 235 2009-05-11 10:00 tc-cli.lintian-override
-rwxr-xr-x 1 root root 24191 2009-05-11 10:00 rules
-rw-r--r-- 1 root root 6048 2009-05-11 10:00 README.Debian-devel
-rw-r--r-- 1 root root 2116 2009-05-11 10:00 README.Debian
drwxr-xr-x 2 root root 4096 2009-05-11 10:00 patches
-rw-r--r-- 1 root root 24 2009-05-11 10:00 docs
-rw-r--r-- 1 root root 9 2009-05-11 10:00 dirs
-rw-r--r-- 1 root root 28039 2009-05-11 10:00 copyright
-rw-r--r-- 1 root root 1596 2009-05-11 10:00 control.in
-rw-r--r-- 1 root root 2 2009-05-11 10:00 compat
-rw-r--r-- 1 root root 9561 2009-05-11 10:00 changelog
drwxr-xr-x 6 root root 4096 2009-05-11 10:00 .bzr
drwxr-xr-x 4 root root 4096 2009-05-11 10:00 .
-rw-r--r-- 1 root root 1600 2009-05-11 10:00 control

now I did a manual
     hauser-debug:/usr/src/truecrypt-4.3a-source-code/debian# mkdir 4.3a.tar.gz-2.6.26-2-686.postinst
but this didn't help because it gets overwritten

hauser-debug:/home/hauser/Desktop# diff -u /usr/src/truecrypt-4.3a-source-code/debian/rules rules
--- /usr/src/truecrypt-4.3a-source-code/debian/rules 2009-05-11 10:15:28.000000000 +0200
+++ rules 2009-05-11 10:13:10.000000000 +0200
@@ -668,6 +668,7 @@
 endif

  cd debian && \
+ mkdir $(PACKAGE)-modules-$(VERSION).postinst \
  cp $(PACKAGE)-modules.postinst.in \
     $(PACKAGE)-modules-$(VERSION).postinst

and then, at least

hauser-debug:/usr/src/truecrypt-4.3a-source-code/debian# make -f rules
test -d debian/patched || install -d debian/patched
dpatch apply-all
dpatch cat-all >>patch-stampT
mv -f patch-stampT patch-stamp

Revision history for this message
Ralf Hauser (hauser) wrote :

oops, I guess we get there in a different way:

the reason that it didn't work was that the rules script stumbled of the tar.gz file being in the wrong location

a fix might be

 TRVER := $(shell cd /usr/src && find . -name 'truecrypt-4*' -type d | \
              sed 's,./,, ; s/-source-code// ; s/.*-//; s,/.*,,' )

Revision history for this message
Jari Aalto (jari-aalto) wrote :

Committed to r352, Thanks.

Revision history for this message
Jari Aalto (jari-aalto) wrote :

Fixed in r352

Changed in truecrypt-installer:
assignee: nobody → Jari Aalto (jari-aalto)
importance: Undecided → High
status: New → 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.