Bug 96520 - pgadmin 1.2.2 ebuild failed
|
Bug#:
96520
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: major
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: pgsql-bugs@gentoo.org
|
Reported By: pierre.poissinger@gmail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: pgadmin 1.2.2 ebuild failed
|
|
Keywords: Inclusion
|
|
Status Whiteboard:
|
|
Opened: 2005-06-19 05:42 0000
|
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:
Created an attachment (id=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 ;)
Please, don't attach tarballs. Plaintext patch and unified diff of the fixed
ebuild is all we need.
(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 :)
(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. ;)
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?
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)
Created an attachment (id=61521) [details]
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
It seems fine.
I've added it to portage tree.
Thanks.