<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>96520</bug_id>
          
          <creation_ts>2005-06-19 05:42 0000</creation_ts>
          <short_desc>pgadmin 1.2.2 ebuild failed</short_desc>
          <delta_ts>2005-06-20 03:42:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>Inclusion</keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pierre.poissinger@gmail.com</reporter>
          <assigned_to>pgsql-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 05:42:32 0000</bug_when>
            <thetext>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 &quot;=pgadmin-1.2.2&quot;

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:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 05:45:21 0000</bug_when>
            <thetext>Created an attachment (id=61488)
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 &quot;changed&quot; ebuild to apply the configure patch ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-19 06:23:10 0000</bug_when>
            <thetext>Please, don&apos;t attach tarballs. Plaintext patch and unified diff of the fixed
ebuild is all we need.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 06:32:19 0000</bug_when>
            <thetext>Created an attachment (id=61493)
Patch for the pgadmin configure
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 06:36:56 0000</bug_when>
            <thetext>Created an attachment (id=61494)
The patch to pgadmin-1.2.2 ebuild

Need the configure patch (attachement 61493) in the files section of pgadmin3
portage tree </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 06:39:36 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Please, don&apos;t attach tarballs. Plaintext patch and unified diff of the fixed
&gt; ebuild is all we need.

Sorry, was too lazy to do 2 separate posts... hope this now meet your needs :)
 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-19 07:00:20 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Sorry, was too lazy to do 2 separate posts... hope this now meet your needs :)

Thanks! You forgot to reopen. ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nakano@gentoo.org</who>
            <bug_when>2005-06-19 11:53:21 0000</bug_when>
            <thetext>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?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 14:39:22 0000</bug_when>
            <thetext>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&apos;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 &quot;Correctly&quot; the configure... this one
try, if don&apos;t find the gtk2-unicode-release with /usr home...
See next post (patched ebuild stay the same) 

  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-19 14:42:24 0000</bug_when>
            <thetext>Created an attachment (id=61521)
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nakano@gentoo.org</who>
            <bug_when>2005-06-19 22:29:30 0000</bug_when>
            <thetext>It seems fine.
I&apos;ve added it to portage tree.

Thanks.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pierre.poissinger@gmail.com</who>
            <bug_when>2005-06-20 03:42:40 0000</bug_when>
            <thetext>thanks to you aswell :)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>61488</attachid>
            <date>2005-06-19 05:45 0000</date>
            <desc>A patched ebuild and a patch to the configure script of pgadmin3</desc>
            <filename>pgadmin3-1.2.2-r1.tar.gz</filename>
            <type>application/octet-stream</type>
            <data encoding="base64">H4sICLdktUIAA2ZyLjE5ODEzLjAucGdhZG1pbjMtMS4yLjItcjEudGFyAO1XbW/aSBDOV/tXTH3R
pVVqbEMgDRFVokAoKkc4SNq7T8jYC6zwW3fXQC51f/vN2hBCXuglPfWkk59E8q6988zszOzMEo1t
16dByRhRj3AjWk51q1AsFHUnDEZ0HDNSiGzhTHZeBhNROTiQT+uwbKZzK5unw+Jhaccyi+VysWId
lvB90SyVKztgvlDfsxBzYTOAHT+2XZcOt6wjjP8Mg34udF2HdZRDRsdK0TTLulnRrSOwDqpmsWod
FcwVYB+jY6r7+/trsXsSllktFR9InJyAXi5VDt5a+CYblOHkRIUVxIQE65kEHYEgXMAr0Eeg7d58
/mPw4eK3RmLs3swXg0z9YEgDm10n2qZoSravyKFyn+YR2f27sspDSyRu8I84kxApbD7wSXW33eo0
OhdVIIyFrApnYey5EIQCRjRw4TFF8P7XsqpvsDxPunic4LYU5Qcpsv28JgsqwHpzDNngGBL839w5
8ThJNaLzzy46561m7QkXKsqIbjoylX3gxw2iZ4QU2TeZ/+uj87/AquDfr/zMKpBhTD33X9Dxnfpf
qpQqt/W/cni4Y1rlw8NyXv9/Bn7BqhFdY9mfYAE4OjrSZS2HJglEGMJ5GAeuLWgYqL9AnXLB6DAW
xAV8TZgsslhZmc8hHKWTZudKihJme9CNhx51oE0dEnACsyJS7H4gNgpWwZjZzHBmnIWhMMapMn3x
rmK4ZKa7Q+OJpFxm5NsZWAULpKGGWTGw6ZhHVatUxX4S2FM7CKGxiGBXVWkwIQwLG4kF9Th4dIh6
PJgv5tQdE8FVtXXVb9Q0TVV7jf5lr3V2WdOC0KeynGpqvdE/67W6l62LTk2bLz5jTQ3nHJpXLRiF
DLohF2NG+r+3NVXWsO5pE7kmQkRVw5jP54Wl8dhUx4am9ntng6teq6Zl9Lgmygj4F2+9YUY8YnNi
zHZvup8SgzMHK2M3KWCOFsZ/oaH99gUaaWpqu3XW6EjrT5nAyFBHUz82/vx80av3a9o3dCZ8iyIH
vvHIZviwvWhi48N3KwdIU290G516TXtfW1iWjp7hxnzRvPyoFwuVgqkqy0Dgh+iLqryv8Wuu21HE
DU5cXRJE0/GAExFHr9/AjSp77CuQ0RGDORWTAZ4W2HucfA+zhzqhS+A4a9OK4lIiG3O3kwAjX2KK
ToHHhYH4hI0xA6UWkNHbW7LtaapsQImqotMGcRDZzjSzLRtjOzxNVMWRfbGfwNevkGpNe2awJwA/
iDD9hkQkve7i7LzVbvTrrV6ShuH+fXilzQn9CK/PmTqyiEImZJtDqwefGr0aWn73tUyWmhFzpioB
QXfe5uPKMaqqeKGDZ8i/lgpVJXvKfpmNEtB1EthDj+hLEW3rorGYFp9YIf2oR2NMQp0Gjhe7JDXN
WE7uJOk2gvli6ZqaTBkMmJFNjbTDZ+1+0DnFRr/d0JU2XNWun7dPm/2a3k7tkbRrW/AihoKwZsjC
qd7GF/3t21Oyer+MEw2w2HveMk7L2VrWDV3KIFXHJzbDzdOFb0dc0kYpbXogV66hvj3Gn0x4YvFo
BeLgXWER+bisnjykuD3hcs2jqpbff0jX/bK5VOZM/NAF7MD/yLgty5/gf7AZrBRY+9PGcdd5WDPW
oi7hUxFG93XcFX2weItt2+WesDGYGnUyI14Y+diDXmDpJsFz7f2edJJfcXPkyJEjR44cOXLkyJEj
R44cOXLkyJEjR44cL8Dfdh7DWgAoAAA=
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61493</attachid>
            <date>2005-06-19 06:32 0000</date>
            <desc>Patch for the pgadmin configure</desc>
            <filename>pgadmin3-1.2.2-configure.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvbmZpZ3VyZS5vcmlnCTIwMDUtMDYtMTkgMTQ6MDI6MTkuMDAwMDAwMDAwICswMjAwCisr
KyBjb25maWd1cmUJMjAwNS0wNi0xOSAxNDoxMDozMi4wMDAwMDAwMDAgKzAyMDAKQEAgLTUzNjQs
MTAgKzUzNjQsMTUgQEAKICAgICAgICAgdGhlbgogICAgICAgICAgICAgaWYgdGVzdCAhIC1mICIk
e1dYX0hPTUV9LyR7d3hfY29uZmlnX2JpbmFyeX0iCiAgICAgICAgICAgICB0aGVuCisJICAgIAlp
ZiB0ZXN0ICEgLWYgIiR7d3hfY29uZmlnX2JpbmFyeX0iCisgICAgICAgICAgICAJdGhlbgogICAg
ICAgICAgICAgICAgIHsgeyBlY2hvICIkYXNfbWU6JExJTkVOTzogZXJyb3I6IENvdWxkIG5vdCBm
aW5kICR7d3hfY29uZmlnX2JpbmFyeX0iID4mNQotZWNobyAiJGFzX21lOiBlcnJvcjogQ291bGQg
bm90IGZpbmQgJHt3eF9jb25maWdfYmluYXJ5fSIgPiYyO30KKwkJCWVjaG8gIiRhc19tZTogZXJy
b3I6IENvdWxkIG5vdCBmaW5kICR7d3hfY29uZmlnX2JpbmFyeX0iID4mMjt9CiAgICB7IChleGl0
IDEpOyBleGl0IDE7IH07IH0KICAgICAgICAgICAgIGVsc2UKKwkJCVdYX0NPTkZJRz0iJHt3eF9j
b25maWdfYmluYXJ5fSIKKwkJZmkKKyAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBX
WF9DT05GSUc9IiR7V1hfSE9NRX0vJHt3eF9jb25maWdfYmluYXJ5fSIKICAgICAgICAgICAgIGZp
CiAgICAgICAgIGVsc2UK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61494</attachid>
            <date>2005-06-19 06:36 0000</date>
            <desc>The patch to pgadmin-1.2.2 ebuild</desc>
            <filename>pgadmin-1.2.2.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBnYWRtaW4zLTEuMi4yLmVidWlsZC5vcmlnCTIwMDUtMDYtMTkgMTU6Mjg6NDYuMDAwMDAw
MDAwICswMjAwCisrKyBwZ2FkbWluMy0xLjIuMi5lYnVpbGQJMjAwNS0wNi0xOSAxNDoxNDo0OS4w
MDAwMDAwMDAgKzAyMDAKQEAgLTI1LDExICsyNSwxMSBAQAogCWZpCiB9CiAKLSNzcmNfdW5wYWNr
KCkgewotIwl1bnBhY2sgJHtBfQotIwljZCAke1N9IHx8IGRpZSAiQ291bGRuJ3QgY2QgdG8gJHtT
fSIKLSMJZXBhdGNoICR7RklMRVNESVJ9LyR7UH0tY29uZmlndXJlLnBhdGNoCi0jfQorc3JjX3Vu
cGFjaygpIHsKKwl1bnBhY2sgJHtBfQorCWNkICR7U30gfHwgZGllICJDb3VsZG4ndCBjZCB0byAk
e1N9IgorCWVwYXRjaCAke0ZJTEVTRElSfS8ke1B9LWNvbmZpZ3VyZS5wYXRjaAorfQogCiBzcmNf
Y29tcGlsZSgpIHsKIAlleHBvcnQgV1hfR1RLX1ZFUj0yLjYK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61521</attachid>
            <date>2005-06-19 14:42 0000</date>
            <desc>Corrected pgadmin configure patch</desc>
            <filename>pgadmin3-1.2.2-configure.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvbmZpZ3VyZS5vcmlnCTIwMDUtMDYtMTkgMjM6Mjk6MTMuMDAwMDAwMDAwICswMjAwCisr
KyBjb25maWd1cmUJMjAwNS0wNi0xOSAyMzozMjozOC4wMDAwMDAwMDAgKzAyMDAKQEAgLTUzNjQs
MTMgKzUzNjQsMjIgQEAKICAgICAgICAgdGhlbgogICAgICAgICAgICAgaWYgdGVzdCAhIC1mICIk
e1dYX0hPTUV9LyR7d3hfY29uZmlnX2JpbmFyeX0iCiAgICAgICAgICAgICB0aGVuCisJICAgIAkj
IFBQOiBoZXJlIGkgaGF2ZSB0cm91YmxlLCBzaW5jZSBvbiBteSBtYWNoaW5lCisJCSMgdGhlIFdY
X0hPTUUgcG9pbnQgdG8gL3Vzci9sb2NhbCAob2xkIDIuNSkgYW5kIHNob3VsZCBiZSAvdXNyLi4u
CisJCSMgbGV0cyB0cnkgYXMgbGFzdCBjaGFuY2UKKwkJV1hfSE9NRT0vdXNyCisJCWlmIHRlc3Qg
ISAtZiAiJHtXWF9IT01FfS8ke3d4X2NvbmZpZ19iaW5hcnl9IgorICAgICAgICAgICAJdGhlbgog
ICAgICAgICAgICAgICAgIHsgeyBlY2hvICIkYXNfbWU6JExJTkVOTzogZXJyb3I6IENvdWxkIG5v
dCBmaW5kICR7d3hfY29uZmlnX2JpbmFyeX0iID4mNQotZWNobyAiJGFzX21lOiBlcnJvcjogQ291
bGQgbm90IGZpbmQgJHt3eF9jb25maWdfYmluYXJ5fSIgPiYyO30KKwkJCWVjaG8gIiRhc19tZTog
ZXJyb3I6IENvdWxkIG5vdCBmaW5kICR7d3hfY29uZmlnX2JpbmFyeX0iID4mMjt9CiAgICB7IChl
eGl0IDEpOyBleGl0IDE7IH07IH0KICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBX
WF9DT05GSUc9IiR7V1hfSE9NRX0vJHt3eF9jb25maWdfYmluYXJ5fSIKICAgICAgICAgICAgIGZp
CiAgICAgICAgIGVsc2UKKyAgICAgICAgICAgICAgICBXWF9DT05GSUc9IiR7V1hfSE9NRX0vJHt3
eF9jb25maWdfYmluYXJ5fSIKKyAgICAgICAgICAgIGZpCisgICAgICAgIGVsc2UKICAgICAgICAg
ICAgIFdYX0NPTkZJRz0iJHtXWF9IT01FfS9iaW4vJHt3eF9jb25maWdfYmluYXJ5fSIKICAgICAg
ICAgZmkKICAgICBlbHNlCg==
</data>        

          </attachment>
    </bug>

</bugzilla>