Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25161 - [wireshark] abs build doesn't work with python3

Attached to Project: Arch Linux
Opened by Anish Bhatt (anish) - Monday, 18 July 2011, 20:26 GMT
Last edited by Guillaume ALAUX (galaux) - Wednesday, 20 July 2011, 18:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture All
Severity Very Low
Priority Low
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Had to symlink python2 to python instead of the arch standard python3 to get around the following build failure :

Making register.c with python
File "../../tools/make-dissector-reg.py", line 62
print "Unknown output type '%s'" % registertype

Additional info:
* package version(s)
wireshark : 1.6.0-1
* Detailed error :

make[3]: Entering directory `/var/abs/local/wireshark/src/wireshark-1.6.0/epan/dissectors'
Making register.c with python
File "../../tools/make-dissector-reg.py", line 62
print "Unknown output type '%s'" % registertype
^
SyntaxError: invalid syntax
make[3]: *** [register.c] Error 1
make[3]: Leaving directory `/var/abs/local/wireshark/src/wireshark-1.6.0/epan/dissectors'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/abs/local/wireshark/src/wireshark-1.6.0/epan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/wireshark/src/wireshark-1.6.0'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Steps to reproduce:
Simply run a makepkg on the abs pkgbuild for wireshark
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Wednesday, 20 July 2011, 18:30 GMT
Reason for closing:  Works for me
Comment by Ionut Biru (wonder) - Tuesday, 19 July 2011, 06:33 GMT
this happens when packages are not built in clean chroots. Instead of doing stupid symlinks(btw you broke all python 3 packages), do:

PYTHON=/usr/bin/python2 ./configure...
Comment by Guillaume ALAUX (galaux) - Tuesday, 19 July 2011, 20:35 GMT
> Steps to reproduce:
> Simply run a makepkg on the abs pkgbuild for wireshark
Done. And it works here.

FYI:
% python -V
Python 3.2.1
% uname -m
x86_64

Am I missing something here?
Comment by Anish Bhatt (anish) - Tuesday, 19 July 2011, 20:38 GMT
~ $ python -V
Python 3.2.1
~ $ uname -m
x86_64
~ $ ls -al `which python`
lrwxrwxrwx 1 root root 7 Jul 11 05:49 /usr/bin/python -> python3

Haven't made any change that would affect python to this system.
Comment by Anish Bhatt (anish) - Tuesday, 19 July 2011, 20:46 GMT
@wonder yes, I know. The symlink was only used for the purposes of building this package and changed back
Comment by Guillaume ALAUX (galaux) - Tuesday, 19 July 2011, 20:58 GMT
Unfortunately, as I cannot reproduce this, this bug report is bound to be closed as "works for me" unless you manage to get some more matter to work on.
Comment by Anish Bhatt (anish) - Tuesday, 19 July 2011, 21:11 GMT
Sounds fine. I have not had a issue running anything else with python on this machine, nor had any abs python build issues (I use abs fairly heavily), so I still doubt if there's a problem with the setup but all evidence seems to be pointing to the contrary. I'll see if I can reproduce this elsewhere.
Comment by Guillaume ALAUX (galaux) - Wednesday, 20 July 2011, 18:30 GMT
Thanks. I'm closing the report but do not hesitate to report anything new.

Loading...