From nobody Mon Apr 11 17:57:05 2022 X-Original-To: ports@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 DBAB811C8184 for ; Mon, 11 Apr 2022 17:57:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kcc4p5SGXz4rp0; Mon, 11 Apr 2022 17:57:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649699834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4ExIVL+dAvNXNnw17ZadrTh5+gM3QW7R98nQgpseQ7c=; b=lMrUx+muTcIGk3cALEoSpH/rsFsKuLtOkVaJSZCRIa0+jdtwAfInGBjXmvy7rl2qTKtSSg UM28blhm0iodCZ/eb0tyNBayHidNXvf//FSiW5JkjBzKJxRn5rPG2BblUEfrM3++om27nb oq+PkAhN1QszxXhEaE4Al1BGnYUNfaSw2t5Cg7AtWJCj3H1lR9q9DYeBjde33HOXEetd8A wDT9FJt8iQsdZFMrKQlTOIpIlS5EGeOj/FPv5TkZeCpJHdsyo8t6BfREgETnBtrhUMIjJG npkkH8wxfXf5IpIhwjJbkZ03uikRLxs1pD2hFs0JFc3lECc4OHJbY16jHOw/Fg== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 8089741E6; Mon, 11 Apr 2022 17:57:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3D35547A03; Mon, 11 Apr 2022 19:57:13 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_BDE2D2B4-A84C-4271-85C2-60B6CF5FBD0F"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: Build issue with i386 port From: Dimitry Andric In-Reply-To: Date: Mon, 11 Apr 2022 19:57:05 +0200 Cc: jbo@insane.engineer, "ports@freebsd.org" Message-Id: <168EF37D-8591-4F8C-93E1-F15FDA10F311@FreeBSD.org> References: To: =?utf-8?Q?Fernando_Apestegu=C3=ADa?= X-Mailer: Apple Mail (2.3696.80.82.1.1) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649699834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4ExIVL+dAvNXNnw17ZadrTh5+gM3QW7R98nQgpseQ7c=; b=JUM7ERcYF/BzGoDX/GYcYotjCfC0iRg4xg/9ZRHNQ74hrIOFkygDqzN0Wf9FzpZCZUPyzZ 7h8oddwW3nU+M4XYKaQVSNU5pIYrHfm/72TUzhAL/eK1LYwKm6VnlAwEN39W9l193M9ber st3VvFDgQwVcv5Nmw7ULZeY5EgqPwDoeovbr4qhVRPbGkfFyIalq7X+FcIl08qVIA/vRQ6 C2ntrZQTZ1PlcVJmHlfo19/LnN5bb2zZIWmL8PgHF/gjfI7DHIaJez/NyJWxp8TMYKJV2p XBv6L2bOyOCuR/WtuUYNy+CihBdxV8ShtQdjIx43+DQEvbNz3SWiSlIoTuBRuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649699834; a=rsa-sha256; cv=none; b=UZlMuciQ69XyqHTzT/yz3lzKwdTlJr8MhjV8BCdrmf5QBowMC2jKRMrTSU7aOtvrt6xlKX N8pgMkyGLTTNW85dQVBJ5XrIyoYQFh8bxitVVQGDjRasF77e1vYsxVe8P8Nvpfzc1ldNCu FVGticiUlpim1bkeO0MTuyeVJrAkd1e6FLMUVJDr/1N3yFo7my7hyiJ27BjCLoKlAPw8b5 vE2HUQkF44s8Oxn1r8NnYLFE3dzLB7n3xC+iha+7fn1PYwCWI1rPexZ7N0BoOX3SSAIbuO 6PIjruVptq7V2sXOO/hRPm/YFxdoGJ9IsOh8FLmoDwIeAgPH8qXz4n4q2O5Kzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_BDE2D2B4-A84C-4271-85C2-60B6CF5FBD0F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 11 Apr 2022, at 19:53, Fernando Apestegu=C3=ADa = wrote: >=20 > On Mon, Apr 11, 2022 at 7:24 PM wrote: ... >> gmake[1]: Entering directory = '/wrkdirs/usr/ports/sysutils/cpufetch/work/cpufetch-1.00' >> Makefile:38: Unsupported arch detected: i386. See = https://github.com/Dr-Noob/cpufetch#1-support >> Makefile:39: If your architecture is supported but the compilation = fails, please open an issue in = https://github.com/Dr-Noob/cpufetch/issues >> Makefile:40: *** Aborting compilation. Stop. >> gmake[1]: Leaving directory = '/wrkdirs/usr/ports/sysutils/cpufetch/work/cpufetch-1.00' >> =3D=3D=3D> Compilation failed unexpectedly. >> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to >> the maintainer. >> *** Error code 1 >>=20 >> Upstream's Makefile uses $(shell uname -m) to determine the = architecture [2]. My VMs are successfully reporting this as >> i386 which upstream's Makefile appears to support explicitly. After = all, I'm also able to build this software >> on those VMs if just cloning & running gmake manually. >>=20 >> I'm not really sure where to go from here. As I can build the = software in FreeBSD i386 VMs I think >> that the issue is related to my port and not upstream. But then = again, the build fails "within" upstream's Makefile. >>=20 >> Could somebody help me out here? >=20 > When the Makefile checks the output of uname -m, it compares the > result with a list of values that includes i686 but not i386. > I think a simple REINPLACE_CMD would suffice here. >=20 > Since I failed to detect this, do you want me to fix it in the repo? I > will also send a patch upstream. No need :) = https://github.com/Dr-Noob/cpufetch/commit/0db9f1f5c26e57a6383f4609c5605ed= 5d3d41fd1 -Dimitry --Apple-Mail=_BDE2D2B4-A84C-4271-85C2-60B6CF5FBD0F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYlRr8QAKCRCwXqMKLiCW o/o7AJ92SRwkpsm226FP0/9q2aBfULP0qwCgoBifk/6gc5K77hqg5qkkbltm1O0= =4O5L -----END PGP SIGNATURE----- --Apple-Mail=_BDE2D2B4-A84C-4271-85C2-60B6CF5FBD0F--