GNOME Bugzilla – Bug 351522
Cannot make install using Dapper
Last modified: 2008-07-16 07:52:26 UTC
I am using Ubuntu Dapper and when I try to make install, I get: make[1]: Entering directory `/home/kbreit/downloads/f-spot/po' make[1]: install_sh@: Command not found make[1]: *** [install-data-yes] Error 127
My only configure parameters were --prefix=/home/kbreit/bin/f-spot-CVS/ Everything else is stock and default.
For one reason or another, make can not expand the path to install-sh. (I have never been able to get rid of this annoying problem!) Workaround: Manually specify the path to install-sh in po/Makefile. Generic sample below: vi po/Makefile ... install_sh = @install_sh@ install_sh = <PATH TO MAIN F-SPOT DIRECOTRY>/install-sh ... Specific sample according to this bug below: vi po/Makefile ... install_sh = @install_sh@ install_sh = /home/kbreit/downloads/f-spot/install-sh ...
AFAIK, this is *not* an f-spot bug: - it's only reported on ubuntu installations - Bengt encounter the same problem on his ubutuntu machine with other applications If I'm wrong, please re-open the bug
While trying to patch F_SPOT_QUERY in order to add Find Duplicates function (here my patch http://bugzilla.gnome.org/show_bug.cgi?id=139796), I have written a small script which helps me buiding F-Spot. A part of the script patches the po/Makefile that stops Ubuntu from installing F-Spot. Comments are welcome. Marco P.S.: Please note that running this script DELETES your actual installed F-Spot version and DELETES the f-spot-query CVS directory from your HD; if you DO NOT want this, leave lines commented! ## Delete old installation # sudo rm -f /usr/local/bin/f-spot # sudo rm -fr /usr/local/lib/f-spot ## Delete old sources # sudo rm -fr f-spot-query # Download F_SPOT_QUERY sources cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co -r F_SPOT_QUERY -d f-spot-query -P f-spot # Enter source directory cd f-spot-query # Auto configure ./autogen.sh # Prepare Ubuntu patch file for installation echo "--- po/Makefile 2006-08-27 09:21:39.780192250 +0200" > po_makefile_patch echo "+++ po/Makefile.new 2006-08-27 09:22:12.566241250 +0200" >> po_makefile_patch echo "@@ -36,7 +36,8 @@" >> po_makefile_patch echo " DATADIRNAME = share" >> po_makefile_patch echo " itlocaledir = \$(prefix)/\$(DATADIRNAME)/locale" >> po_makefile_patch echo " subdir = po" >> po_makefile_patch echo "-install_sh = @install_sh@" >> po_makefile_patch echo "+# install_sh = @install-sh@" >> po_makefile_patch echo "+install_sh = `pwd`/install-sh" >> po_makefile_patch echo " # Automake >= 1.8 provides @mkdir_p@." >> po_makefile_patch echo " # Until it can be supposed, use the safe fallback:" >> po_makefile_patch echo " mkdir_p = \$(install_sh) -d" >> po_makefile_patch # Patches po/Makefile to solve Ubuntu Bug patch -p0 < po_makefile_patch # Patches F_SPOT_QUERY addind Find Duplicates function # Comment line if you have not my patch or do not want to use it patch -p0 < f-spot-query_to_f-spot-duplicates-query.patch # Compile make all # Install sudo make install
Is this the same bug when I try to build? I'm on Ubuntu 7 Feisty ... I could not get at Marco's fix.... make[2]: Entering directory `/home/gryz/packages/fspot/f-spot-0.4.4/po' file=`echo ar | sed 's,.*/,,'`.gmo \ && rm -f $file && -o $file ar.po /bin/sh: -o: not found make[2]: *** [ar.gmo] Error 127 make[2]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4' make: *** [all] Error 2 gryz@ate:~/packages/fspot/f-spot-0.4.4$ Cheers, Larry
(In reply to comment #5) > Is this the same bug when I try to build? > I'm on Ubuntu 7 Feisty ... > > I could not get at Marco's fix.... > > make[2]: Entering directory `/home/gryz/packages/fspot/f-spot-0.4.4/po' > file=`echo ar | sed 's,.*/,,'`.gmo \ > && rm -f $file && -o $file ar.po > /bin/sh: -o: not found > make[2]: *** [ar.gmo] Error 127 > make[2]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4/po' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4' > make: *** [all] Error 2 > gryz@ate:~/packages/fspot/f-spot-0.4.4$ > > Cheers, > > Larry > I had the same error. It was fixed when I ran: $: sudo apt-get build-dep f-spot
Thanks Jared! I get something different now ;( -spot-logo.svg,f-spot-logo.svg -resource:../icons/flower.png,flower.png ./Filters/ColorFilter.cs(62,30): warning CS0108: `FSpot.Filters.AutoStretch.Tests' hides inherited member `FSpot.Filters.ColorFilter.Tests'. Use the new keyword if hiding was intended ./Filters/ColorFilter.cs(218,30): (Location of the symbol related to previous warning) ./ControlOverlay.cs(138,43): error CS1501: No overload for method `Cairo.SolidPattern' takes `1' arguments ./ControlOverlay.cs(144,43): error CS1501: No overload for method `Cairo.SolidPattern' takes `1' arguments ./ControlOverlay.cs(210,49): warning CS0618: `FSpot.Widgets.CairoUtils.CreateContext(Gdk.Drawable)' is obsolete: `use Gdk.CairoHelper.Create instead' ./ControlOverlay.cs(226,49): warning CS0618: `FSpot.Widgets.CairoUtils.CreateContext(Gdk.Drawable)' is obsolete: `use Gdk.CairoHelper.Create instead' ./Core.cs(167,66): warning CS0618: `PhotoStore.Query(FSpot.Tag[])' is obsolete: `drop this, use IQueryCondition correctly instead' ./Core.cs(169,60): warning CS0618: `PhotoStore.Query(FSpot.Tag[])' is obsolete: `drop this, use IQueryCondition correctly instead' ./PhotoQuery.cs(33,40): warning CS0618: `PhotoStore.Query(FSpot.Tag[], string, FSpot.Query.DateRange, FSpot.Query.RollSet, FSpot.Query.RatingRange)' is obsolete: `drop this, use IQueryCondition correctly instead' ./UI.Dialog/PreferenceDialog.cs(81,46): warning CS0219: The variable `desc_cell' is assigned but its value is never used ./UI.Dialog/PreferenceDialog.cs(80,46): warning CS0219: The variable `name_cell' is assigned but its value is never used Compilation failed: 2 error(s), 8 warnings make[2]: *** [f-spot.exe] Error 1 make[2]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gryz/packages/fspot/f-spot-0.4.4' make: *** [all] Error 2 gryz@ate:~/packages/fspot/f-spot-0.4.4$
Larry: apply the patch committed ar r4035, use the previous release, or wait for the next one