-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/31/10 8:34 AM, Ebrahim Mayat wrote:
> Hello
> 
> I have come across a little installation problem when preparing a  
> package:
> 
>> #! /bin/sh -ev
>> cd /sw/src/fink.build/qsynth-0.3.5-350/qsynth-0.3.5/src/qsynth.app/ 
>> Contents/Resources
>>   png2icns qsynth.icns /sw/src/fink.build/qsynth-0.3.5-350/ 
>> qsynth-0.3.5/src/images/qsynth.png
>> Using icns type 'il32', mask 'l8mk' for '/sw/src/fink.build/ 
>> qsynth-0.3.5-350/qsynth-0.3.5/src/images/qsynth.png'
>> Saved icns file to qsynth.icns
>>   /usr/bin/defaults write /sw/src/fink.build/qsynth-0.3.5-350/ 
>> qsynth-0.3.5/src/qsynth.app/Contents/Info CFBundleIconFile qsynth.icns
>>   #/usr/libexec/PlistBuddy -c 'Set :CFBundleIconFile "qsynth.icns"'  
>> %b/%n.app/Contents/Info.plist
>>   /bin/chmod a+r /sw/src/fink.build/qsynth-0.3.5-350/qsynth-0.3.5/ 
>> src/qsynth.app/Contents/Info.plist
>>   rm /sw/src/fink.build/qsynth-0.3.5-350/qsynth-0.3.5/src/qsynth.app/ 
>> Contents/Resources/empty.lproj
>> #mkdir -p %i/Applications/%n.app
>> mkdir -p /sw/src/fink.build/root-qsynth-0.3.5-350/sw/share/qsynth
>> install -d -m 0755 /sw/src/fink.build/qsynth-0.3.5-350/qsynth-0.3.5/ 
>> src/qsynth.app /sw/src/fink.build/root-qsynth-0.3.5-350/sw/ 
>> Applications/qsynth.app
>> cp -pR /sw/src/fink.build/qsynth-0.3.5-350/qsynth-0.3.5/src/ 
>> qsynth.app /sw/src/fink.build/root-qsynth-0.3.5-350/sw/Applications/
>> sudo -u fink-bld [ENV] sh -c/var/tmp/tmp.6.bdfKvB
>> /usr/bin/install -d -m 700 /sw/src/fink.build/root-qsynth-0.3.5-350/ 
>> sw/share/doc/qsynth
>> /bin/cp -r COPYING /sw/src/fink.build/root-qsynth-0.3.5-350/sw/share/ 
>> doc/qsynth/
>> /bin/cp -r README /sw/src/fink.build/root-qsynth-0.3.5-350/sw/share/ 
>> doc/qsynth/
>> /bin/cp -r README-OSX /sw/src/fink.build/root-qsynth-0.3.5-350/sw/ 
>> share/doc/qsynth/
>> /bin/chmod -R go=u-w /sw/src/fink.build/root-qsynth-0.3.5-350/sw/ 
>> share/doc/qsynth
>> /usr/bin/install -d -m 755 /sw/src/fink.build/root-qsynth-0.3.5-350/ 
>> sw/Applications
>> cp -pR 'qsynth.app' '/sw/src/fink.build/root-qsynth-0.3.5-350/sw/ 
>> Applications/'
>> cp: qsynth.app: No such file or directory
>> ### execution of cp failed, exit code 1
>> ### execution of /var/tmp/tmp.6.bdfKvB failed, exit code 1
>> Removing runtime build-lock...
>> Removing build-lock package...
>> /sw/bin/dpkg-lockwait -r fink-buildlock-qsynth-0.3.5-350
>> (Reading database ... 165942 files and directories currently  
>> installed.)
>> Removing fink-buildlock-qsynth-0.3.5-350 ...
>> Failed: phase installing: qsynth-0.3.5-350 failed
> 
> Below is the excerpt from the corresponding info file"
> 
>> ###
>> CompileScript: <<
>> #!/bin/sh -ev
>>  ./configure %c
>>   make
>> <<
>> ###
>> InstallScript: <<
>> #! /bin/sh -ev
>> cd %b/src/%n.app/Contents/Resources
>>   png2icns qsynth.icns %b/src/images/qsynth.png
>>   /usr/bin/defaults write %b/src/%n.app/Contents/Info  
>> CFBundleIconFile qsynth.icns
>>   #/usr/libexec/PlistBuddy -c 'Set :CFBundleIconFile "qsynth.icns"'  
>> %b/%n.app/Contents/Info.plist
>>   /bin/chmod a+r %b/src/%n.app/Contents/Info.plist
>>   rm %b/src/%n.app/Contents/Resources/empty.lproj
>> #mkdir -p %i/Applications/%n.app
>> mkdir -p %i/share/%n
>> install -d -m 0755 %b/src/%n.app %i/Applications/%n.app
>> cp -pR %b/src/%n.app %i/Applications/
>> <<
> 
> Any idea how I could remedy the above error ?
> 
> Thanks in advance.
> Ebrahim
> 

The last two lines of your InstallScript are doing what AppBundles
should be doing.  And you didn't specify your AppBundles: line, but I'll
bet it just has

AppBundles: %n.app

which is giving you the error you're experiencing, since your app bundle
isn't in the top of your build directory, but is in the src/ subdirectory.

Either try

AppBundles: src/%n.app

and get rid of the last two lines of your InstallScript, or get rid of
the AppBundles line.

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwD02IACgkQB8UpO3rKjQ97+ACgn0Sk+5twCDOjRK+uAQCeGyrZ
HmsAniIxxFoAFqvuBfddcUf/xYsSlxo/
=o4r4
-----END PGP SIGNATURE-----

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

_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to