Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kshowmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sat Aug 28, 2004 1:07 pm    Post subject: kshowmail Reply with quote

I'm searching for an ebuild of kshowmail.
I thought it was on portage, but it seem it is not.

Anyone knows?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Aug 28, 2004 1:17 pm    Post subject: Reply with quote

There is one in bugzilla
https://bugs.gentoo.org/show_bug.cgi?id=48946
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sat Aug 28, 2004 9:13 pm    Post subject: Reply with quote

Many thanks... but how can I build it?
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sat Aug 28, 2004 9:42 pm    Post subject: Reply with quote

Note: This way is a little more involved, but it is better in the long if using ebuilds not in the official tree.
    1. Edit /etc/make.conf to setup the PORTDIR_OVERLAY option. I have mine set to /usr/local/portage.
    2. Since this a KDE app for checking email, I assume its would-be official location would be kdenetwork/kshowmail, so I create that directory in my PORTDIR_OVERLAY
    Code:
    # mkdir -p /usr/local/portage/kdenetwork/kshowmail

    3. Create a new file in /usr/local/portage/kdenetwork/kshowmail/ called kshowmail-3.1.0.ebuild and copy the ebuild from Bugzilla into that new file. Change directory (cd) into /usr/local/portage/kdenetwork/kshowmail/.
    4. Copy the patch file from Bugzilla and call it kshowmail.patch. Patch the ebuild using:
    Code:
    # patch < kshowmail.patch

    5. Create the ebuild Manifest file. You will have to wait while Portage tries the Gentoo mirrors before trying the SourceForge mirror.
    Code:
    # ebuild kshowmail-3.1.0.ebuild digest

    6. Install the ebuild using emerge kshowmail. You will need your ACCEPT_KEYWORDS set to "~x86" for this ebuild.
    Code:
    # emerge -pvO kdenetwork/kshowmail

    These are the packages that I would merge, in order:

    Calculating dependencies ...done!
    [ebuild  N    ] kdenetwork/kshowmail-3.1.0  +arts -debug  0 kB [1]

    Total size of downloads: 0 kB
    Portage overlays:
     [1] /usr/local/portage
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sat Aug 28, 2004 11:52 pm    Post subject: Reply with quote

When I launch

patch < kshowmail.patch I have the following error:

Hunk #2 FAILED at 10.
1 out of 2 hunks FAILED -- saving rejects to file kshowmail-3.1.0.ebuild.rej


Then, if I try to launch the command ebuild I have:

/usr/sbin/ebuild.sh: /usr/local/portage/kdenetwork/kshowmail/kshowmail-3.1.0.ebuild: line 15: unexpected EOF while looking for matching '"'
/usr/sbin/ebuild.sh: /usr/local/portage/kdenetwork/kshowmail/kshowmail-3.1.0.ebuild: line 24: syntax error: unexpected end of file
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sat Aug 28, 2004 11:59 pm    Post subject: Reply with quote

When you got the ebuild and patch files, did you create a new text file using your favorite editor (nano, vim, emacs) and copy-n-paste the text into said text file? You cannot wget the files and rename them. :( If I do that, I get the same errors. You have to copy-n-paste the text due to they way Bugzilla works AFAIK.
Code:
# wget http://bugs.gentoo.org/attachment.cgi?id=32959&action=view
# mv attachment.cgi\?id\=32959 kshowmail-3.1.0.ebuild
# wget http://bugs.gentoo.org/attachment.cgi?id=32975&action=view
# mv attachment.cgi\?id\=32975 kshowmail.patch
# patch < kshowmail.patch
patching file kshowmail-3.1.0.ebuild
Hunk #2 FAILED at 10.
1 out of 2 hunks FAILED -- saving rejects to file kshowmail-3.1.0.ebuild.rej
# ebuild kshowmail-3.1.0.ebuild digest
/usr/sbin/ebuild.sh: /usr/local/portage/kdenetwork/kshowmail/kshowmail-3.1.0.ebuild: line 15: unexpected EOF while looking for matching `"'
/usr/sbin/ebuild.sh: /usr/local/portage/kdenetwork/kshowmail/kshowmail-3.1.0.ebuild: line 24: syntax error: unexpected end of file

!!! ERROR: kdenetwork/kshowmail-3.1.0 failed.
!!! Function , Line 1299, Exitcode 1
!!! error sourcing ebuild


aux_get(): (0) Error in kdenetwork/kshowmail-3.1.0 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)

doebuild(): aux_get() error; aborting.

I ran back through the steps I listed and I got it to work fine for me.
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sun Aug 29, 2004 10:39 am    Post subject: Reply with quote

I did as you said.
I cop y-n-paste the text into the files, using nedit es text editor.

I even created the files with nano, and inserted the text from the two files on BugZilla, but nothing...
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Aug 29, 2004 12:19 pm    Post subject: Reply with quote

Code:

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde-base
need-kde 3

DESCRIPTION="POP3 Mail checker with Spam Filter options"
SRC_URI="http://cesnet.dl.sourceforge.net/sourceforge/kshowmail/${P}.tar.gz"
HOMEPAGE="http://kshowmail.sourceforge.net/"

LICENSE="GPL-2"
KEYWORDS="~x86"

IUSE=""
SLOT="0"

DEPEND="${DEPEND}
        >=kde-base/kdelibs-3.1
        >=kde-base/kdepim-3.1"

src_install()
{
        einstall || die "Install failed"
        dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
}

From my overlay, IIRC this was the one I used to create the patch.
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sun Aug 29, 2004 12:51 pm    Post subject: Reply with quote

Hello.
I patched the ebuild manually, and managed to create the Manifest.


Then I launched the emerge command, portage started to build but gave me the following error message:

decode RFC2067.cpp:40:error 'DwString' undeclared
decode RFC2067.cpp:43:error 'dwsrc' undeclared
decode RFC2067.cpp:43:error 'dwdest' undeclared

and the build process stops.

I have KDE 3.2 installed. Thanks for your help.
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Aug 29, 2004 4:59 pm    Post subject: Reply with quote

I am unable to reproduce your problem. :( I am running KDE 3.2.3-r1 from Portage
Code:
# qpkg -I -v | grep kdebase
kde-base/kdebase-3.2.3-r1 *

And the program compiles fine for me. What are your CFLAGS/CXXFLAGS?
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Sun Aug 29, 2004 7:31 pm    Post subject: Reply with quote

From my /etc/make.conf

CFLAGS="-02 -march=pentium4 -fomit-frame-pointer"
CXXFLAGS="[CFLAGS]
Back to top
View user's profile Send private message
luckyland
n00b
n00b


Joined: 24 Apr 2004
Posts: 39

PostPosted: Tue Aug 31, 2004 7:18 am    Post subject: Reply with quote

Anyone with a good idea?
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Tue Aug 31, 2004 1:41 pm    Post subject: Reply with quote

luckyland wrote:
CXXFLAGS="[CFLAGS]

Shouldn't that be "CXXFLAGS=${CFLAGS}"? :)

luckyland wrote:
Anyone with a good idea?

Assuming your CXXFLAGS is correct, I am afraid I cannot think of anything off the top of my head. :(
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Wed Dec 15, 2004 1:21 pm    Post subject: Reply with quote

Earthwings: THANKS !!! It works for me too.

Since this was the first time I tried an unofficial eduild, I expected at least some difficulties; but I faced none.
It works like a charm !!! Thanx again !!!

To “put my penny into this”: instead of using ACCEPT_KEYWORDS variable I I just created /etc/portage/package.keywords and added the line

Code:
kdenetwork/kshowmail ~x86


I'd also recommend that n00bs like me should read “Working with Gentoo” part of Gentoo handbook; especially chapters 1 and 5, so as to be able to understand what the hell they are doing. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum