I said this multiple pages earlier in these comments, this is for PGO, just delete --enable-optimizations
and it's in my opinion easiest solution to all these bs problems. I doubt you will notice any performance decrease.
Search Criteria
Package Details: python2 2.7.18-11
Package Actions
Git Clone URL: | https://aur.archlinux.org/python2.git (read-only, click to copy) |
---|---|
Package Base: | python2 |
Description: | A high-level scripting language |
Upstream URL: | https://www.python.org/ |
Licenses: | PSF-2.0 |
Conflicts: | python |
Submitter: | jelly |
Maintainer: | micwoj92 |
Last Packager: | micwoj92 |
Votes: | 74 |
Popularity: | 0.66 |
First Submitted: | 2022-09-23 10:01 (UTC) |
Last Updated: | 2024-06-17 22:01 (UTC) |
Dependencies (18)
- bzip2 (bzip2-gitAUR)
- expat (expat-gitAUR)
- gdbm (gdbm-gitAUR)
- libffi (libffi-gitAUR)
- libnsl (libnsl-gitAUR)
- libxcrypt (libxcrypt-gitAUR)
- openssl-1.1
- sqlite (sqlite-fossilAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- bluez-libs (bluez-gitAUR) (make)
- tk (tk-fossilAUR) (make)
- file (file-gitAUR) (check)
- gdb (gdb-gitAUR, gdb-debug-gitAUR) (check)
- xorg-server-xvfb (xorg-server-xvfb-gitAUR) (check)
- xterm (xterm-alacritty-symlinkAUR, kitty-xterm-symlinksAUR, xterm-gitAUR, xterm-alacritty-smooth-cursor-symlinkAUR) (check)
- python2-pipAUR (optional)
- python2-setuptoolsAUR (optional)
- tk (tk-fossilAUR) (optional) – for IDLE
Required by (1077)
- appleseed-git
- archivemail
- archutil
- arduino-git (optional)
- armory
- arpreply-git
- audiotag-thumbnailer
- axoloti-runtime-git
- balena-cli (make)
- balena-cli (optional)
- balena-cli-bin (optional)
- bapctools-git (optional)
- bash-it-git (optional)
- basilisk (make)
- bcash-git (make)
- bcoin-git (make)
- bdelta-git (make)
- bdflib-git
- beads
- beaker-browser (make)
- Show 1057 more...
Sources (4)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 19 Next › Last »
micwoj92 commented on 2023-06-07 12:34 (UTC)
fbrennan commented on 2023-06-07 11:37 (UTC)
Hmm. You're saying it skips the tests for you in that situation without a patch such as this?
diff --git a/PKGBUILD b/PKGBUILD
index ffec910..3c8ce95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,6 +69,13 @@ prepare() {
rm -r Modules/zlib
rm -r Modules/_ctypes/{darwin,libffi}*
+ # Python's tests serve no purpose for this package.
+ [ -z "$AURPY2KTESTS" ] && (
+ rm -r Lib/test/*
+ rm -r Lib/distutils/tests/*
+ warning "Disabling tests…you can force-enable them via envvar AURPY2KTESTS=1."
+ )
+
# clean up #!s
find . -name '*.py' | \
xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"
I should mention: this build is occurring inside Docker so it's likely tests will fail. Perhaps I want -n
instead.
micwoj92 commented on 2023-06-07 10:47 (UTC)
Can't reproduce. I am using up to date Arch Linux as of 2023-06-07. Works for me with non modified makepkg.conf in clean chroot set up this way: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Classic_way
As well as normally on my machine using custom makepkg.conf (only difference is -march=native
).
fbrennan commented on 2023-06-07 10:21 (UTC)
What I'm telling you is I tried that.
Doesn't work for this package éclaire. The Makefile runs it as part of the build.
eclairevoyant commented on 2023-06-07 08:44 (UTC)
If you don't want to run tests, read man makepkg
:
--nocheck
Do not run the check() function in the PKGBUILD or handle the checkdepends.
Also "test failed" is not a real error, you'd have to post the actual error (use a pastebin) if it's failing. I don't get any build failures in a clean chroot, so try that.
fbrennan commented on 2023-06-07 08:22 (UTC)
Yeah, same here. I personally think all these tests ought to be removed as they serve no purpose as this late date besides causing failed builds.
hirnschmalz commented on 2023-06-07 07:48 (UTC)
My build also fails because of test_gdb
== Tests result: FAILURE ==
368 tests OK.
1 test failed:
test_gdb
26 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos
test_macostools test_msilib test_ossaudiodev test_py3kwarn
test_scriptpackages test_startfile test_sunaudiodev test_winreg
test_winsound test_zipfile64
3 skips unexpected on linux2:
test_bsddb test_bsddb3 test_ioctl
Total duration: 8 min 232 ms
Tests result: FAILURE
==> ERROR: A failure occurred in check().
Aborting...
micwoj92 commented on 2023-06-05 19:19 (UTC)
No issue here.
Mr.Smith1974 commented on 2023-06-02 10:35 (UTC) (edited on 2023-06-02 10:37 (UTC) by Mr.Smith1974)
Build is failing with:
== Tests result: FAILURE ==
369 tests OK.
1 test failed:
test_gdb
25 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
test_imgfile test_kqueue test_linuxaudiodev test_macos
test_macostools test_msilib test_ossaudiodev test_py3kwarn
test_scriptpackages test_startfile test_sunaudiodev test_winreg
test_winsound test_zipfile64
2 skips unexpected on linux2:
test_bsddb test_bsddb3
Total duration: 9 min 17 sec
Tests result: FAILURE
Pinned Comments