From nobody Sat May 6 01:09:29 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 4QCqG21l36z4B2St for ; Sat, 6 May 2023 01:09:30 +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 4QCqG20CM6z45wd for ; Sat, 6 May 2023 01:09:30 +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=1683335370; 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=GLDBZ4knbpoYdvZQPU5RCZcJYETEFPXKGcqKL/2+lkQ=; b=I0KBsBoKqqioKi7kH77awWfTbU3OA841DCPBlyt/3X92+xjSXg+o+LloHfbb5+GkuDZyY6 Smlnb/9NeoS0MERuemhWwEnivo2ABQZ7Eum1t3qpblpwg00lLO7mwbvfKe9jihAQtizOBk ejRiRS9BGsdJH4rBWHYCkvoTs7FpeznDOa87+GgPEYp3flSBZdxOjOHXf+2bDoGdlYNNda b5cOuEN7HMPx+y7Zybd3bKlgSVnWAGZFVUBQYVtnWpjSVQfM8acUop/ncvMdOGZNip3IrR L+EZYqtT/tAjJIi7JWMTOjcikHN0VClvTRPcFk6aCWTGjccUhrNSmpmm663t+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683335370; a=rsa-sha256; cv=none; b=tDv95uPUJsBJPW7l0FKlanA4u3bKLernHEgZH1CdWvbfgqwVgGLWoWEzf6BNRtiyDOJYb5 3gXPvaxweOM91F5Ol0cLkZ8RNVMvYs5hpj/0pgWtRObRZhnOv+7RI9RXaZJTEt9rSC2Jhz PYFVYbDuUp06AAqhFqK2SM5v54+euOBo/T1H25x+2YBGt63HNCfcExjUN7caEST1j0BWcN ZXXUuTzmweA0Pf7k0nr0eD7rdka/ShbUNxK28js3eAF7Lij8oFlr5zKUQrw3ajQMrLj5qy 7By4t/k7t3jtYuljc/wiZ6LokNR73rHfTX16pD5GJUaZ78s5hiWSzxFJ9J4aTA== 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 4QCqG16H2dzGxb for ; Sat, 6 May 2023 01:09:29 +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 34619THH099176 for ; Sat, 6 May 2023 01:09:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34619TiQ099175 for ports-bugs@FreeBSD.org; Sat, 6 May 2023 01:09:29 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 271272] graphics/libcaca: Hidden dependency on Xlib.h Date: Sat, 06 May 2023 01:09:29 +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: fsbruva@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@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=3D271272 Bug ID: 271272 Summary: graphics/libcaca: Hidden dependency on Xlib.h Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: multimedia@FreeBSD.org Reporter: fsbruva@yahoo.com Assignee: multimedia@FreeBSD.org Flags: maintainer-feedback?(multimedia@FreeBSD.org) Created attachment 242008 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242008&action= =3Dedit libcaca: patch to align x11 treatment with imlib2's Note: This bug seems to be a repeat of bug #153846, but I cannot find what about "the process" fixed or stopped this behavior with 0.99beta17, and it's still present with 0.99beta19. Problem: When building libcaca with IMLIB2 port option set, if imlib2 was b= uilt without X11 support, then this error occurs: In file included from ../src/common-image.c:21: /usr/local/include/Imlib2.h:26:10: fatal error: 'X11/Xlib.h' file not found #include ^~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop. make[3]: stopped in /wrkdirs/usr/ports/graphics/libcaca/work/libcaca-0.99.beta19/examples *** Error code 1 This is because imlib2 uses the AC_PATH_XTRA macro, and relies on X_DISPLAY_MISSING getting defined when --without-x is passed to imlib2's configure. Within Imlib2.h, There are several #includes and function protot= ypes that are guarded by an #ifndef X_DISPLAY_MISSING. By contrast, libcaca defi= nes its own --enable-x configure flag to permit X11 detection, and only uses the AC_PATH_X macro. Solution: Have a conditional CFLAGS definition for libcaca based on the OPTIONS combination of IMLIB2 set and X11 unset. I will also submit a patch upstrea= m, but libcaca's last commit was 18 months ago, so I am not optimistic it will= be merged. --=20 You are receiving this mail because: You are the assignee for the bug.=