* [gentoo-dev] dev-lang/python-2.0-r5
@ 2001-10-28 18:42 Joe Bormolini
2001-10-30 19:18 ` The Nelson's
2001-10-30 22:59 ` Tod M. Neidt
0 siblings, 2 replies; 4+ messages in thread
From: Joe Bormolini @ 2001-10-28 18:42 UTC (permalink / raw
To: gentoo-dev
dev-lang/python-2.0-r5.ebuild
Line 48: s:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk8.4 -ltcl8.4:
the ebuild actually depends on >=dev-lang/tcl-tk-8.0 if tcltk is in USE yet a note above says the dep is =dev-lang/tcl-tk
tcl-tk-8.4 is in package.mask listed as being incompatible with python, but the python ebuild tries to compile with -ltk8.4 and -ltcl8.4 no matter what version of tcl-tk is installed. Something needs to be fixed here :p
--lordjoe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] dev-lang/python-2.0-r5
2001-10-28 18:42 [gentoo-dev] dev-lang/python-2.0-r5 Joe Bormolini
@ 2001-10-30 19:18 ` The Nelson's
2001-10-30 22:59 ` Tod M. Neidt
1 sibling, 0 replies; 4+ messages in thread
From: The Nelson's @ 2001-10-30 19:18 UTC (permalink / raw
To: gentoo-dev
I'm having the same problem on my system. I tried doing the simple thing,
looking for ltk8.3 so I could modify the ebuild, and couldn't find it.
Since so many packages require python this one is preventing me from getting
my box updated to rc6 (kde and vim both want to use it since its in my USE
statement.
Did you find a fix for it yet?
----- Original Message -----
From: "Joe Bormolini" <lordjoe@bigfoot.com>
To: <gentoo-dev@cvs.gentoo.org>
Sent: Sunday, October 28, 2001 7:42 PM
Subject: [gentoo-dev] dev-lang/python-2.0-r5
> dev-lang/python-2.0-r5.ebuild
> Line 48: s:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk8.4 -ltcl8.4:
>
> the ebuild actually depends on >=dev-lang/tcl-tk-8.0 if tcltk is in USE
yet a note above says the dep is =dev-lang/tcl-tk
>
> tcl-tk-8.4 is in package.mask listed as being incompatible with python,
but the python ebuild tries to compile with -ltk8.4 and -ltcl8.4 no matter
what version of tcl-tk is installed. Something needs to be fixed here :p
>
> --lordjoe
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@cvs.gentoo.org
> http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] dev-lang/python-2.0-r5
2001-10-28 18:42 [gentoo-dev] dev-lang/python-2.0-r5 Joe Bormolini
2001-10-30 19:18 ` The Nelson's
@ 2001-10-30 22:59 ` Tod M. Neidt
2001-10-31 11:59 ` Karl Trygve Kalleberg
1 sibling, 1 reply; 4+ messages in thread
From: Tod M. Neidt @ 2001-10-30 22:59 UTC (permalink / raw
To: gentoo-dev mailing list
[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]
Hi!
Please find a patch that makes the python-2.0-r5.ebuild independent of
the tcl-tk version, i.e. no hard coded version number. This is done by
grep-ing the tcl and tk header files.
Also, is their a reason that tcl-tk-8.4 is masked. I have been using
8.4 with python-2.0 for well over 6 months. I also rebuilt python-2.0
with the patch mentioned above with tcl-tk-8.4 already merged.
/usr/bin/idle.py pops right up.
Comments welcome
tod
On Mon, 2001-10-29 at 01:42, Joe Bormolini wrote:
> dev-lang/python-2.0-r5.ebuild
> Line 48: s:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk8.4 -ltcl8.4:
>
> the ebuild actually depends on >=dev-lang/tcl-tk-8.0 if tcltk is in USE yet a note above says the dep is =dev-lang/tcl-tk
>
> tcl-tk-8.4 is in package.mask listed as being incompatible with python, but the python ebuild tries to compile with -ltk8.4 and -ltcl8.4 no matter what version of tcl-tk is installed. Something needs to be fixed here :p
>
> --lordjoe
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@cvs.gentoo.org
> http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
>
[-- Attachment #2: python-2.0-r5-tcl-tk.patch --]
[-- Type: text/plain, Size: 1104 bytes --]
--- /usr/portage/dev-lang/python/python-2.0-r5.ebuild Sat Oct 20 16:08:33 2001
+++ ./python-2.0-r5.ebuild Tue Oct 30 23:38:41 2001
@@ -41,11 +41,23 @@
#Need to automate tk and tcl version determination
if [ "`use tcltk`" ]
then
+
+#Determine tcl version by greping tcl.h
+#Probably don't need same for tk, but play it safe
+ local tcl_version
+ local tk_version
+
+ tcl_version=$(grep TCL_VERSION /usr/include/tcl.h | \
+ sed -e 's/.*\([0-9]\.[0-9]\).*/\1/')
+
+ tk_version=$(grep TK_VERSION /usr/include/tk.h | \
+ sed -e 's/.*\([0-9]\.[0-9]\).*/\1/')
+
sed -e 's:# _tkinter:_tkinter:' \
-e 's:#[[:blank:]]*-I/usr/local/include:-I/usr/include:' \
-e 's:#[[:blank:]]*-I/usr/X11R6/include:-I/usr/X11R6/include:' \
-e 's:#[[:blank:]]*-L/usr/local/lib:-L/usr/lib:' \
- -e 's:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk8.4 -ltcl8.4:' \
+ -e 's:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk'${tk_version}' -ltcl'${tcl_version}':' \
-e 's:#[[:blank:]]*-L/usr/X11R6/lib:-L/usr/X11R6/lib:' \
-e 's:#[[:blank:]]-lX11:-lX11:' \
Setup.in > Setup.new
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] dev-lang/python-2.0-r5
2001-10-30 22:59 ` Tod M. Neidt
@ 2001-10-31 11:59 ` Karl Trygve Kalleberg
0 siblings, 0 replies; 4+ messages in thread
From: Karl Trygve Kalleberg @ 2001-10-31 11:59 UTC (permalink / raw
To: gentoo-dev
On 31 Oct 2001 00:02:51 +0000
"Tod M. Neidt" <tneidt@fidnet.com> wrote:
> Hi!
>
> Please find a patch that makes the python-2.0-r5.ebuild independent of
> the tcl-tk version, i.e. no hard coded version number. This is done by
> grep-ing the tcl and tk header files.
Added as python-2.0-r6, committed and cursorily tested (idle.py works, as
advertised).
Kind regards,
Karl T
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-10-31 18:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-28 18:42 [gentoo-dev] dev-lang/python-2.0-r5 Joe Bormolini
2001-10-30 19:18 ` The Nelson's
2001-10-30 22:59 ` Tod M. Neidt
2001-10-31 11:59 ` Karl Trygve Kalleberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox