NetBSD Problem Report #58528

From www@netbsd.org  Wed Jul 31 00:20:53 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 83DB51A923C
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 31 Jul 2024 00:20:53 +0000 (UTC)
Message-Id: <20240731002052.2B4111A923E@mollari.NetBSD.org>
Date: Wed, 31 Jul 2024 00:20:52 +0000 (UTC)
From: phil+netbsd@krylov.eu
Reply-To: phil+netbsd@krylov.eu
To: gnats-bugs@NetBSD.org
Subject: lang/python311 no longer buildlinks gettext-lib, breaking PREFER_PKGSRC=yes builds
X-Send-Pr-Version: www-1.0

>Number:         58528
>Category:       pkg
>Synopsis:       lang/python311 no longer buildlinks gettext-lib, breaking PREFER_PKGSRC=yes builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cheusov
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 31 00:25:00 +0000 2024
>Last-Modified:  Fri Aug 02 07:27:45 +0000 2024
>Originator:     Phil Krylov
>Release:        pkgsrc-current
>Organization:
krylov.eu
>Environment:
Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
>Description:
After these changes:

https://mail-index.netbsd.org/pkgsrc-changes/2024/04/30/msg298646.html (python311)
https://mail-index.netbsd.org/pkgsrc-changes/2024/05/02/msg298887.html (python311)
https://mail-index.netbsd.org/pkgsrc-changes/2024/05/01/msg298754.html (python312)
https://mail-index.netbsd.org/pkgsrc-changes/2024/05/03/msg299059.html (python312)

in lang/python311 and lang/python312, buildlink3.mk does not include ../../devel/gettext-lib/buildlink3.mk anymore.

On the platforms where PREFER_PKGSRC is the default (definitely Linux and probably OpenBSD) it has broken databases/tdb and devel/talloc which are failing in the configure phase: 

Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags        : yes 
Testing pyembed configuration                                                     : Could not build a python embedded interpreter 
Testing pyembed configuration                                                     : Could not build a python embedded interpreter 
The configuration failed
(complete log in /home/pbulk/build/databases/tdb/work/tdb-1.4.10/bin/config.log)

(logs copied from https://us-central.manta.mnx.io/pkgsrc/public/reports/Linux/el7/trunk/x86_64/20240506.1340/tdb-1.4.10/configure.log and many later builds)

config.log says that it cannot find -lintl which is still mentioned in $PREFIX/lib/pkgconfig/python-3.1[12]{,-embed}.pc .

Probably it's not a problem on other platforms. Still, I wonder what was the reasoning behind this change. I can build databases/tdb and devel/talloc successfully if I add `.include "../../devel/gettext-lib/buildlink3.mk"` to their respective Makefiles. But should not it be fixed in lang/python31[12] instead (by reversal of the change)? By the way, python310 still buildlinks gettext-lib and does not seem to have any problems.


>How-To-Repeat:
bmake -C devel/talloc bin-install

or

bmake -C databases/tdb bin-install
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cheusov
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 02 Aug 2024 07:27:45 +0000
Responsible-Changed-Why:
cheusov removed the include, please take a look at fixing this


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.