Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96520 - pgadmin 1.2.2 ebuild failed
Summary: pgadmin 1.2.2 ebuild failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-06-19 05:42 UTC by Pierre Poissinger
Modified: 2005-06-20 03:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A patched ebuild and a patch to the configure script of pgadmin3 (pgadmin3-1.2.2-r1.tar.gz,1.30 KB, application/octet-stream)
2005-06-19 05:45 UTC, Pierre Poissinger
Details
Patch for the pgadmin configure (pgadmin3-1.2.2-configure.patch,699 bytes, patch)
2005-06-19 06:32 UTC, Pierre Poissinger
Details | Diff
The patch to pgadmin-1.2.2 ebuild (pgadmin-1.2.2.ebuild.patch,435 bytes, patch)
2005-06-19 06:36 UTC, Pierre Poissinger
Details | Diff
Corrected pgadmin configure patch (pgadmin3-1.2.2-configure.patch,985 bytes, patch)
2005-06-19 14:42 UTC, Pierre Poissinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Poissinger 2005-06-19 05:42:32 UTC
pgadmin 1.2.2 could not complete the configure

Looks like the configure could not find this file and it seems to be due to a
bug in the configure script itself -- it looks for $WX_HOME/$WX_CONFIG but
$WX_CONFIG, at these point already point to the complete path of the file...



Reproducible: Always
Steps to Reproduce:
1. emerge "=pgadmin-1.2.2"

Actual Results:  
checking for wxWindows... yes
configure: error: Could not find /lib/wx/config/gtk2-unicode-release-2.6

!!! Please attach the config.log to your bug report:
!!! /home/portage/tmp/portage/pgadmin3-1.2.2/work/pgadmin3-1.2.2/config.log

!!! ERROR: dev-db/pgadmin3-1.2.2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

Expected Results:  
Successfull emerge

With following patches to the ebuild it emerge fine:
Comment 1 Pierre Poissinger 2005-06-19 05:45:21 UTC
Created attachment 61488 [details]
A patched ebuild and a patch to the configure script of pgadmin3

A patch to the configure script to ADD a last-chance test for the wx-config
file and a "changed" ebuild to apply the configure patch ;)
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-19 06:23:10 UTC
Please, don't attach tarballs. Plaintext patch and unified diff of the fixed
ebuild is all we need.
Comment 3 Pierre Poissinger 2005-06-19 06:32:19 UTC
Created attachment 61493 [details, diff]
Patch for the pgadmin configure
Comment 4 Pierre Poissinger 2005-06-19 06:36:56 UTC
Created attachment 61494 [details, diff]
The patch to pgadmin-1.2.2 ebuild

Need the configure patch (attachement 61493) in the files section of pgadmin3
portage tree
Comment 5 Pierre Poissinger 2005-06-19 06:39:36 UTC
(In reply to comment #2)
> Please, don't attach tarballs. Plaintext patch and unified diff of the fixed
> ebuild is all we need.

Sorry, was too lazy to do 2 separate posts... hope this now meet your needs :)
 
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-06-19 07:00:20 UTC
(In reply to comment #5)
> Sorry, was too lazy to do 2 separate posts... hope this now meet your needs :)

Thanks! You forgot to reopen. ;)
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2005-06-19 11:53:21 UTC
Hi,

I failed emerge with the patch..(configure passed but compile failed)

I want to know why the patch fixes something in your environment.
Do you have /usr/lib/wx/config/gtk2-unicode-release-2.6 file?
Which wxGTK version have you installed?
Comment 8 Pierre Poissinger 2005-06-19 14:39:22 UTC
here comes the info from wxGTK:
[ebuild   R   ] x11-libs/wxGTK-2.6.0-r1  -debug -doc +gnome +gtk2 -joystick
+jpeg -odbc +opengl +png +sdl +tiff +unicode -wxgtk1 12,730 kB

and yap, i got the config file in /usr/lib/wx/config/gtk2-unicode-release-2.6
file ... I looked a little bit closer to the configure and it looks that the
problem is because i have lots of include file of previous wxGTK (2.5) left in
the include files... this lead the configure to wrongly think that the home of
wxGTK is /usr/local instead of /usr 
From a modified configure: WX_HOME is /usr/local
---
dbg:not in /usr/local/bin//lib/wx/config/gtk2-unicode-release-2.6
dbg:not in /usr/local//lib/wx/config/gtk2-unicode-release-2.6
configure: error: Could not find /lib/wx/config/gtk2-unicode-release-2.6
---
Looking down to the patch, i notice that it can work only for me, since i
symlinked the wx dir to /lib sometimes ago and then should not help anyother
than me... 
Since it's just a if/else added, normally the patch should not affect the way
the emerge is working on your side... Did you have same emerge trouble with
1.2.2 (so i will feel less alone)

Just made another patch who should correct "Correctly" the configure... this one
try, if don't find the gtk2-unicode-release with /usr home...
See next post (patched ebuild stay the same) 

  
Comment 9 Pierre Poissinger 2005-06-19 14:42:24 UTC
Created attachment 61521 [details, diff]
Corrected pgadmin configure patch

This one change the WX_HOME dir if failed to find the wx config files as last
try... this should give better results.

This patch should be used instead of previous configure patch
Comment 10 Masatomo Nakano (RETIRED) gentoo-dev 2005-06-19 22:29:30 UTC
It seems fine.
I've added it to portage tree.

Thanks.
Comment 11 Pierre Poissinger 2005-06-20 03:42:40 UTC
thanks to you aswell :)