Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[SOLVED] oblogout-py3 error no such option 'po-dir'

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
sdauth
l33t
l33t
User avatar
Posts: 770
Joined: Wed Sep 19, 2018 2:48 am
Location: Ásgarðr

[SOLVED] oblogout-py3 error no such option 'po-dir'

  • Quote

Post by sdauth » Fri May 02, 2025 3:15 pm

Hello,
I need help to fix this ebuild, I modified it a few weeks ago to add DISTUTILS_USE_PEP517=setuptools but didn't rebuild it.
Then today, during the python3.13 update, it was triggered for rebuild and so I now notice it fails to build :

Code: Select all

error: error in setup.cfg: command 'build_i18n' has no such option 'po-dir'
Full log:

Code: Select all

 * Package:    x11-misc/oblogout-py3-0.0.3_p20240428-r1:0
 * Repository: localrepo
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_13
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Build system packages:
 *   dev-python/gpep517            : 17
 *   dev-python/installer          : 0.7.0
 *   dev-python/setuptools         : 78.1.0
 *   dev-python/setuptools-rust    : 
 *   dev-python/setuptools-scm     : 8.2.1
 *   dev-python/wheel              : 0.45.1
 * python3_13: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a via setuptools.build_meta:__legacy__
python3.13 -m gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/wheel
2025-05-02 06:40:43,703 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__
/usr/lib/python3.13/site-packages/setuptools/dist.py:334: InformationOnly: Normalizing '0.03' to '0.3'
  self.metadata.version = self._normalize_version(self.metadata.version)
2025-05-02 06:40:43,789 root INFO running bdist_wheel
2025-05-02 06:40:43,928 root INFO running build
2025-05-02 06:40:43,928 root INFO running build_py
2025-05-02 06:40:43,946 root INFO creating /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/lib/oblogout
2025-05-02 06:40:43,947 root INFO copying oblogout/dbushandler.py -> /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/lib/oblogout
2025-05-02 06:40:43,947 root INFO copying oblogout/__init__.py -> /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/lib/oblogout
2025-05-02 06:40:43,948 root WARNING warning: build_py: byte-compiling is disabled, skipping.

2025-05-02 06:40:43,948 root INFO running build_scripts
2025-05-02 06:40:43,948 root INFO creating /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/scripts-3.13
2025-05-02 06:40:43,949 root INFO copying and adjusting data/oblogout -> /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/scripts-3.13
2025-05-02 06:40:43,949 root INFO changing mode of /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/build0/scripts-3.13/oblogout from 644 to 755
2025-05-02 06:40:43,949 root INFO running build_i18n
error: error in setup.cfg: command 'build_i18n' has no such option 'po-dir'
 * ERROR: x11-misc/oblogout-py3-0.0.3_p20240428-r1::localrepo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3490:  Called distutils-r1_src_compile
 *   environment, line 1760:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  630:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3108:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2663:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2661:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1058:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1742:  Called distutils-r1_python_compile
 *   environment, line 1574:  Called distutils_pep517_install '/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a-python3_13/install'
 *   environment, line 2091:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
 * 
 * If you need support, post the output of `emerge --info '=x11-misc/oblogout-py3-0.0.3_p20240428-r1::localrepo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/oblogout-py3-0.0.3_p20240428-r1::localrepo'`.
 * The complete build log is located at '/var/log/portage/x11-misc:oblogout-py3-0.0.3_p20240428-r1:20250502-044039.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a'
 * S: '/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a'
oblogout-py3-0.0.3_p20240428-r1.ebuild

Code: Select all

# Copyright 1999-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="8"

PYTHON_COMPAT=( python3_{11..13} )
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1

DESCRIPTION="Gtk3/Cairo based logout menu for the Openbox Window Manager"
HOMEPAGE="https://github.com/trizen/oblogout-py3"
COMMIT="ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a"
SRC_URI="https://github.com/trizen/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="dev-python/pillow"
BDEPEND="dev-python/python-distutils-extra"
edit :
pkgcheck scan

Code: Select all

x11-misc/oblogout-py3
  DeprecatedDep: version 0.0.3_p20240428-r1: BDEPEND: deprecated dependency: dev-python/python-distutils-extra
----

Any idea ?

Thanks a lot.
Last edited by sdauth on Sat May 03, 2025 3:42 am, edited 1 time in total.
Top
sdauth
l33t
l33t
User avatar
Posts: 770
Joined: Wed Sep 19, 2018 2:48 am
Location: Ásgarðr

  • Quote

Post by sdauth » Fri May 02, 2025 5:55 pm

For what it's worth, I rebooted to a root snapshot before the python3.13 upgrade and it fails to build with python3.12 too. So it is not related.
At some point (June 2024) it built fine though so I'm very confused here.

More info:
/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a/setup.py

Code: Select all

#!/usr/bin/python

import glob

from distutils.core import setup
from DistUtilsExtra.command import *

setup(name = "oblogout",
    version = "0.03",
    description = "Openbox Logout",
    author = "Andrew Williams",
    author_email = "andy@tensixtyone.com",
    url = "http://launchpad.net/oblogout/",

    packages = ['oblogout'],
    scripts = ["data/oblogout"],
    data_files = [('share/themes/foom/oblogout', glob.glob('data/themes/foom/oblogout/*')),
                 ('share/themes/oxygen/oblogout', glob.glob('data/themes/oxygen/oblogout/*')),
                 ('/etc', glob.glob('data/oblogout.conf'))],

    cmdclass = { 'build' : build_extra.build_extra,
                 'build_i18n' :  build_i18n.build_i18n },


    long_description = """Openbox logout application."""
)
/var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a/setup.cfg

Code: Select all

[build]
icons=False
help=False

[build_i18n]
po-dir=po

ls -al /var/tmp/portage/x11-misc/oblogout-py3-0.0.3_p20240428-r1/work/oblogout-py3-ff2b0595ac7f3f07f7f67bd3210b0e7a2027953a/po/

Code: Select all

drwxr-xr-x 2 portage portage  400 28 avril  2024 .
drwxr-xr-x 5 portage portage  220 28 avril  2024 ..
-rw-r--r-- 1 portage portage   35 28 avril  2024 POTFILES.in
-rw-r--r-- 1 portage portage 2605 28 avril  2024 de.po
-rw-r--r-- 1 portage portage 2846 28 avril  2024 el.po
-rw-r--r-- 1 portage portage 2377 28 avril  2024 en_GB.po
-rw-r--r-- 1 portage portage 2086 28 avril  2024 fi.po
-rw-r--r-- 1 portage portage 2576 28 avril  2024 fr.po
-rw-r--r-- 1 portage portage 2595 28 avril  2024 he.po
-rw-r--r-- 1 portage portage 2051 28 avril  2024 lv.po
-rw-r--r-- 1 portage portage 2337 28 avril  2024 nb.po
-rw-r--r-- 1 portage portage 2482 28 avril  2024 nl.po
-rw-r--r-- 1 portage portage 2347 28 avril  2024 nn.po
-rw-r--r-- 1 portage portage 1591 28 avril  2024 oblogout.pot
-rw-r--r-- 1 portage portage 2402 28 avril  2024 pl.po
-rw-r--r-- 1 portage portage 2478 28 avril  2024 pt.po
-rw-r--r-- 1 portage portage 2500 28 avril  2024 pt_BR.po
-rw-r--r-- 1 portage portage 2900 28 avril  2024 ru.po
-rw-r--r-- 1 portage portage 2369 28 avril  2024 sv.po
-rw-r--r-- 1 portage portage 2505 28 avril  2024 tr.p
Top
sam_
Developer
Developer
User avatar
Posts: 2814
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat May 03, 2025 12:18 am

python-distutils-extra provides build_i18n and its po-dir but I'm not completely sure that python-distutils-extra actually works with PEP517.
Top
sdauth
l33t
l33t
User avatar
Posts: 770
Joined: Wed Sep 19, 2018 2:48 am
Location: Ásgarðr

  • Quote

Post by sdauth » Sat May 03, 2025 3:41 am

Thanks, well, while modifying the ebuild, I noticed this warning during another try :

Code: Select all

/usr/lib/python3.13/site-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'po-dir' in 'build' (setup.cfg), please use the underscore name 'po_dir' instead.
(apparently with newer setuptools version it is now fatal, I remember seeing this in the past for an other ebuild but it was compiling fine nonetheless)

Anyway, so I added:

Code: Select all

src_configure() {
    sed -i 's:po-dir:po_dir:' setup.cfg || die
}
and now it builds without further modification (same ebuild I posted in first post)
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic