From nobody Sun Apr 02 06:13:15 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 4Pq3cD2lfHz4349F for ; Sun, 2 Apr 2023 06:13:16 +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 4Pq3cC6QnNz3yn9 for ; Sun, 2 Apr 2023 06:13:15 +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=1680415995; 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=p+1MSpgjxnKoO6omXVcEUznoNQH47cdI5KBxKwNuhOE=; b=rOAWNx7UKumiaAXDjFppX9SaKIQKODxBKNZREWNQepfyFHiSfvFuwag3cIsSOg0EPuss8U dHnjMZREwDlE7pSsLN49ur6UYjsYg4E8fyNL28lLEMIR+7i9Cf0D5PvfTrguEHr8pQAcYi HaCoPo3dHaqMCeltmZLTAhL3JQabWoPEczKz5I+LHQlbuSsfuS3YpYji40PdVlLEZdyNUt CGVweFqxQsQxdUDfB8afPyu+JN6nJUI4x/WtmWCd010alBMsIYkd3id5VZLFgIGuFUg9TQ 4K2BLOs9z/NtM2nDHawX0QelHejlyUARhHflJfogTT7VIFRw4XaurBNkOt3diQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680415995; a=rsa-sha256; cv=none; b=uzSDisg4e14zLob8G5l5A4t/PnHLg32XJS7G73CNQG1KYGvSBKxz3UrVJJTaqbtK3QOTVH lKJPR1xnzLAcWX06s+JAfnlBXfMaEOmo3uO4BpFyLbWRa9FMAssFvfP/zoQ72LIr0NffSF wGxr8VeJ2i3j4gxxzaBOnDMVl+SsWzssmb+zdaIKcIf5+vEzFkYfsTLSlo/vrfG/ouhzp5 iQXj+ro3Th35w16x4Rs3HZsY/FYRBTPGwchqJziJyeYXT1hc/sE6pMXqTzWnh9zCQ2+OO0 6uTFi9OipsroIQRqhA9DlRKUMDX/hrrnLhIKuaX7VBzumWJaBd7CXpHyK9M8Kw== 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 4Pq3cC5S29z15Mt for ; Sun, 2 Apr 2023 06:13:15 +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 3326DFk6000834 for ; Sun, 2 Apr 2023 06:13:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3326DFHY000833 for ports-bugs@FreeBSD.org; Sun, 2 Apr 2023 06:13:15 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 270594] textproc/fcitx5 ignores the options Date: Sun, 02 Apr 2023 06:13:15 +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: hellomao@outlook.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: khng@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 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=3D270594 Bug ID: 270594 Summary: textproc/fcitx5 ignores the options Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: khng@freebsd.org Reporter: hellomao@outlook.com Flags: maintainer-feedback?(khng@freebsd.org) Assignee: khng@freebsd.org Created attachment 241256 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241256&action= =3Dedit The patch to the Makefile in textproc/fcitx5 textproc/fcitx5 port provides three options ENCHANT, WAYLAND, and X11. If I explicitly mark WAYLAND or X11 off, the build still look for WAYLAND or X11= and fails if they doesn't exist. Repro steps: 1. Make WAYLAND off. For example, below is the config I'm using ``` fcitx5 $ sudo make showconfig Password: =3D=3D=3D> The following configuration options are available for fcitx5-5.0= .11_2: ENCHANT=3Don: Dictionary/spellchecking framework WAYLAND=3Doff: Wayland (graphics) support X11=3Don: X11 (graphics) support =3D=3D=3D> Use 'make config' to modify these settings ``` 2. Build it (the machine must not have wayland install) Here is the error ``` -- Could NOT find Wayland_Client (missing: Wayland_Client_LIBRARY Wayland_Client_INCLUDE_DIR) (found version "") -- Could NOT find Wayland_Egl (missing: Wayland_Egl_LIBRARY Wayland_Egl_INCLUDE_DIR Wayland_Client_FOUND) (found version "") CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Wayland (missing: Wayland_LIBRARIES Client Egl) C= all Stack (most recent call first): /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/ECM/find-modules/FindWayland.cmake:110 (find_package_handle_standard_args) CMakeLists.txt:157 (find_package) -- Configuring incomplete, errors occurred! ``` Root Cause fcitx5 source code uses the options `ENABLE_X11` and `ENABLE_WAYLAND`. As s= hown in the code at https://github.com/fcitx/fcitx5/blob/master/CMakeLists.txt Here is the code snippet ``` option(ENABLE_X11 "Enable X11 support" On) option(ENABLE_WAYLAND "Enable wayland support" On) ``` By default FreeBSD port convert the option using the option name. fcitxt5 source code has "ENABLE_" before the name. So neither ENABLE_X11 or ENABLE_WAYLAND is set and they're always "On" even if I mark them off in FreeBSD port. I added the following two lines in the Makefile in the port and it builds without WAYLAND ``` X11_CMAKE_BOOL=3D ENABLE_X11 WAYLAND_CMAKE_BOOL=3D ENABLE_WAYLAND ``` I also attach the diff of the Makefile for the port textproc/fcitx5. --=20 You are receiving this mail because: You are the assignee for the bug.=