From unknown Sat Jun 14 19:47:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53394] [PATCH] gnu: Openbox: Make compatible with Python 3. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 18:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53394@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16427022827409 (code B ref -1); Thu, 20 Jan 2022 18:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 18:11:22 +0000 Received: from localhost ([127.0.0.1]:59136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAbu5-0001vQ-6w for submit@debbugs.gnu.org; Thu, 20 Jan 2022 13:11:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:51892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAbu2-0001vI-Lb for submit@debbugs.gnu.org; Thu, 20 Jan 2022 13:11:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAbu2-0004V3-Bs for guix-patches@gnu.org; Thu, 20 Jan 2022 13:11:18 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:42023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAbtx-0006Yv-HP for guix-patches@gnu.org; Thu, 20 Jan 2022 13:11:15 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 929633200645; Thu, 20 Jan 2022 13:11:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 20 Jan 2022 13:11:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=mesmtp; bh=aMLx8Ra3kMt5DF+LJwotuUW8tOPcFERotYs rn23WsNM=; b=stktof6anvFZgBq+d1y+pkFw9fsicnW0m10q3Eh7jgo/qzDJ/3+ O0ARnG+k3tU775f5ibbC4UOFnHKEOGDcUNU9+kyNOTfQ9oiq5kEaTGvMwnAOoLmw kL5JlJ5gqkZml09N8j2J7cwoMQwgoozMtf2cXcBjruH6mEfOziqp89Bs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=aMLx8Ra3kMt5DF+LJ wotuUW8tOPcFERotYsrn23WsNM=; b=NNahbnRMw0eu58tVU6PRkOGd3L9VTwpqo QlT715CLYG5zG+yHRsciRHJXNNPIbhw4rbIOaMh2Ro8uQKDlfTWdi/cweXwFgEL5 AZgTQlrEiLnYPKsQjjEgUUf/kEikCAIBf/fr3SDXBrEugJePUqVdYpTyXkCIbHuJ wMX/rtt+93gfbL6C1NZXIXWZRn7iPnkjH6m7X05DhmrnYDaTsL/J6ur42UG0Z+ZT uulnjoLnLCv0y1gb1esqteBX7VtX6eurMr/1yim6FEme0auB34tnEHT/LzM0ef8Q UvuVFWfNb4R7gJYNFz6hlLBAaHYys6lbdAGvS8BbkM9DJM4lUx5Ew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeuffdtjeeiheejueegteegkeettddute ejhefhieeghfegkeefhffgffekueekieenucffohhmrghinhepohhpvghnsghogidrohhr ghdpghgvnhhtohhordhorhhgpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgr mhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 20 Jan 2022 13:11:10 -0500 (EST) From: Leo Famulari Date: Thu, 20 Jan 2022 13:11:07 -0500 Message-Id: <002d396c0ecfe47e1457a71842d53c95875f99cf.1642702165.git.leo@famulari.name> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.21; envelope-from=leo@famulari.name; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) As the patch file says, Openbox seems abandoned upstream. So, as Python 2 is phased out, we can either use a patch like this, or remove Openbox. I rebuilt all affected packages on x86_64-linux, and there were no new build failures, only the same failures as before this patch: kdepim-runtime-20.04.1 kmail-20.04.1 akregator-20.04.1 scorep-openmpi-3.1 smb4k-3.0.6 * gnu/packages/patches/openbox-python-3-compatibility.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/openbox.scm (openbox)[source]: Use it. --- gnu/packages/openbox.scm | 4 +- .../openbox-python-3-compatibility.patch | 273 ++++++++++++++++++ 2 files changed, 276 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/openbox-python-3-compatibility.patch diff --git a/gnu/packages/openbox.scm b/gnu/packages/openbox.scm index 873592c19e..698c939a96 100644 --- a/gnu/packages/openbox.scm +++ b/gnu/packages/openbox.scm @@ -24,6 +24,7 @@ (define-module (gnu packages openbox) #:use-module (guix download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (gnu packages) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) @@ -44,6 +45,7 @@ (define-public openbox (uri (string-append "http://openbox.org/dist/openbox/" name "-" version ".tar.xz")) + (patches (search-patches "openbox-python-3-compatibility.patch")) (sha256 (base32 "0vg2y1qddsdxkjv806mzpvmkgzliab8ll4s7zm7ma5jnriamirxb")))) @@ -60,7 +62,7 @@ (define-public openbox libxrandr libxft pango - python-2)) + python)) (synopsis "Box style window manager") (description "Openbox is a highly configurable, next generation window manager with diff --git a/gnu/packages/patches/openbox-python-3-compatibility.patch b/gnu/packages/patches/openbox-python-3-compatibility.patch new file mode 100644 index 0000000000..8e19bc86d6 --- /dev/null +++ b/gnu/packages/patches/openbox-python-3-compatibility.patch @@ -0,0 +1,273 @@ +Make Openbox compatible with Python 3. + +Patch adapted from Gentoo: + +https://gitweb.gentoo.org/repo/gentoo.git/patch/?id=31bad4f781f788ccf848500f8c17905ad32a2de9 + +Openbox seems to be abandoned upstream, with no activity in their Git repo since +2015: + +http://openbox.org/develop-git.php + +From 31bad4f781f788ccf848500f8c17905ad32a2de9 Mon Sep 17 00:00:00 2001 +From: Hanno Böck +Date: Mon, 13 Jan 2020 17:22:27 +0100 +Subject: x11-wm/openbox: Python 3 support. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Use EAPI 7. +Remove Python 2, change to python single package. + +Closes: https://bugs.gentoo.org/696042 +Signed-off-by: Hanno Böck +Package-Manager: Portage-2.3.84, Repoman-2.3.20 +--- + x11-wm/openbox/files/openbox-3.6.1-py3-xdg.patch | 126 +++++++++++++++++++++++ + x11-wm/openbox/openbox-3.6.1-r2.ebuild | 100 ++++++++++++++++++ + 2 files changed, 226 insertions(+) + create mode 100644 x11-wm/openbox/files/openbox-3.6.1-py3-xdg.patch + create mode 100644 x11-wm/openbox/openbox-3.6.1-r2.ebuild + +diff --git a/x11-wm/openbox/files/openbox-3.6.1-py3-xdg.patch b/x11-wm/openbox/files/openbox-3.6.1-py3-xdg.patch +new file mode 100644 +index 00000000000..d28b536d64a +--- /dev/null ++++ b/x11-wm/openbox/files/openbox-3.6.1-py3-xdg.patch +@@ -0,0 +1,126 @@ ++diff --git a/data/autostart/openbox-xdg-autostart b/data/autostart/openbox-xdg-autostart ++index 04a17a199..f2c75bbdd 100755 ++--- a/data/autostart/openbox-xdg-autostart +++++ b/data/autostart/openbox-xdg-autostart ++@@ -19,6 +19,8 @@ ++ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ # GNU General Public License for more details. ++ +++from __future__ import print_function +++ ++ ME="openbox-xdg-autostart" ++ VERSION="1.1" ++ ++@@ -28,9 +30,9 @@ try: ++ from xdg.DesktopEntry import DesktopEntry ++ from xdg.Exceptions import ParsingError ++ except ImportError: ++- print ++- print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed" ++- print +++ print() +++ print("ERROR:", ME, "requires PyXDG to be installed", file=sys.stderr) +++ print() ++ sys.exit(1) ++ ++ def main(argv=sys.argv): ++@@ -51,7 +53,7 @@ def main(argv=sys.argv): ++ try: ++ autofile = AutostartFile(path) ++ except ParsingError: ++- print "Invalid .desktop file: " + path +++ print("Invalid .desktop file: " + path) ++ else: ++ if not autofile in files: ++ files.append(autofile) ++@@ -99,9 +101,9 @@ class AutostartFile: ++ ++ def _alert(self, str, info=False): ++ if info: ++- print "\t ", str +++ print("\t ", str) ++ else: ++- print "\t*", str +++ print("\t*", str) ++ ++ def _showInEnvironment(self, envs, verbose=False): ++ default = not self.de.getOnlyShowIn() ++@@ -146,14 +148,14 @@ class AutostartFile: ++ ++ def display(self, envs): ++ if self._shouldRun(envs): ++- print "[*] " + self.de.getName() +++ print("[*] " + self.de.getName()) ++ else: ++- print "[ ] " + self.de.getName() +++ print("[ ] " + self.de.getName()) ++ self._alert("File: " + self.path, info=True) ++ if self.de.getExec(): ++ self._alert("Executes: " + self.de.getExec(), info=True) ++ self._shouldRun(envs, True) ++- print +++ print() ++ ++ def run(self, envs): ++ here = os.getcwd() ++@@ -165,34 +167,34 @@ class AutostartFile: ++ os.chdir(here) ++ ++ def show_help(): ++- print "Usage:", ME, "[OPTION]... [ENVIRONMENT]..." ++- print ++- print "This tool will run xdg autostart .desktop files" ++- print ++- print "OPTIONS" ++- print " --list Show a list of the files which would be run" ++- print " Files which would be run are marked with an asterix" ++- print " symbol [*]. For files which would not be run," ++- print " information is given for why they are excluded" ++- print " --help Show this help and exit" ++- print " --version Show version and copyright information" ++- print ++- print "ENVIRONMENT specifies a list of environments for which to run autostart" ++- print "applications. If none are specified, only applications which do not " ++- print "limit themselves to certain environments will be run." ++- print ++- print "ENVIRONMENT can be one or more of:" ++- print " GNOME Gnome Desktop" ++- print " KDE KDE Desktop" ++- print " ROX ROX Desktop" ++- print " XFCE XFCE Desktop" ++- print " Old Legacy systems" ++- print +++ print("Usage:", ME, "[OPTION]... [ENVIRONMENT]...") +++ print() +++ print("This tool will run xdg autostart .desktop files") +++ print() +++ print("OPTIONS") +++ print(" --list Show a list of the files which would be run") +++ print(" Files which would be run are marked with an asterix") +++ print(" symbol [*]. For files which would not be run,") +++ print(" information is given for why they are excluded") +++ print(" --help Show this help and exit") +++ print(" --version Show version and copyright information") +++ print() +++ print("ENVIRONMENT specifies a list of environments for which to run autostart") +++ print("applications. If none are specified, only applications which do not ") +++ print("limit themselves to certain environments will be run.") +++ print() +++ print("ENVIRONMENT can be one or more of:") +++ print(" GNOME Gnome Desktop") +++ print(" KDE KDE Desktop") +++ print(" ROX ROX Desktop") +++ print(" XFCE XFCE Desktop") +++ print(" Old Legacy systems") +++ print() ++ ++ def show_version(): ++- print ME, VERSION ++- print "Copyright (c) 2008 Dana Jansens" ++- print +++ print(ME, VERSION) +++ print("Copyright (c) 2008 Dana Jansens") +++ print() ++ ++ if __name__ == "__main__": ++ sys.exit(main()) +#diff --git a/x11-wm/openbox/openbox-3.6.1-r2.ebuild b/x11-wm/openbox/openbox-3.6.1-r2.ebuild +#new file mode 100644 +#index 00000000000..80c67975b17 +#--- /dev/null +#+++ b/x11-wm/openbox/openbox-3.6.1-r2.ebuild +#@@ -0,0 +1,100 @@ +#+# Copyright 1999-2020 Gentoo Authors +#+# Distributed under the terms of the GNU General Public License v2 +#+ +#+EAPI=7 +#+ +#+PYTHON_COMPAT=( python3_{6,7,8} ) +#+inherit multilib autotools python-single-r1 eutils +#+ +#+DESCRIPTION="A standards compliant, fast, light-weight, extensible window manager" +#+HOMEPAGE="http://openbox.org/" +#+if [[ ${PV} == *9999* ]]; then +#+ inherit git-r3 +#+ EGIT_REPO_URI="git://git.openbox.org/dana/openbox" +#+ SRC_URI="branding? ( +#+ https://dev.gentoo.org/~hwoarang/distfiles/surreal-gentoo.tar.gz )" +#+else +#+ SRC_URI="http://openbox.org/dist/openbox/${P}.tar.gz +#+ branding? ( https://dev.gentoo.org/~hwoarang/distfiles/surreal-gentoo.tar.gz )" +#+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-linux" +#+fi +#+ +#+LICENSE="GPL-2" +#+SLOT="3" +#+IUSE="branding debug imlib nls session startup-notification static-libs svg xdg" +#+REQUIRED_USE="xdg? ( ${PYTHON_REQUIRED_USE} )" +#+ +#+RDEPEND="dev-libs/glib:2 +#+ >=dev-libs/libxml2-2.0 +#+ >=media-libs/fontconfig-2 +#+ x11-libs/cairo +#+ x11-libs/libXau +#+ x11-libs/libXcursor +#+ x11-libs/libXext +#+ x11-libs/libXft +#+ x11-libs/libXinerama +#+ x11-libs/libXrandr +#+ x11-libs/libXt +#+ >=x11-libs/pango-1.8[X] +#+ imlib? ( media-libs/imlib2 ) +#+ startup-notification? ( >=x11-libs/startup-notification-0.8 ) +#+ svg? ( gnome-base/librsvg:2 ) +#+ xdg? ( +#+ ${PYTHON_DEPS} +#+ dev-python/pyxdg[${PYTHON_USEDEP}] +#+ ) +#+ " +#+DEPEND="${RDEPEND} +#+ sys-devel/gettext +#+ virtual/pkgconfig +#+ x11-base/xorg-proto" +#+ +#+PATCHES=( +#+ "${FILESDIR}/${PN}-3.5.2-gnome-session.patch" +#+ # see https://github.com/danakj/openbox/pull/35 +#+ "${FILESDIR}/${PN}-3.6.1-py3-xdg.patch" +#+) +#+ +#+src_prepare() { +#+ default +#+ sed -i \ +#+ -e "s:-O0 -ggdb ::" \ +#+ -e 's/-fno-strict-aliasing//' \ +#+ "${S}"/m4/openbox.m4 || die +#+ eautoreconf +#+} +#+ +#+src_configure() { +#+ econf \ +#+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ +#+ $(use_enable debug) \ +#+ $(use_enable static-libs static) \ +#+ $(use_enable nls) \ +#+ $(use_enable imlib imlib2) \ +#+ $(use_enable svg librsvg) \ +#+ $(use_enable startup-notification) \ +#+ $(use_enable session session-management) \ +#+ --with-x +#+} +#+ +#+src_install() { +#+ dodir /etc/X11/Sessions +#+ echo "/usr/bin/openbox-session" > "${ED}/etc/X11/Sessions/${PN}" +#+ fperms a+x /etc/X11/Sessions/${PN} +#+ emake DESTDIR="${D}" install +#+ if use branding; then +#+ insinto /usr/share/themes +#+ doins -r "${WORKDIR}"/Surreal_Gentoo +#+ # make it the default theme +#+ sed -i \ +#+ -e "//{n; s@.*@Surreal_Gentoo@}" \ +#+ "${D}"/etc/xdg/openbox/rc.xml \ +#+ || die "failed to set Surreal Gentoo as the default theme" +#+ fi +#+ use static-libs || find "${D}" -name '*.la' -delete +#+ if use xdg ; then +#+ python_fix_shebang "${ED}"/usr/libexec/openbox-xdg-autostart +#+ else +#+ rm "${ED}"/usr/libexec/openbox-xdg-autostart || die +#+ fi +#+} +#-- +#cgit v1.2.3-18-g5258 +# -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 11:14:08 2022 Received: (at control) by debbugs.gnu.org; 3 Feb 2022 16:14:08 +0000 Received: from localhost ([127.0.0.1]:57543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFekJ-0006Rp-QX for submit@debbugs.gnu.org; Thu, 03 Feb 2022 11:14:07 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFekH-0006RD-Jk for control@debbugs.gnu.org; Thu, 03 Feb 2022 11:14:05 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8D87A5C018A; Thu, 3 Feb 2022 11:14:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 03 Feb 2022 11:14:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:to:to; s=mesmtp; bh=72ITa0 ZrgZL5j0yewv6JtMWAnDy3javIh0aSO++ttzc=; b=YlPuMbVK6xyG1Z6F0aMp1I 3etDqm2z9qL5dJLb8kqnuj8OSqn4kjtFhemTT6OwUPNa1kIUCK9i1qlnfBHiKBf+ lvC75IixoStBRBQ891aIGbbAj/B4z1t2AMqiWNCo9xhr2g/IEOMLVeMhO34RXS9D nuHQ5n/v9YcmsTnHIIGNU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=72ITa0ZrgZL5j0yewv6JtMWAnDy3javIh0aSO++ttzc=; b=Vopj2Z7x /ZlNVoFfCY3C1T4xWxr4ubirgbnc1Ww35pFVxqsk38CaO2HdwduFytuGLZGb/Qp7 HhkyHJbTIr5qCqxDmyMHJ2mbpU3+NZtlcELkZ9/Q0j8X3ggsEZdyM49aMhx5TL+J UaVgf+jgJ39gUKDH+bwKb5KQFWc/SwmsUT9MOSCAwHnjfNeQJtnOPzNQINRGTdwM BWrRxTgsnue58Z/W4PZUk34BoeAI1wEatR/Gmq0/0/taDKz7l/TpU2B8MN17Z6qL 5hippEvBqoDxCT7HnScY7gTE8TGCB5PQHXluKEkFBgDL7YwWD5SPvMDP/yvyqeFG PuOOeD4RpUSbbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeejgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecugfhmphhthicushhusghjvggtthculddutddmnecujf gurhepfffhvffkgggtugesthdtredttddtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgr rhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhephf ejiefgfeevvdefteehgeeltdekvedutdegtdduieetheetgedvfeffudfffeffnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmh hulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 3 Feb 2022 11:14:00 -0500 (EST) Date: Thu, 3 Feb 2022 11:13:58 -0500 From: Leo Famulari To: control@debbugs.gnu.org Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 53394 53750 Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.111.4.25 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.7 BODY_EMPTY No body text in message X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 53394 53750 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.25 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.111.4.25 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.7 BODY_EMPTY No body text in message merge 53394 53750 From unknown Sat Jun 14 19:47:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53394] [PATCH] gnu: Openbox: Make compatible with Python 3. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari , 53394@debbugs.gnu.org Received: via spool by 53394-submit@debbugs.gnu.org id=B53394.16441737958042 (code B ref 53394); Sun, 06 Feb 2022 18:57:02 +0000 Received: (at 53394) by debbugs.gnu.org; 6 Feb 2022 18:56:35 +0000 Received: from localhost ([127.0.0.1]:39840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGmiA-00025d-NL for submit@debbugs.gnu.org; Sun, 06 Feb 2022 13:56:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]:59795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGmi8-00025M-Hp for 53394@debbugs.gnu.org; Sun, 06 Feb 2022 13:56:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 626EF240101 for <53394@debbugs.gnu.org>; Sun, 6 Feb 2022 19:56:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1644173786; bh=tMtpCG+z2sqAiIGyrjUCvXmRFGhcZ3GAkIFR6j2tAqA=; h=Subject:From:To:Date:From; b=If+of3vOrGGWvJ2y4YxYh/Yn1c8Ubu6XPs5Z/1nv19QBeFB4zTrP0MeKh2LhyLl2u o1wRJRPXtDKhafqqPtiMfBPKT1MGaEgoI0G9iu6kNCd3TeVHs1ejaNWN6CzWn/14ej JdrETORpQPh/lvYjfy9u48qqk8AimtbTOaHwa9YhpMEWIGs1kxR6FDYlm6c829ixTs poIe6E8RNYc/mncug8LDzDeiE07KSxwrDjiZiK6JtIB5fecGXLNJgiqKX8NxZRoOff yUxvSeH7W5nJRzIc7sich9oP1ujzPdMNoy/a6VvZCvBXWV73e1HWzwAZvQ5J/+5gu+ iDYVwpJlcaqrA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JsJQc15GKz6tnX; Sun, 6 Feb 2022 19:56:23 +0100 (CET) Message-ID: <1f60b35cb7b09c8f0799378b9fcdf1be442d415a.camel@posteo.net> From: Vinicius Monego Date: Sun, 06 Feb 2022 18:56:14 +0000 In-Reply-To: <002d396c0ecfe47e1457a71842d53c95875f99cf.1642702165.git.leo@famulari.name> References: <002d396c0ecfe47e1457a71842d53c95875f99cf.1642702165.git.leo@famulari.name> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Em qui, 2022-01-20 às 13:11 -0500, Leo Famulari escreveu: > As the patch file says, Openbox seems abandoned upstream. So, as > Python 2 is > phased out, we can either use a patch like this, or remove Openbox. > > I rebuilt all affected packages on x86_64-linux, and there were no > new build > failures, only the same failures as before this patch: > > kdepim-runtime-20.04.1 > kmail-20.04.1 > akregator-20.04.1 > scorep-openmpi-3.1 > smb4k-3.0.6 > [...] I noticed that with 'python' the shebang in libexec/openbox-xdg- autostart becomes '#!/usr/bin/env python' while with python-wrapper it changes to the store path. I also 'cat' that file and the code is still in Python 2. Can you check this? openbox.scm is missing the copyright line, and python2-xdg should be changed to python-xdg. There are trailing whitespaces in the patch. From unknown Sat Jun 14 19:47:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53394] [PATCH] gnu: Openbox: Make compatible with Python 3. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 10:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vinicius Monego Cc: 53394@debbugs.gnu.org, Leo Famulari Received: via spool by 53394-submit@debbugs.gnu.org id=B53394.164854840124771 (code B ref 53394); Tue, 29 Mar 2022 10:07:02 +0000 Received: (at 53394) by debbugs.gnu.org; 29 Mar 2022 10:06:41 +0000 Received: from localhost ([127.0.0.1]:59941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ8kF-0006RN-AL for submit@debbugs.gnu.org; Tue, 29 Mar 2022 06:06:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ8kD-0006RB-8U for 53394@debbugs.gnu.org; Tue, 29 Mar 2022 06:06:33 -0400 Received: from [2001:470:142:3::e] (port=32782 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ8k7-0004Yk-En; Tue, 29 Mar 2022 06:06:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=5PmU/FiNtq1/7EntlJW1WuIu9n7PyFW7/Kp/BrRzyUE=; b=CROLaxAu+2zQVda3oKtm TDRiDq7CQNysNJYjwvl1lioWYANJkVR5j61E/J+h9VQLZ/lTxYdeUTSv6jb3MhRiQ0tAo2IPBFZzh myixDRCvDqMmmFGhNU5llM4b05vR8qFL8pv92vQEpZ4QB4S+HP/pDTl4wV60iBkILYN4EZNybvrgC HhadjoG3XDLkCoJnggOOqeLEQQJqskj1efDVajnQhnvCAZgOQc5wsW+FXbJjHC5ox/PA17yl+8zFZ C5/qPCWTQ/wr2jTnwkS8vWnFL145EkM/r2WFwjOZYWFFZ+gKyjjsL7x6t/XNlFNkBzzkOqsq91xPN vsZbktEoo9KaPg==; Received: from [193.50.110.177] (port=51522 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ8k6-0004mY-OH; Tue, 29 Mar 2022 06:06:27 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <002d396c0ecfe47e1457a71842d53c95875f99cf.1642702165.git.leo@famulari.name> <1f60b35cb7b09c8f0799378b9fcdf1be442d415a.camel@posteo.net> Date: Tue, 29 Mar 2022 12:06:24 +0200 In-Reply-To: <1f60b35cb7b09c8f0799378b9fcdf1be442d415a.camel@posteo.net> (Vinicius Monego's message of "Sun, 06 Feb 2022 18:56:14 +0000") Message-ID: <87zgl913a7.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Leo, Vinicius, What=E2=80=99s the status of this patch? Looks like it was almost ready. Thanks, Ludo=E2=80=99. Vinicius Monego skribis: > Em qui, 2022-01-20 =C3=A0s 13:11 -0500, Leo Famulari escreveu: >> As the patch file says, Openbox seems abandoned upstream. So, as >> Python 2 is >> phased out, we can either use a patch like this, or remove Openbox. >>=20 >> I rebuilt all affected packages on x86_64-linux, and there were no >> new build >> failures, only the same failures as before this patch: >>=20 >> kdepim-runtime-20.04.1 >> kmail-20.04.1 >> akregator-20.04.1 >> scorep-openmpi-3.1 >> smb4k-3.0.6 >>=20 > > [...] > > I noticed that with 'python' the shebang in libexec/openbox-xdg- > autostart becomes '#!/usr/bin/env python' while with python-wrapper it > changes to the store path. > > I also 'cat' that file and the code is still in Python 2. Can you check > this? > > openbox.scm is missing the copyright line, and python2-xdg should be > changed to python-xdg. There are trailing whitespaces in the patch.