From nobody Mon May 01 09:26:42 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q8yX46mKYz48JG2 for ; Mon, 1 May 2023 09:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q8yX42P6Dz4Cr2 for ; Mon, 1 May 2023 09:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682933204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7O1SDhRW4RvHkDerBh0IPeco0b9CYYbfRpZCQVpRBeA=; b=tXyMU1Hk4benwYGb++ZmoGXh4wSyYVxPDLKL8ucvq1S2E9y8HTMbiov3un6UcX3Hxf/tPT hrc/3b4TU/HNzyJkAs+2gqnIcmcJhInvyv/NFE/zTZOw3kkn+LeGXSYBBH/dL+n5Wepd4R keiHTLxrhuy/Wb1w/pbxA5YoW/it3pqHkhnI7cLeASkqB6vOfURkbfIduxXmoilcHVzNhA YFVJyKzr+vu+3upMBE0fwzugTed506jXoIQMWLZkxN4VUQg/Y1RQCXVeWkzlnQ/iY73v6z 0BivLLUQGzI+NZghZlf4+sSubk6YhUD4srokFqonhHz+nuf/P/NnR/dd1t8YmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682933204; a=rsa-sha256; cv=none; b=Nf/YjXksj06pu7Y8K5ikKrpFRbOOS8LvOswENdVnc5hGWjoPOBkLpwkBltS+9lYJk24p3Q ZRSFqMiRNDVfAPJ8Vni2HHvDIKwp5e6ZfVN5Pamudv3wEoGBHpkq70rTvmTRQxFzf2hHED BCpzNpVe5OrE67Uc2rwm/9PgtoX2FYFz1WvFknYJFP0eu7YRFCoO2/jt+hTS7qKCO4CjB1 ymA9SEF8zGbVokjXwTyNbfgWziA5XVPV0AcKHNVscGcbfmE1D103LsknK4Lx+d3LHV5iWf uDsjbjRUzSgzIgZKmQeTSp64vhLVRU34z0UUpqFCurmD6TDEfyrAygfslb8cmQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q8yX41Gbxz113j for ; Mon, 1 May 2023 09:26:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3419Qg2b077782 for ; Mon, 1 May 2023 09:26:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3419QgMQ077781 for ports-bugs@FreeBSD.org; Mon, 1 May 2023 09:26:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271165] databases/py-postgresql: Fails to build so lib on 14-CURRENT Date: Mon, 01 May 2023 09:26:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rhurlin@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271165 Bug ID: 271165 Summary: databases/py-postgresql: Fails to build so lib on 14-CURRENT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: rhurlin@FreeBSD.org CC: arcade@b1t.name Flags: maintainer-feedback?(arcade@b1t.name) CC: arcade@b1t.name Created attachment 241900 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241900&action= =3Dedit Fix build of .so lib On CURRENT the installation process of databases/py-postgresql is broken: ------------------------- =3D=3D=3D> Registering installation for py39-postgresql-1.3.0 pkg-static: Unable to access file /usr/ports/databases/py-postgresql/work-py39/stage/usr/local/lib/python3.9/= site-packages/postgresql/port/optimized.cpython-39.so:No such file or directory *** Error code 1 ------------------------- The package builders also complain about this breakage on main: https://portsfallout.com/port/2965/ This happens because optimized.cpython-39.so was not built due to a compiler error: ------------------------- In file included from postgresql/port/_optimized/module.c:43: postgresql/port/_optimized/buffer.c:590:2: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expressio= n of type 'void *' [-Wint-conversion] NULL,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 /* tp_print */ ^~~~ /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ In file included from postgresql/port/_optimized/module.c:44: postgresql/port/_optimized/wirestate.c:251:2: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expressio= n of type 'void *' [-Wint-conversion] NULL,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 /* tp_print */ ^~~~ /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ ------------------------- Probably due to the stricter checks of newer compilers like clang15 on CURR= ENT errors like this occur if the CFLAG '-Wint-conversion' was not set. The attached patch tries to solve the problem by setting the value of NULL to 0= for the argument tp_print. Some small tests on my side with the patched version= of databases/py-postgresql seem to work as expected. Please check if this works for your use cases as well. If it is not a regression, you should also consider submitting the patch upstream as PR. Thanks in advance for any feedback. --=20 You are receiving this mail because: You are the assignee for the bug.=