Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159076

Summary: mail-client/claws-mail-2.6.1 fails with USE=kde
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Marius Mauch (RETIRED) <genone>
Status: RESOLVED TEST-REQUEST    
Severity: major CC: cchris0396, reddrik, relson, sparc, ticho
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 157192    
Attachments: emerge --info

Description Jeroen Roovers (RETIRED) gentoo-dev 2006-12-25 06:22:50 UTC
mail-client/claws-mail-2.6.1 fails with USE=kde:

 * Installing kde service scripts
install: cannot create regular file `/var/tmp/portage/mail-client/claws-mail-2.6
.1/image///usr/kde/3.5/share/apps/konqueror/servicemenus/claws-mail-attach-files
.desktop': No such file or directory

!!! ERROR: mail-client/claws-mail-2.6.1 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_install
  ebuild.sh, line 1030:   Called src_install
  claws-mail-2.6.1.ebuild, line 115:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if rel
evant.

It manages to emerge fine and works as it always had (under the old name of sylpheed-claws) when I set USE=-kde:

# emerge -vp claws-mail

[...]

[ebuild   R   ] mail-client/claws-mail-2.6.1  USE="crypt dillo doc imap ipv6 pda spell ssl -bogofilter -clamav -gnome -kde -ldap -spamassassin -startup-notification -xface" 0 kB

It's probably some kde*.eclass function that's failing. I might provide a patch if I care enough to find out what the problem is. :)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2006-12-25 06:27:52 UTC
Adding the other maintainer.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2006-12-25 06:45:42 UTC
Created attachment 104710 [details]
emerge --info
Comment 3 Charles Christie 2006-12-25 09:22:28 UTC
The same thing happens to me:

 * Installing kde service scripts
install: cannot create regular file `/var/tmp/portage/mail-client/claws-mail-2.6.1/image///usr/kde/3.5/share/apps/konqueror/servicemenus/claws-mail-attach-files.desktop': No such file or directory

!!! ERROR: mail-client/claws-mail-2.6.1 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_install
  ebuild.sh, line 1030:   Called src_install
  claws-mail-2.6.1.ebuild, line 115:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 4 stephan wezel 2006-12-26 07:02:52 UTC
The problem is, that in the old sylpheed-claws, the emerge process didn't stop when installing the kde service-menu entries.
But now it stops.
 
I have a small fix for it. I have added a line in src_install which simply creates the necessary directories before installing  the service menu *.desktop files.

i have changed following part in src_install():

from this:
 if use kde; then
                einfo "Installing kde service scripts"
                local kdeprefix="$(kde-config --prefix)"
                local servicescript="claws-mail-kdeservicemenu.pl"
                cd ${S}/tools/kdeservicemenu
                for f in claws-mail-attach-files.desktop; do
                        sed -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" template_$f > $f
                        install -m 0644 $f ${D}/${kdeprefix}/share/apps/konqueror/servicemenus/$f || die
                done
                insinto ${kdeprefix}/bin
                doexe ${servicescript} || die
        fi

to this:

 if use kde; then
                einfo "Installing kde service scripts"
                local kdeprefix="$(kde-config --prefix)"
                local servicescript="claws-mail-kdeservicemenu.pl"
                cd ${S}/tools/kdeservicemenu
                # create the kde-dirs so that make install is happy
                mkdir -p ${D}/${kdeprefix}/share/apps/konqueror/servicemenus/
                for f in claws-mail-attach-files.desktop; do
                        sed -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" template_$f > $f
                        install -m 0644 $f ${D}/${kdeprefix}/share/apps/konqueror/servicemenus/$f || die
                done
                insinto ${kdeprefix}/bin
                doexe ${servicescript} || die
        fi
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2006-12-26 12:03:28 UTC
This should be fixed in claws-mail-2.6.1 now - just sync in few hours (or CVS up, right, jer? :) ).
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 21:11:21 UTC
*** Bug 159179 has been marked as a duplicate of this bug. ***