Re: [proaudio] emerge kguitar failed

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Le Tue, 06 Jun 2006 15:39:14 +0200,
Frieder Bürzele <evermind@xxxxxxxxxxxxx> a écrit :

> Dominique Michel wrote:
> > Le Tue, 06 Jun 2006 10:25:46 +0200,
> > Frieder Bürzele <evermind@xxxxxxxxxxxxx> a écrit :
> >
> >   
> >> Dominique Michel wrote:
> >>     
> >>> I get the following error with kguitar:
> >>>
> >>> /bin/sh ../admin/mkinstalldirs /var/tmp/portage/kguitar-0.5/image//usr/share/icons/hicolor/128x128/apps
> >>> mkdir -p -- /var/tmp/portage/kguitar-0.5/image//usr/share/icons/hicolor/128x128/apps
> >>> /bin/install -c -p -m 644 ./hi128-app-kguitar.png /var/tmp/portage/kguitar-0.5/image//usr/share/icons/hicolor/128x128/apps/kguitar.png
> >>> Copy kgtabs.tex to /usr/share/texmf/tex/generic/kgtabs
> >>> /bin/sh ../admin/mkinstalldirs /usr/share/texmf/tex/generic/kgtabs
> >>> mkdir -p -- /usr/share/texmf/tex/generic/kgtabs
> >>> ACCESS DENIED  mkdir:     /usr/share/texmf/tex/generic/kgtabs
> >>> mkdir: Ne peut créer le répertoire `/usr/share/texmf/tex/generic/kgtabs': Permission non accordée  # mean cannot create directory... permission not granted
> >>> make[2]: *** [install-kgtabs] Erreur 1
> >>> make[2]: Leaving directory `/var/tmp/portage/kguitar-0.5/work/kguitar-0.5/kguitar_shell'
> >>> make[1]: *** [install-am] Erreur 2
> >>> make[1]: Leaving directory `/var/tmp/portage/kguitar-0.5/work/kguitar-0.5/kguitar_shell'
> >>> make: *** [install-recursive] Erreur 1
> >>>
> >>> !!! ERROR: media-sound/kguitar-0.5 failed.
> >>> !!! Function kde_src_install, Line 301, Exitcode 2
> >>>
> >>>
> >>> If I look at the error, portage try to install kgtabs.tex and rename it to kgtabs at the same time. When trying to do some ebuild on my system, it always fail when I do that. The only way where portage accept it is, if I rename the file with mv before the running the install process. I don't no why.
> >>>
> >>>       
> 
> the problem above is, that portage won't allow any install routine to 
> write somewhere
> else as into /var/tmp/portage/<your_package/image/
> 
> Most packages provide a variable you can set to do this (often called 
> DESTDIR or destdir).
> When I've such a package I try to find the cause of the problem in a 
> Makefile[.in]
> 
> For above error I found a missing DESTDIR in the Makefile[.in]  in 
> /var/tmp/portage/kguitar-0.5/work/kguitar-0.5/kguitar_shell (--> this 
> was the location your error pointed to).
> 
> I removed this error with sed
> 
> sed -i -e 
> 's:\(\$(mkinstalldirs)\)\(.*\)\($(TEXMF)/tex/generic/kgtabs\):\1 
> $(DESTDIR)\3:' -e 's:\(\$(INSTALL_DATA).*$(srcdir)/kgtabs.tex\ *\):\1 
> $(DESTDIR):' kguitar_shell/Makefile.in
> 
> above line tells sed to find a line which is described between the first 
> : and second:
> \(...\) describes a pattern to which I refer with \1 in between the 
> second : and third :
> 
> The above sed-oneliner changes this two lines to:
> 
> -       $(mkinstalldirs) $(TEXMF)/tex/generic/kgtabs
> -       $(INSTALL_DATA) $(srcdir)/kgtabs.tex 
> $(TEXMF)/tex/generic/kgtabs/kgtabs.tex
> +       $(mkinstalldirs) $(DESTDIR)$(TEXMF)/tex/generic/kgtabs
> +       $(INSTALL_DATA) $(srcdir)/kgtabs.tex 
> $(DESTDIR)$(TEXMF)/tex/generic/kgtabs/kgtabs.tex
> 
> 
> So you either you can use sed to adjust the Makefile or create a diff 
> and ship it with the ebuild.
> 
> 
> Although in this ebuild there was another problem which  I solved with 
> deleting none working paths.
> 
> Hope to help a bit for writing new ebuilds ;-)
> 
>     Frieder

Yes, it will. Thank you. I must rtfm of sed.

I allready have managed to get an ebuild to work with a diff (not sound related, for an antenna design software), so it would be possible at I do the same with sed when it is trivial modification.

Dominique

> >>> Dominique
> >>>
> >>>   
> >>>       
> >> please try again I've updated the ebuild
> >>
> >>     Frieder
> >>
> >>
> >>     
> >
> > Thank you, the ebuild work just fine.
> >
> > Dominique
> >
> >   
> Great
> 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/