From nobody Sun Jun 09 22:48:17 2024 X-Original-To: uboot@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 4Vy98204nTz5N74N for ; Sun, 09 Jun 2024 22:48:18 +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 4Vy9814Zzbz4HbD for ; Sun, 9 Jun 2024 22:48:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717973297; a=rsa-sha256; cv=none; b=E7UeeH8M+kZAki7tlOKo7KpGDWo2pznobycyVbkY360MXgKZyooj0cHFcDUINKwe/kllbh 1nmthtRhE8xpTVK2GYFTC5m9XN3dzlfN+RMlTj54eQjTjBdD2XC7a3eR+G3Ci5gfD6+KAY 93xt25kL5Qdr80+7UqLXDYNw14eDzEXq2LB+IRRyJdDGwCwFV9Wl5jYJtOErSOLfs4FS7D E3YPCCYaYtYWb48lJm3P55dVKxGSRwMhaxRZBOXqg7cwgycN4uTQvecDN48UYbfaNq6pig RwN3RnqD8myq5QJHzH+/pDZ0tYot++SgPH/hNC6IPAiA2nHw4K8e+DRR8VlwwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717973297; 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: in-reply-to:in-reply-to:references:references; bh=JEyHziLbIj8zYbZLog/3bpxiTXJ5tCSjmurvNVFdaSk=; b=mqsyDSNEvk4BEPzTbS3WYaaHOs/nJLGgAO8UqvgEvQR72SR14O/H8Tb3G5dKmnVR3k0v0p kJVkzamI8Ey+zW71zx8xJ0xim/tGudBevUvIrU1GUQnSOHlyCUKgz8rjIEP9VvoC2D+94U sjxNm2AMTL2JyaA3lxsn6eTafImcdT0bz4GsLzzqlN0Sa+MXsWbaCgSEQgwFwlzAnmOTHO uzXlKXybNY/5d1y0+XMJ1JCKR/ZvAVT1tIanHSe9EzMUnRA4EladFmMaywtNyPEKZdDocc HuiaOieXkiC82VxNjOkAe40ul7c6avoqrH6zIs5720il3SZqb/mjggiWCiFc1w== 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 4Vy98142yXz11hF for ; Sun, 9 Jun 2024 22:48:17 +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 459MmH8e075994 for ; Sun, 9 Jun 2024 22:48:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 459MmHPT075993 for uboot@FreeBSD.org; Sun, 9 Jun 2024 22:48:17 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: uboot@FreeBSD.org Subject: [Bug 279531] sysutils/u-boot-rpi4: Cannot build, errors with ecdsa and rsa Date: Sun, 09 Jun 2024 22:48:17 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed 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: cyberbotx@cyberbotx.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uboot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc flagtypes.name attachments.created Message-ID: In-Reply-To: References: 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: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-uboot@freebsd.org Sender: owner-freebsd-uboot@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279531 Naram Qashat changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uboot@FreeBSD.org Attachment #251332| |maintainer-approval?(uboot@ Flags| |FreeBSD.org) --- Comment #3 from Naram Qashat --- Created attachment 251332 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251332&action= =3Dedit u-boot.diff to fix building against ports OpenSSL I am going to re-open this, as I found the cause and the fix. Firstly: u-boot-tools APPEARED to not be affected by this problem, but in reality, it only was making it. It never uses the SSL choice by the user and always uses base OpenSSL. The cause: u-boot-tools and all the u-boot firmware ports that rely on u-boot-master never have the -I or -L flags needed for OpenSSL passed into = the u-boot build system. Something in u-boot-master made it use -L/usr/local/lib anyways and that was causing my build failure. The build system also does n= ot respect externally set CFLAGS and LDFLAGS. The fix: In order to get u-boot's build system to respect the user's wish a= s to what OpenSSL to use (as well as any other CFLAGS or LDFLAGS the user sets),= add HOSTCFLAGS and HOSTLDFLAGS to the MAKE_ENV. Additionally: u-boot-master did not put compiler:c11 or ssl into USES like u-boot-tools did, so I added those. Also, I moved V=3D1 from MAKE_ENV to MAKE_ARGS as u-boot's build system ignore it when set in the former, and CC=3Dclang was being completely ignored so I removed that. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=