Re: [proaudio] emerge kguitar failed |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
- To: proaudio@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [proaudio] emerge kguitar failed
- From: Dominique Michel <dominique.michel@xxxxxxxxxxxx>
- Date: Tue, 6 Jun 2006 17:06:47 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEXy8ubtkoXo7+b1+fbN cGKCeWDtamweFA8eMkmKPkPtvcWRoqyV0Pn7AAACbElEQVQ4jXXTMWvbQBQA4MOlizsdXEXp KAi09mKcLZ0EJxONDRJVkikg9AtqTm63gtHDmVJs1GsnC0JiaTMJGN2f67uzznJb+gZj9PFO 7717IqdtvCAmem4bxMLp/2BEyEBF1+U/0H8uhI6rv+BVLNrY/gH9T0L8yAxk2yMY3YuZxDCn TY/gpBByyTGktIcZOIvFjPNJmqYJDwrx3cIoBrE0zzG4FF8tfBAwM+DonKCYWjgROZ6Upjcm 5Qje58JAmlKKGfIAjzaDUuogZBY2Bjg14eDbywMIqZvwqgqFBcVFB0seYONLb00ZZlh4p0F6 FHNoUMyKAzxowJSQTyj+XloYs3MN3GeMpzyYSTMshLM00ODpWlPp4SDbqs4cViDcGAgmlK/a PsaOg7DvIQ3wzANMqB/iQW/XTkoTLO6XhSeHUoQKe+NLjyY/Ldx7CW2D4WTYhZ3V0GP64RpP Q/E66IUWMLj3+nDn4w2ejMACyXFeHZy6ETcZehc49bv1GQ/0bazNuzm97mDkhnoie9i30WYM w/YCnYT7Fx308s98n0IT//Jod1+aOzdzYXLVbftol+PC+REG3u+0AxdEtuSMB6G+DLGwMH4E vXGmJn8VCLM9LhmrOAMQYt5Wi/DFgIC52iFkUzMpDVmjAaDZRGC+JGwDqzJ/G5fUUcWZAaE7 YfvPLYtIU1Wb4A2IeS7uDMgcIFutiCr766qGfKHyuxvTIERKXVNSN27lDgCuBuojlpxIyJV6 ritS1uWWuHF2Ww7qcIKbqEFVNbmtmm3vGSCHbVXjikrY3SpVxwQWw2aIjwG+ueXTJDmHeK6a HfwGyU5ZSlGeSRQAAAAASUVORK5CYII=
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
>