From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C879215800A for ; Wed, 9 Aug 2023 23:42:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DC512BC024; Wed, 9 Aug 2023 23:42:17 +0000 (UTC) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 783E42BC021 for ; Wed, 9 Aug 2023 23:42:17 +0000 (UTC) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b703a0453fso5383101fa.3 for ; Wed, 09 Aug 2023 16:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691624536; x=1692229336; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8jePfy2UwIX8rOKzG3b/sXI7oP9rhDBnYx1ZZDNxwzU=; b=H5OYt5j6T5/bul8ujuJwRuz/x3rvx1S54jzTWgofk+vDGZOWTJAYTIL0l/As3nV4/M uyYEPLw4P9O98xR8HpaKSac8idrJXXhKfgodwGFCmn5g0fSDJblbZOnGtDAO1ALFVQIW nBVtDNCMpDFhdFMDtQ+VyYvLJvhntx2XL0jNS0xOnQhKdmMAngD05cKFvnME50vvHpbf KDjiwA325SYf+uz33TzcSQsnQPbxlaiokeRny7sXiHrR1bugM89+mAYKip47zkDFqCZN W3tpyqNx2PXH+ua3/Uxj3JZkUseYt3mp4AXYBySrSG0aBroYSGXatN8PyLHI2130sqMI yCLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691624536; x=1692229336; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8jePfy2UwIX8rOKzG3b/sXI7oP9rhDBnYx1ZZDNxwzU=; b=Zbdytjd0DIx8392qw1JrN1kInRqrApMrsjVxtr6M53Az81uXzdrvCyjzgtPlLD/b3O XSfmjBByrTzlgKdls7oCox8TujV68VbTXtv8aG5SdUda+Do848z7Snp0FMy2DEIQUIAZ j82sZv28VldCQS2Bz633Yq2kx3eC1YoOQ0MIdKf3MrO64PWT5yYlfcdKIg//HUoUHeHY K5GSzZqBWoix2/7Nvi1HQP/37IYvtxkZT7wC5Id2x0zwNwStyoFlbY0mvVboHFKP0GpA 9zRcsZNGZ0q5nZDlTJcQ+T+AIpxgm9HZ+7VIEeUrGJbmeKkcNum/bE9FmDhvVedLTaeK NMAQ== X-Gm-Message-State: AOJu0YwMfIz+ZoBpYyzGJ3FWJfDcd9dRnOOp84msSdcKrlMVbpZDn9vt Xb58icZ09r3TdHbhxi4YnS5qlFFw51PIJ76ciPlX9W5ohbY= X-Google-Smtp-Source: AGHT+IF49uLJNhR7wXcY2h/TWMqL5HpCW2AGVDrWeS5SIVsvPT9iqHDIGn+mdWpQWAfnwkl3r7MgfxnUMbLJNv/PWHw= X-Received: by 2002:a2e:680f:0:b0:2b9:b6e7:bd7 with SMTP id c15-20020a2e680f000000b002b9b6e70bd7mr588807lja.29.1691624535652; Wed, 09 Aug 2023 16:42:15 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 From: Georg Rudoy <0xd34df00d@gmail.com> Date: Wed, 9 Aug 2023 18:42:25 -0500 Message-ID: Subject: [gentoo-dev] ghc support in multilib-build.eclass To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 1cf6cde8-d889-4ff4-b581-ed91f053a900 X-Archives-Hash: 9a7fc8ac8591a728633e6f692b9f314a Hi, Right now, the configuration header generated for packages like openssl by multilib-build.eclass doesn't play nicely with ghc. Long story short, ghc runs `gcc -E` with `-undef`, which causes the `#if defined(__x86_64__)` branch (or whatever is the relevant one) to be missed, falling back to ``` error "No ABI matched, please report a bug to bugs.gentoo.org" ``` There is already a workaround for Swig in the template. I propose extending this workaround with a very small change, replacing ``` #elif defined(SWIG) ``` with ``` #elif defined(SWIG) || defined(__GLASGOW_HASKELL__) ``` in the template inside the eclass. If everybody's happy with that, I'll be also happy to open a PR with that change. -- Georg Rudoy