Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msqwr-0004Uj-93 for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 18:36:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msqwo-0003gn-9Q for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 18:36:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msqwn-0003gd-Qx for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 18:36:45 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1msqwh-0007Fx-Oj for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 18:36:44 +0000 Received: by mail-lj1-x22f.google.com with SMTP id k2so1475673lji.4 for ; Thu, 02 Dec 2021 10:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=hB4NhM1fKrEu5qrM/RW+3mEqpRbkg4WsyMZadpRI+fs=; b=AXsRWdHUDG30pg+Myuz2IzfMID1OuWugDrxIy+ZyJbvvMQy9nilKbEhU3Gw11Ccx/m l6nI8qFONC8KvRWXJyADRB1p4cDZJ7ich6Eb0FUcig7/L1VcVFIaiug3BcLL3Er3dXRR C8Aj8VkniW/tTn1B2OP4qAwjrwXOs5PUwP4EO1PF6joWF1nUATtyujWnnABWoBmB/E1P 9tBn7vaRiOL3jJFn/8vy9MnxgHWJdUEyT6uapKUzFMHm36iLEHLoqX08nVobgZT9QPsD shCbhVuDloiFVGa6u8YpjAGHdUe1zCt5Cz3ksJe0SGHYH0ahQ+agrzTE2f4e7qwRKe/3 q/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=hB4NhM1fKrEu5qrM/RW+3mEqpRbkg4WsyMZadpRI+fs=; b=KQaX6Ip/2U9KmJauWS39+CiPzc3BovhzP8950cza2OrlAXaao4n63OWc68pZGkrwgY FN93XcrP7bM6BrJxEb1btVCjHZSOC1GTuB1W+Cny5GtjitWYY4awT6j1ZYLxhbQiwVCF lBSGCDVXzutnVbQrzrjtcTE8PDDGk7iqVEl9zZLGcnS4chlvJjhp/8aSstWsdr8l6Stz 0zXjENevYQHbeMFELerj3/LXBM0HebRdbf7O59Uyzpfd/9rb7Pseu54NuUDQoqt+u7sF 7fHGNYCLFU6IlUtu15KUkSXMDYhMAj7Z3I5RZBvTvjpdA8lCu0mdQU45InTgzkFa8ryH l5iQ== X-Gm-Message-State: AOAM532QqcPQQKIM6ud8blm3OzoXSBzob+7wnnCF6a5FKtMiJbOWt4Y6 zdyTsROxF4C3PO0NGQrX5wVUbsxwa+k= X-Google-Smtp-Source: ABdhPJwuj24Dffq+7rrt9o+TBucByD01jtbnfb/cGNX80ZvAZ2dKJB84rlMKnBIOFq5fxdA0/8oavg== X-Received: by 2002:a05:651c:90:: with SMTP id 16mr13455773ljq.1.1638470197716; Thu, 02 Dec 2021 10:36:37 -0800 (PST) Received: from [192.168.1.10] (mail.dargis.net. [62.80.227.49]) by smtp.gmail.com with ESMTPSA id q13sm70070lfm.13.2021.12.02.10.36.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Dec 2021 10:36:37 -0800 (PST) Message-ID: <12a6243a-826c-e8b9-0716-61fc5aa9d229@gmail.com> Date: Thu, 2 Dec 2021 20:36:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Issues cross-compiling libpq 14.x to MacOS armv8 Content-Language: en-US To: Tom Lane , Daniel Gustafsson Cc: pgsql-general , Magnus Hagander , Michael Paquier References: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com> <1628170.1638302387@sss.pgh.pa.us> <47B78E57-3D0F-4616-BF52-C07FA76AF0A7@yesql.se> <1633127.1638306242@sss.pgh.pa.us> <1636357.1638307994@sss.pgh.pa.us> From: Vincas Dargis In-Reply-To: <1636357.1638307994@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks Tom! Should we expect this fix in the next 14 patch release, or only in 15.x? If latter, I would add this patch into Conan package itself, to make it work earlier. On 2021-11-30 23:33, Tom Lane wrote: > I wrote: >> It seems like a useful test when *not* cross compiling, which is most >> of the time. I'd just wrap that bit in >> if test "$cross_compiling" = no; then > > Or actually, since we should print something, it looks like this will do: > > diff --git a/configure.ac b/configure.ac > index a5c10b8d56..7257afda20 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -2287,6 +2287,8 @@ if test x"$with_ssl" = x"openssl" ; then > AC_MSG_RESULT([OpenSSL]) > elif test x"$PORTNAME" = x"win32" ; then > AC_MSG_RESULT([Windows native]) > +elif test x"$cross_compiling" = x"yes"; then > + AC_MSG_RESULT([assuming /dev/urandom]) > else > AC_MSG_RESULT([/dev/urandom]) > AC_CHECK_FILE([/dev/urandom], [], []) > > Off to see if I can verify that before pushing. > > regards, tom lane >