From nobody Fri Aug 08 14:38:55 2025 X-Original-To: dev-commits-ports-all@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 4bz69H4H1nz63yGS; Fri, 08 Aug 2025 14:38:59 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4bz69G5d6Xz46lv; Fri, 08 Aug 2025 14:38:58 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none Received: from skull.home.blih.net (mwc0868.ftth.cust.milkywan.net [45.13.107.196]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 5d104c8a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 8 Aug 2025 14:38:55 +0000 (UTC) Date: Fri, 8 Aug 2025 16:38:55 +0200 From: Emmanuel Vadot To: Max Brazhnikov Cc: Jan Beich , ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: f2d9466e2566 - main - x11-wm/phoc: unbreak build after b991d37c58ed Message-Id: <20250808163855.78a5fab4bd3cc9b75756a0d4@bidouilliste.com> In-Reply-To: <2363866.mfXeX5GmMH@mercury> References: <202508081041.578AfAUm008382@gitrepo.freebsd.org> <20250808125546.f35c9a2bead865e88eecaf9d@bidouilliste.com> <2363866.mfXeX5GmMH@mercury> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4bz69G5d6Xz46lv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] Hi Max, On Fri, 08 Aug 2025 14:42:26 +0300 Max Brazhnikov wrote: > On Fri, 8 Aug 2025 12:55:46 +0200 Emmanuel Vadot wrote: > > +LDFLAGS+= -lm # https://cgit.FreeBSD.org/ports/commit/?id=b991d37c58ed > > > PLIST_FILES= bin/${PORTNAME} \ > > > bin/${PORTNAME}-outputs-states \ > > > share/man/man1/${PORTNAME}-outputs-states.1.gz \ > > > > Well that sucks, sorry about that. I'd really like to understand why > > CMake generates some crap with the latest .pc for wayland but I'm a bit > > clueless about all this stuff. > > what was the reason for https://cgit.FreeBSD.org/ports/commit/?id=b991d37c58ed in the first place? Wayland 1.24.0 added libm to the Libs section of the pkgconfig file. This confuse CMake (our problem ? upstream CMake problem ? No idea) and it generate the ninja files with some crap : DEFINES = -D/usr/lib/libm.so" -DVK_USE_PLATFORM_DISPLAY_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DWAYLAND_LIBRARY=\"/usr/local/lib/libwayland-client.so -DXCB_LIBRARY=\"/usr/local/lib/libxcb.so\" -DXLIB_LIBRARY=\"/usr/local/lib/libX11.so\" The problems is in -D/usr/lib/libm.so" AFAICT the .pc file for wayland is correct so it must be something in CMake (or ninja I'm not sure). Cheers, -- Emmanuel Vadot