>>> py3-setproctitle: Building community/py3-setproctitle 1.3.5-r0 (using abuild 3.15.0-r0) started Mon, 13 Oct 2025 03:55:26 +0000 >>> py3-setproctitle: Validating /home/udu/aports/community/py3-setproctitle/APKBUILD... >>> py3-setproctitle: Analyzing dependencies... >>> py3-setproctitle: Installing for build: build-base python3 musl-dev py3-gpep517 py3-setuptools py3-wheel python3-dev procps-ng py3-pytest WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/29) Upgrading python3 (3.12.11-r0 -> 3.12.12-r0) (2/29) Upgrading python3-pycache-pyc0 (3.12.11-r0 -> 3.12.12-r0) (3/29) Upgrading python3-pyc (3.12.11-r0 -> 3.12.12-r0) (4/29) Installing py3-installer (0.7.0-r2) (5/29) Installing py3-installer-pyc (0.7.0-r2) (6/29) Installing py3-gpep517 (19-r0) (7/29) Installing py3-gpep517-pyc (19-r0) (8/29) Installing py3-parsing (3.2.3-r0) (9/29) Installing py3-parsing-pyc (3.2.3-r0) (10/29) Installing py3-packaging (25.0-r0) (11/29) Installing py3-packaging-pyc (25.0-r0) (12/29) Installing py3-setuptools (80.9.0-r0) (13/29) Installing py3-setuptools-pyc (80.9.0-r0) (14/29) Installing py3-wheel (0.46.1-r0) (15/29) Installing py3-wheel-pyc (0.46.1-r0) (16/29) Installing python3-dev (3.12.12-r0) (17/29) Installing skalibs-libs (2.14.4.0-r0) (18/29) Installing utmps-libs (0.1.3.1-r0) (19/29) Installing libproc2 (4.0.4-r3) (20/29) Installing procps-ng (4.0.4-r3) (21/29) Installing py3-iniconfig (2.1.0-r0) (22/29) Installing py3-iniconfig-pyc (2.1.0-r0) (23/29) Installing py3-pluggy (1.5.0-r0) (24/29) Installing py3-pluggy-pyc (1.5.0-r0) (25/29) Installing py3-py (1.11.0-r4) (26/29) Installing py3-py-pyc (1.11.0-r4) (27/29) Installing py3-pytest (8.3.5-r0) (28/29) Installing py3-pytest-pyc (8.3.5-r0) (29/29) Installing .makedepends-py3-setproctitle (20251013.035527) Executing busybox-1.37.0-r19.trigger OK: 354 MiB in 115 packages >>> py3-setproctitle: Cleaning up srcdir >>> py3-setproctitle: Cleaning up pkgdir >>> py3-setproctitle: Cleaning up tmpdir >>> py3-setproctitle: Fetching setproctitle-1.3.5.tar.gz::https://github.com/dvarrazzo/py-setproctitle/archive/version-1.3.5.tar.gz >>> py3-setproctitle: Fetching setproctitle-1.3.5.tar.gz::https://github.com/dvarrazzo/py-setproctitle/archive/version-1.3.5.tar.gz >>> py3-setproctitle: Checking sha512sums... setproctitle-1.3.5.tar.gz: OK >>> py3-setproctitle: Unpacking /var/cache/distfiles/setproctitle-1.3.5.tar.gz... 2025-10-13 03:55:28,347 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-10-13 03:55:28,365 root INFO running bdist_wheel 2025-10-13 03:55:28,371 root INFO running build 2025-10-13 03:55:28,371 root INFO running build_py 2025-10-13 03:55:28,373 root INFO creating build/lib.linux-x86_64-cpython-312/setproctitle 2025-10-13 03:55:28,374 root INFO copying pkg/setproctitle/__init__.py -> build/lib.linux-x86_64-cpython-312/setproctitle 2025-10-13 03:55:28,374 root INFO copying pkg/setproctitle/py.typed -> build/lib.linux-x86_64-cpython-312/setproctitle 2025-10-13 03:55:28,374 root INFO running build_ext 2025-10-13 03:55:28,375 root INFO building 'setproctitle._setproctitle' extension 2025-10-13 03:55:28,376 root INFO creating build/temp.linux-x86_64-cpython-312/src 2025-10-13 03:55:28,376 root INFO cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -DSPT_VERSION=1.3.5 -DHAVE_SYS_PRCTL_H=1 -I/usr/include/python3.12 -c src/setproctitle.c -o build/temp.linux-x86_64-cpython-312/src/setproctitle.o 2025-10-13 03:55:28,554 root INFO cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -DSPT_VERSION=1.3.5 -DHAVE_SYS_PRCTL_H=1 -I/usr/include/python3.12 -c src/spt_debug.c -o build/temp.linux-x86_64-cpython-312/src/spt_debug.o 2025-10-13 03:55:28,603 root INFO cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -DSPT_VERSION=1.3.5 -DHAVE_SYS_PRCTL_H=1 -I/usr/include/python3.12 -c src/spt_setup.c -o build/temp.linux-x86_64-cpython-312/src/spt_setup.o 2025-10-13 03:55:28,703 root INFO cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -DSPT_VERSION=1.3.5 -DHAVE_SYS_PRCTL_H=1 -I/usr/include/python3.12 -c src/spt_status.c -o build/temp.linux-x86_64-cpython-312/src/spt_status.o 2025-10-13 03:55:28,777 root INFO cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -DSPT_VERSION=1.3.5 -DHAVE_SYS_PRCTL_H=1 -I/usr/include/python3.12 -c src/spt_strlcpy.c -o build/temp.linux-x86_64-cpython-312/src/spt_strlcpy.o 2025-10-13 03:55:28,794 root INFO cc -shared -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt build/temp.linux-x86_64-cpython-312/src/setproctitle.o build/temp.linux-x86_64-cpython-312/src/spt_debug.o build/temp.linux-x86_64-cpython-312/src/spt_setup.o build/temp.linux-x86_64-cpython-312/src/spt_status.o build/temp.linux-x86_64-cpython-312/src/spt_strlcpy.o -L/usr/lib -o build/lib.linux-x86_64-cpython-312/setproctitle/_setproctitle.cpython-312-x86_64-linux-musl.so 2025-10-13 03:55:28,807 root INFO installing to build/bdist.linux-x86_64/wheel 2025-10-13 03:55:28,808 root INFO running install 2025-10-13 03:55:28,812 root INFO running install_lib 2025-10-13 03:55:28,814 root INFO creating build/bdist.linux-x86_64/wheel 2025-10-13 03:55:28,814 root INFO creating build/bdist.linux-x86_64/wheel/setproctitle 2025-10-13 03:55:28,814 root INFO copying build/lib.linux-x86_64-cpython-312/setproctitle/py.typed -> build/bdist.linux-x86_64/wheel/./setproctitle 2025-10-13 03:55:28,814 root INFO copying build/lib.linux-x86_64-cpython-312/setproctitle/_setproctitle.cpython-312-x86_64-linux-musl.so -> build/bdist.linux-x86_64/wheel/./setproctitle 2025-10-13 03:55:28,814 root INFO copying build/lib.linux-x86_64-cpython-312/setproctitle/__init__.py -> build/bdist.linux-x86_64/wheel/./setproctitle 2025-10-13 03:55:28,814 root INFO running install_egg_info 2025-10-13 03:55:28,816 root INFO running egg_info 2025-10-13 03:55:28,817 root INFO creating setproctitle.egg-info 2025-10-13 03:55:28,817 root INFO writing setproctitle.egg-info/PKG-INFO 2025-10-13 03:55:28,818 root INFO writing dependency_links to setproctitle.egg-info/dependency_links.txt 2025-10-13 03:55:28,818 root INFO writing requirements to setproctitle.egg-info/requires.txt 2025-10-13 03:55:28,818 root INFO writing top-level names to setproctitle.egg-info/top_level.txt 2025-10-13 03:55:28,818 root INFO writing manifest file 'setproctitle.egg-info/SOURCES.txt' 2025-10-13 03:55:28,819 root INFO reading manifest file 'setproctitle.egg-info/SOURCES.txt' 2025-10-13 03:55:28,820 root INFO reading manifest template 'MANIFEST.in' 2025-10-13 03:55:28,820 root WARNING warning: no files found matching 'Makefile' 2025-10-13 03:55:28,821 root INFO writing manifest file 'setproctitle.egg-info/SOURCES.txt' 2025-10-13 03:55:28,821 root INFO Copying setproctitle.egg-info to build/bdist.linux-x86_64/wheel/./setproctitle-1.3.5-py3.12.egg-info 2025-10-13 03:55:28,821 root INFO running install_scripts 2025-10-13 03:55:28,824 root INFO creating build/bdist.linux-x86_64/wheel/setproctitle-1.3.5.dist-info/WHEEL 2025-10-13 03:55:28,824 wheel INFO creating '/home/udu/aports/community/py3-setproctitle/src/py-setproctitle-version-1.3.5/.dist/.tmp-xiqrweci/setproctitle-1.3.5-cp312-cp312-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-10-13 03:55:28,824 wheel INFO adding 'setproctitle/__init__.py' 2025-10-13 03:55:28,824 wheel INFO adding 'setproctitle/_setproctitle.cpython-312-x86_64-linux-musl.so' 2025-10-13 03:55:28,825 wheel INFO adding 'setproctitle/py.typed' 2025-10-13 03:55:28,825 wheel INFO adding 'setproctitle-1.3.5.dist-info/METADATA' 2025-10-13 03:55:28,825 wheel INFO adding 'setproctitle-1.3.5.dist-info/WHEEL' 2025-10-13 03:55:28,825 wheel INFO adding 'setproctitle-1.3.5.dist-info/top_level.txt' 2025-10-13 03:55:28,825 wheel INFO adding 'setproctitle-1.3.5.dist-info/RECORD' 2025-10-13 03:55:28,825 root INFO removing build/bdist.linux-x86_64/wheel 2025-10-13 03:55:28,825 gpep517 INFO The backend produced .dist/setproctitle-1.3.5-cp312-cp312-linux_x86_64.whl setproctitle-1.3.5-cp312-cp312-linux_x86_64.whl ============================= test session starts ============================== platform linux -- Python 3.12.12, pytest-8.3.5, pluggy-1.5.0 rootdir: /home/udu/aports/community/py3-setproctitle/src/py-setproctitle-version-1.3.5 configfile: pyproject.toml collected 28 items tests/module_test.py ... [ 10%] tests/setproctitle_test.py ..FsF...FFFFFssss... [ 82%] tests/setthreadtitle_test.py sss [ 92%] tests/test_win32.py ss [100%] =================================== FAILURES =================================== ______________________________ test_setproctitle _______________________________ def test_setproctitle(): """setproctitle() can set the process title, duh.""" rv = run_script( r""" import setproctitle setproctitle.setproctitle('Hello, world!') import os print(os.getpid()) # ps can fail on kfreebsd arch # (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460331) print(os.popen("ps -x -o pid,command 2> /dev/null").read()) """ ) lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) > title = _clean_up_title(pids[pid]) E KeyError: '1740976' tests/setproctitle_test.py:68: KeyError __________________________________ test_prctl __________________________________ def test_prctl(): """Check that prctl is called on supported platforms.""" linux_version = [] if sys.platform in ("linux", "linux2"): try: f = os.popen("uname -r") name = f.read() f.close() except Exception: pass else: linux_version = list( map(int, re.search("[.0-9]+", name).group().split(".")[:3]) ) if linux_version < [2, 6, 9]: pytest.skip("syscall not supported") > rv = run_script( r""" import setproctitle setproctitle.setproctitle('Hello, prctl!') print(open('/proc/self/status').read()) """ ) tests/setproctitle_test.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ script = "\nimport setproctitle\nsetproctitle.setproctitle('Hello, prctl!')\nprint(open('/proc/self/status').read())\n" args = None executable = '/home/udu/aports/community/py3-setproctitle/src/py-setproctitle-version-1.3.5/.testenv/bin/python3' env = None def run_script(script=None, args=None, executable=None, env=None): """run a script in a separate process. if the script completes successfully, return its ``stdout``, else fail the test. """ if executable is None: executable = sys.executable cmdline = str(executable) if args: cmdline = cmdline + " " + args proc = sp.Popen( cmdline, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE, env=env, shell=True, close_fds=True, ) out, err = proc.communicate(script and script.encode()) if 0 != proc.returncode: if out: print(out.decode("utf8", "replace"), file=sys.stdout) if err: print(err.decode("utf8", "replace"), file=sys.stderr) > pytest.fail("test script failed") E Failed: test script failed tests/conftest.py:154: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 4, in FileNotFoundError: [Errno 2] No such file or directory: '/proc/self/status' _________________________________ test_issue_8 _________________________________ tmp_pypath = PosixPath('/tmp/pytest-of-udu/pytest-0/test_issue_80') def test_issue_8(tmp_pypath): """Test that the module works with 'python -m'.""" module = "spt_issue_8" with open(tmp_pypath / f"{module}.py", "w") as f: f.write( r""" import setproctitle setproctitle.setproctitle("Hello, module!") import os print(os.getpid()) print(os.popen("ps -x -o pid,command 2> /dev/null").read()) """ ) rv = run_script(args="-m " + module) lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) > title = _clean_up_title(pids[pid]) E KeyError: '1740984' tests/setproctitle_test.py:192: KeyError ______________________________ test_large_cmdline ______________________________ tmp_pypath = PosixPath('/tmp/pytest-of-udu/pytest-0/test_large_cmdline0') def test_large_cmdline(tmp_pypath): """Test with a 64KB command line.""" module = "longargs" with open(tmp_pypath / f"{module}.py", "w") as f: f.write( r""" import setproctitle setproctitle.setproctitle("Hello, long!") import os print(os.getpid()) print(os.popen("ps -x -o pid,command 2> /dev/null").read()) """ ) rv = run_script(args=f"-m {module} {' '.join(['X' * 1024] * 64)}") lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) > title = _clean_up_title(pids[pid]) E KeyError: '1740986' tests/setproctitle_test.py:216: KeyError _________________________________ test_unicode _________________________________ def test_unicode(): """Title can contain unicode characters.""" snowman = "\u2603" try: snowman.encode(sys.getdefaultencoding()) except UnicodeEncodeError: pytest.skip( "default encoding '%s' can't deal with snowmen" % sys.getdefaultencoding() ) try: snowman.encode(sys.getfilesystemencoding()) except UnicodeEncodeError: pytest.skip( "file system encoding '%s' can't deal with snowmen" % sys.getfilesystemencoding() ) rv = run_script( r""" snowman = u'\u2603' import setproctitle setproctitle.setproctitle("Hello, " + snowman + "!") import os import locale from subprocess import Popen, PIPE print(os.getpid()) proc = Popen("ps -x -o pid,command 2> /dev/null", shell=True, close_fds=True, stdout=PIPE, stderr=PIPE) buf = proc.stdout.read() print(buf.decode(locale.getpreferredencoding(), 'replace')) """ ) lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) snowmen = [ "\u2603", # ps supports unicode r"\M-b\M^X\M^C", # ps output on BSD r"M-bM^XM^C", # ps output on some Darwin < 11.2 "\ufffdM^XM^C", # ps output on Darwin 11.2 ] > title = _clean_up_title(pids[pid]) E KeyError: '1740988' tests/setproctitle_test.py:266: KeyError _______________________________ test_weird_args ________________________________ def test_weird_args(): """No problem with encoded arguments.""" euro = "\u20ac" snowman = "\u2603" try: rv = run_script( r""" import setproctitle setproctitle.setproctitle("Hello, weird args!") import os print(os.getpid()) print(os.popen("ps -x -o pid,command 2> /dev/null").read()) """, args=" ".join(["-", "hello", euro, snowman]), ) except TypeError: pytest.skip("apparently we can't pass unicode args to a program") lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) > title = _clean_up_title(pids[pid]) E KeyError: '1740990' tests/setproctitle_test.py:297: KeyError _______________________________ test_weird_path ________________________________ tmp_path = PosixPath('/tmp/pytest-of-udu/pytest-0/test_weird_path0') spt_directory = '/home/udu/aports/community/py3-setproctitle/src/py-setproctitle-version-1.3.5/.testenv/lib/python3.12/site-packages' def test_weird_path(tmp_path, spt_directory): """No problem with encoded argv[0] path.""" _check_4388() euro = "\u20ac" snowman = "\u2603" dir = tmp_path / euro / snowman try: os.makedirs(dir) except UnicodeEncodeError: pytest.skip("file system doesn't support unicode") exc = dir / os.path.basename(sys.executable) os.symlink(sys.executable, exc) rv = run_script( f""" import sys sys.path.insert(0, {repr(spt_directory)}) import setproctitle setproctitle.setproctitle("Hello, weird path!") import os print(os.getpid()) print(os.popen("ps -x -o pid,command 2> /dev/null").read()) """, args=" ".join(["-", "foo", "bar", "baz"]), executable=exc, ) lines = [line for line in rv.splitlines() if line] pid = lines.pop(0) pids = dict([r.strip().split(None, 1) for r in lines]) > title = _clean_up_title(pids[pid]) E KeyError: '1740994' tests/setproctitle_test.py:334: KeyError =========================== short test summary info ============================ FAILED tests/setproctitle_test.py::test_setproctitle - KeyError: '1740976' FAILED tests/setproctitle_test.py::test_prctl - Failed: test script failed FAILED tests/setproctitle_test.py::test_issue_8 - KeyError: '1740984' FAILED tests/setproctitle_test.py::test_large_cmdline - KeyError: '1740986' FAILED tests/setproctitle_test.py::test_unicode - KeyError: '1740988' FAILED tests/setproctitle_test.py::test_weird_args - KeyError: '1740990' FAILED tests/setproctitle_test.py::test_weird_path - KeyError: '1740994' =================== 7 failed, 11 passed, 10 skipped in 0.61s =================== >>> ERROR: py3-setproctitle: check failed >>> py3-setproctitle: Uninstalling dependencies... (1/26) Purging .makedepends-py3-setproctitle (20251013.035527) (2/26) Purging py3-gpep517-pyc (19-r0) (3/26) Purging py3-gpep517 (19-r0) (4/26) Purging py3-installer-pyc (0.7.0-r2) (5/26) Purging py3-installer (0.7.0-r2) (6/26) Purging py3-setuptools-pyc (80.9.0-r0) (7/26) Purging py3-setuptools (80.9.0-r0) (8/26) Purging py3-wheel-pyc (0.46.1-r0) (9/26) Purging py3-wheel (0.46.1-r0) (10/26) Purging python3-dev (3.12.12-r0) (11/26) Purging procps-ng (4.0.4-r3) (12/26) Purging py3-pytest-pyc (8.3.5-r0) (13/26) Purging py3-pytest (8.3.5-r0) (14/26) Purging py3-iniconfig-pyc (2.1.0-r0) (15/26) Purging py3-iniconfig (2.1.0-r0) (16/26) Purging py3-packaging-pyc (25.0-r0) (17/26) Purging py3-packaging (25.0-r0) (18/26) Purging py3-parsing-pyc (3.2.3-r0) (19/26) Purging py3-parsing (3.2.3-r0) (20/26) Purging py3-pluggy-pyc (1.5.0-r0) (21/26) Purging py3-pluggy (1.5.0-r0) (22/26) Purging py3-py-pyc (1.11.0-r4) (23/26) Purging py3-py (1.11.0-r4) (24/26) Purging libproc2 (4.0.4-r3) (25/26) Purging utmps-libs (0.1.3.1-r0) (26/26) Purging skalibs-libs (2.14.4.0-r0) Executing busybox-1.37.0-r19.trigger OK: 296 MiB in 89 packages