Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probs with an ebuild of mine (gimp-gallery)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Mon May 05, 2003 6:55 am    Post subject: Probs with an ebuild of mine (gimp-gallery) Reply with quote

Hi,

I'm not quite sure whether this is the right place to post... anyway, here I go.

I make an ebuild for gimp-gallery and as far as I can tell, it installs well. However, it does not work. I am pretty sure that it's not the problem of my ebuild but somewhere in the area of gimp or even perl, dunno.

Gimp-gallery is a perl plugin for gimp. Having installed it , I start gimp but I get a bunch of error messages among them the following related to gimp-gallery:
Quote:
LibGimp-WARNING **: gimp: wire_read: unexpected EOF
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_CH@euro"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't locate Gimp.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/lib/gimp/1.2/plug-ins/gimpgallery.pl line 11.
BEGIN failed--compilation aborted at
/usr/lib/gimp/1.2/plug-ins/gimpgallery.pl line 11.


LibGimp-WARNING **: gimp: wire_read: unexpected EOF
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_CH@euro"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't locate HTML/Entities.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/lib/gimp/1.2/plug-ins/gallery.pl line 5.
BEGIN failed--compilation aborted at
/usr/lib/gimp/1.2/plug-ins/gallery.pl line 5.


I possibly could locate the files in quetion:
Code:
limbo gimp-gallery # find / -name Entities.pm
/usr/lib/perl5/site_perl/5.6.1/i686-linux/HTML/Entities.pm
limbo gimp-gallery # find / -name Gimp.pm
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Gimp.pm

The point seems to me that the path is not included in gimps @INC (what ever this is); only /usr/lib/perl5/site_perl/5.6.1 no /usr/lib/perl5/site_perl/5.6.1/i686-linux.

Is my conclusion correct and should I file a bug?

Ebuilds that I have or haven't installed and that might be of interest:
Quote:
* media-gfx/gimp
Latest version available: 1.2.3-r3
Latest version installed: 1.2.3-r3
Size of downloaded files: 10,542 kB
Homepage: http://www.gimp.org/
Description: The GIMP

* sys-devel/libperl
Latest version available: 5.8.0
Latest version installed: 5.8.0
Size of downloaded files: 10,764 kB
Homepage: http://www.perl.org
Description: Larry Wall's Practical Extraction and Reporting Language

* dev-perl/perlmagick
Latest version available: 5.5.6
Latest version installed: [ Not Installed ]
Size of downloaded files: 4,291 kB
Homepage: http://www.imagemagick.org/
Description: A Perl module to harness the powers of ImageMagick

* dev-perl/gtk-perl-glade
Latest version available: 0.7008
Latest version installed: [ Not Installed ]
Size of downloaded files: 445 kB
Homepage: http://www.perl.org/
Description: Perl bindings for GTK

* dev-perl/gtk-perl
Latest version available: 0.7008-r9
Latest version installed: 0.7008-r9
Size of downloaded files: 445 kB
Homepage: http://www.perl.org/
Description: Perl bindings for GTK

* dev-lang/perl
Latest version available: 5.8.0-r10
Latest version installed: 5.8.0-r10
Size of downloaded files: 10,800 kB
Homepage: http://www.perl.org
Description: Larry Wall's Practical Extraction and Reporting Language


Please feel free to comment on my ebuild:
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# This ebuild installs gimp-gallery-1.0.1

DESCRIPTION="Gimp Gallery is a plugin for Gimp that creates static HTML image galleries from a directory of images"
HOMEPAGE="http://skylab.org/~plumpy/gg/"
SRC_URI="ftp://skylab.org/pub/plumpy/gimpgallery-1.0.1.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"

IUSE=""

RDEPEND=">=media-gfx/gimp-1.2.3-r3
        >=dev-lang/perl-5.8.0-r10
        >=dev-perl/gtk-perl-0.7008-r9
        >=dev-perl/HTML-Parser-3.26-r2"
DEPEND=""


S=${WORKDIR}/${P}

src_install() {
   insinto /usr/lib/gimp/1.2/plug-ins
   insopts -m755
   doins ${WORKDIR}/gimpgallery-1.0.1/gimpgallery.pl ${WORKDIR}/gimpgallery-1.0.1/gallery.pl
   doman ${WORKDIR}/gimpgallery-1.0.1/Gimp::Gallery::ImageInfo.3pm ${WORKDIR}/gimpgallery-1.0.1/Gimp::Gallery::GalleryInfo.3pm
}

pkg_postinst() {
   einfo "There have been installed the following manpages:"
   einfo "\tGimp::Gallery::ImageInfo"
   einfo "\tGimp::Gallery::GalleryInfo"
   echo ""
}

and ChangeLog:
Code:
# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
# $Header: $

*gimp-gallery-1.0.1 (04 May 2003)

  04 May 2003; Thiemo Kellner <thiemo@thiam.ch> :
  Initial import.  Ebuild submitted by Thiemo Kellner <thiemo@thiam.ch>.
 


And finally, what do I have to do with the ebuild when I have finished it? I didn't get the point of this cvs thing from the documentation.

Cheers

Thiemo
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
link
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2002
Posts: 116
Location: California

PostPosted: Mon Jun 09, 2003 4:55 am    Post subject: Reply with quote

Re: ebuild, take a look at this. Its a nice extra guide about ebuild writing.
http://cvs.gentoo.org/~liquidx/ebuildmistakes.html

About your plugins, I'm not really sure why that might be happening. In the past, I've had problems with locale and perl scripts... it might be worth trying to set that LC_ALL variable to something like en_US, and see if that fixed anything.
_________________
Peace love and penguins
Back to top
View user's profile Send private message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Mon Jun 09, 2003 8:25 pm    Post subject: Reply with quote

Quote:
About your plugins, I'm not really sure why that might be happening. In the past, I've had problems with locale and perl scripts... it might be worth trying to set that LC_ALL variable to something like en_US, and see if that fixed anything.


I could fix the problem using a real language settings in LANG. I had de_CH@Euro which does not exist; de_CH is fine.

Thanks for the link on common mistakes, I already could spot one or two I made. ;)

About the "missing" Entities.pm... I had contact with the author of my ebuild's software. He suggested to install HTML::Entities from CPAN. I am not sure whether this is included in another package thining about HTML-Parser.

Does somebody happen to know?

Cheers,

Thiemo
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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