Create a package with Checkinstall failed

4 replies [Last post]
skogkatt
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 2006-11-10
Posts:

Hello, usually to create a package, I use Checkinstall and I run : sudo checkinstall -D scons install. It works with Ardour 0.99, impossible with Ardour 2 (all beta versions), the processus failed to the creation of the .deb.

Here is the end of the log :

OSError: [Errno 2] No such file or directory: '/usr/local/share/ardour2/templates/32 Tracks.template'
scons: building terminated because of errors.

**** Installation failed. Aborting package creation.

Suggestion ?

paul
paul's picture
User offline. Last seen 15 hours 34 min ago. Offline
Joined: 2006-03-16
Posts:

i would guess that its a bug in checkinstall that prevents it from handling filenames with spaces in them. here is part of a log from a normal scons install:

Install file: "ardour_system.rc" as "//usr/local/etc/ardour2/ardour_system.rc"
Install file: "ardour.rc" as "//usr/local/etc/ardour2/ardour.rc"
Install file: "libs/soundtouch/libsoundtouch.so" as "/usr/local/lib64/ardour2/libsoundtouch.so"
Install file: "templates/32 Tracks.template" as "/usr/local/share/ardour2/templates/32 Tracks.template"
Install file: "templates/8 Tracks.template" as "/usr/local/share/ardour2/templates/8 Tracks.template"
Install file: "templates/4 Tracks.template" as "/usr/local/share/ardour2/templates/4 Tracks.template"
Install file: "templates/2 Track.template" as "/usr/local/share/ardour2/templates/2 Track.template"
Install file: "templates/16 Tracks.template" as "/usr/local/share/ardour2/templates/16 Tracks.template"
Install file: "libs/sigc++2/libsigc++2.so" as "/usr/local/lib64/ardour2/libsigc++2.so"
Install file: "libs/libsndfile/libsndfile-ardour.so" as "/usr/local/lib64/ardour2/libsndfile-ardour.so"
Install file: "libs/pbd/libpbd.so" as "/usr/local/lib64/ardour2/libpbd.so"
Install file: "libs/midi++2/libmidi++.so" as "/usr/local/lib64/ardour2/libmidi++.so"

you will note that "32 tracks.template" is the first file with a space in its name. i've run into other *nix tools that have this limitation.

skogkatt
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 2006-11-10
Posts:

Hmmmmmmmm.. I don't understand one thing. I'm not a coder/engineer/computer_specialist, but you are the first software in which I see a space in files :) Why 32 tracks.template and not 32_tracks.template ?

sampo
User offline. Last seen 11 weeks 17 hours ago. Offline
Joined: 2006-03-16
Posts:

Because spaces are valid characters in file names? ;)

My point is that checkinstall really needs to be able to work with spaces in file names. This is not a problem with Ardour, but a problem with checkinstall.

paul
paul's picture
User offline. Last seen 15 hours 34 min ago. Offline
Joined: 2006-03-16
Posts:

I guess you haven't used an Apple OS X system or a Windows machine recently. They are full of files with spaces in their names. Or check out how an iPod shows up on a linux system:

% ls /media
Hannah Barton’s Video iPod

Spaces are entirely legal in filenames, though they can be inconvenient when using the command line and shell scripts that don't take their legality into account.