Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
perl-post_pkg_setup ??
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
Ansorg
Apprentice
Apprentice


Joined: 13 Jul 2002
Posts: 193

PostPosted: Sat Jul 27, 2002 11:20 am    Post subject: perl-post_pkg_setup ?? Reply with quote

I I tried to install imagemagick but it fails right at the beginning:

>>> emerge media-gfx/imagemagick-5.4.7 to /
>>> md5 ;-) ImageMagick-5.4.7-1.tar.bz2
/usr/sbin/ebuild.sh: perl-post_pkg_setup: command not found
!!! emerge aborting on /usr/portage/media-gfx/imagemagick/imagemagick-5.4.7.ebuild .

I can not find any reference to this perl-post_pkg_setup on my system and I found nothing searching here or on google.

Do I need some more perl packages?
Any ideas?

thanks
_________________
thanks
Jens
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Jul 27, 2002 1:23 pm    Post subject: Reply with quote

The file "/usr/portage/eclass/perl-post.eclass" seems to be broken. You can fix this by changing the functions that are defined there as follows:

EDIT: typos removed. Refer to later post in the thread for changes.


Last edited by Naan Yaar on Sat Jul 27, 2002 2:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ansorg
Apprentice
Apprentice


Joined: 13 Jul 2002
Posts: 193

PostPosted: Sat Jul 27, 2002 2:25 pm    Post subject: Reply with quote

Naan Yaar wrote:
The file "/usr/portage/eclass/perl-post.eclass" seems to be broken. You can fix this by changing the functions that are defined there as follows:

Code:

post_pkg_setup() {

should be changed to
Code:

perl-post_pkg_setup() {


Similarly wth post_pkg_preinst, post_pkg_postinst, post_pkg_prerm, post_pkg_postrm, post_perlinfo, post_updatepod - add a "post_" in front of their definitions.

Then it seems to work (note: on my box, it hangs on the PDF configuration stuff - may be a gs misconfiguration on my box).

Looks like an ebuild bug.


strange, maybe I have another version of ebuild/portage system?
my perl-post.eclass looks like this (only the interesting lines)
Code:

# $Header: /home/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.6 2002/07/26 21:50:16 danarmak Exp $

ECLASS=perl-post
INHERITED="$INHERITED $ECLASS"

EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \
   perlinfo updatepod


and then the functions defined with the "perl_" in front; no single "post_" in the file :-((
_________________
thanks
Jens
Back to top
View user's profile Send private message
eheintz
n00b
n00b


Joined: 16 Jul 2002
Posts: 12

PostPosted: Sat Jul 27, 2002 2:31 pm    Post subject: Reply with quote

Ok. I'm confused.. Hit the same issue emerge another package.
/usr/portage/eclass/perl-post.eclass has none of the functions metioned in your post.

Mine has the following functions defined:
perl_pkg_setup
perl_pkg_preinst
perl_pkg_postinst
perl_pkg_prerm
perl_pkg_postrm
perl_perlinfo
perl_updatepod


I did an emerge rsync this morning.
Back to top
View user's profile Send private message
eheintz
n00b
n00b


Joined: 16 Jul 2002
Posts: 12

PostPosted: Sat Jul 27, 2002 2:33 pm    Post subject: Reply with quote

Of course I'm referring to Naan Yaar's post. Ansorg.. looks like you and I are in the same boat.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Jul 27, 2002 2:34 pm    Post subject: Reply with quote

Hi,

I think I screwed up the original name of these functions in my post (I'd already modified my eclass file to rectify the issue). They were "perl_pkg_setup" instead of "post_pkg_setup" as I had mentioned. The target name is as stated in my post though.

I rync'ed to do a diff between the original and my modified version. Diff below:
Code:

18c18
< perl_pkg_setup() {
---
> perl-post_pkg_setup() {
24c24
< perl_pkg_preinst() {
---
> perl-post_pkg_preinst() {
29c29
< perl_pkg_postinst() {
---
> perl-post_pkg_postinst() {
34c34
< perl_pkg_prerm() {
---
> perl-post_pkg_prerm() {
39c39
< perl_pkg_postrm() {
---
> perl-post_pkg_postrm() {
44c44
< perl_perlinfo() {
---
> perl-post_perlinfo() {
57c57
< perl_updatepod() {
---
> perl-post_updatepod() {


Sorry about the confusion.


eheintz wrote:
Ok. I'm confused.. Hit the same issue emerge another package.
/usr/portage/eclass/perl-post.eclass has none of the functions metioned in your post.

Mine has the following functions defined:
perl_pkg_setup
perl_pkg_preinst
perl_pkg_postinst
perl_pkg_prerm
perl_pkg_postrm
perl_perlinfo
perl_updatepod


I did an emerge rsync this morning.
Back to top
View user's profile Send private message
eheintz
n00b
n00b


Joined: 16 Jul 2002
Posts: 12

PostPosted: Sat Jul 27, 2002 2:41 pm    Post subject: Reply with quote

No prob.. works like a charm now.. thanks!
Back to top
View user's profile Send private message
Ansorg
Apprentice
Apprentice


Joined: 13 Jul 2002
Posts: 193

PostPosted: Sat Jul 27, 2002 2:56 pm    Post subject: Reply with quote

Naan Yaar wrote:

I think I screwed up the original name of these functions in my post (I'd already modified my eclass file to rectify the issue). They were "perl_pkg_setup" instead of "post_pkg_setup" as I had mentioned. The target name is as stated in my post though.


yes, now it seems to work

thanks
_________________
thanks
Jens
Back to top
View user's profile Send private message
TwoSlick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2002
Posts: 114
Location: Rolla, MO

PostPosted: Sat Jul 27, 2002 11:19 pm    Post subject: Reply with quote

This same problem happend me too while installing a fresh copy of Gentoo 1.3 this weekend. The first error happened when installing XML-parsing during 'emerge kde'. The second time happened during 'install gimp'. The same fix also worked for me, however I had to make similiar changes in /usr/portage/eclass/perl-module.eclass

Is there some general error in these files? What's causing this?

-Tim
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