dpkg-buildpackage woes

Leslie Viljoen leslie at camary.co.za
Tue Jun 21 14:26:08 CDT 2005


Hi!

After building my first package successfully, I noticed that the 
"binary" installed
in /usr/bin was a script to cd to a certain directory and then run the 
real binary.
That script was created by makefiles and the paths were now wrong.

To fix that, I tried adding these lines to the "install" target in 
debian/rules:

echo "cd 
$(CURDIR)/debian/tesseracttrainer/usr/share/tesseracttrainer/system" >   
/$(CURDIR)/debian/tesseracttrainer/usr/bin/tesseracttrainer
echo "$(CURDIR)/debian/tesseracttrainer/usr/bin/tesseracttrainerbinary" 
 >> /$(CURDIR)/debian/tesseracttrainer/usr/bin/tesseracttrainer

I think these lines work, but now I can't build the package again. The 
debian new
maint guide says you can make a .deb file without rebuilding like this:

fakeroot debian/rules binary

This I tried, but I don't understand what it's doing. It seemed to go 
through the whole
build process again.

So I tried "dpkg-buildpackage -rfakeroot" again, and got a whole lot of 
errors about not
being able to represent the xxx.o files in source. So I tried "make 
clean" and make
complained about a certain subdirectory in the source not having a 
"clean" target.
So I ran "./configure" again to re-create the makefiles. Then I ran 
"make clean" and
it seemed to work.

Back to "dpkg-buildpackage -rfakeroot" - and after a lot of building I get:

dpkg-shlibdeps: warning: diversions involved - output may be incorrect
 diversion by nvidia-glx from: /usr/lib/libGL.so.1
dpkg-shlibdeps: warning: diversions involved - output may be incorrect
 diversion by nvidia-glx to: /usr/lib/nvidia/libGL.so.1.xlibmesa
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `tesseracttrainer' in 
`../tesseracttrainer_0.1.4-1_i386.deb'.
dh_desktop
 signfile tesseracttrainer_0.1.4-1.dsc

You need a passphrase to unlock the secret key for
user: "Leslie Viljoen <leslie at camary.co.za>"
1024-bit DSA key, ID 300F6AD2, created 2005-06-20


 dpkg-genchanges
dpkg-genchanges: error: badly formed line in files list file, line 1


So now I think everything is hopelessly messed up. Where do
I go from here? Can I get back to my .orig package + my changes
and now + my new changes (to the debian/rules file) ?



Leslie





More information about the ubuntu-devel mailing list