From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id xxQhDzZUMWEYJAEAgWs5BA (envelope-from ) for ; Fri, 03 Sep 2021 00:46:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uNwzCjZUMWHlYwAA1q6Kng (envelope-from ) for ; Thu, 02 Sep 2021 22:46:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B2EBB151D3 for ; Fri, 3 Sep 2021 00:46:13 +0200 (CEST) Received: from localhost ([::1]:42560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLvTH-0002AW-N3 for larch@yhetil.org; Thu, 02 Sep 2021 18:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLvT8-000284-U4 for bug-guix@gnu.org; Thu, 02 Sep 2021 18:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLvT8-0004MG-Ln for bug-guix@gnu.org; Thu, 02 Sep 2021 18:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLvT8-0002iw-EE for bug-guix@gnu.org; Thu, 02 Sep 2021 18:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49990: [PATCH] gnu: Fix classpath-bootstrap compilation References: <20210810233801.02639bd8@tachikoma.lepiller.eu> Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 Sep 2021 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49990 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49990@debbugs.gnu.org Received: via spool by 49990-submit@debbugs.gnu.org id=B49990.16306227208170 (code B ref 49990); Thu, 02 Sep 2021 22:46:02 +0000 Received: (at 49990) by debbugs.gnu.org; 2 Sep 2021 22:45:20 +0000 Received: from localhost ([127.0.0.1]:42323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLvSR-00027X-SW for submit@debbugs.gnu.org; Thu, 02 Sep 2021 18:45:20 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:40612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLvSO-0001yE-5b for 49990@debbugs.gnu.org; Thu, 02 Sep 2021 18:45:19 -0400 Received: by mail-ej1-f48.google.com with SMTP id lc21so7966915ejc.7 for <49990@debbugs.gnu.org>; Thu, 02 Sep 2021 15:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:in-reply-to:date:message-id:mime-version; bh=97kyQLpY/PEPpLN3phwQhKi7OT83hgS+0VKMdkti1Jk=; b=1SAM+lim8jWlPNWu9UG31HLNtBfWAvwEPMl4FDFrfYDVy8ZJ6dMWr8Zm5HIhXWToXa 3DI7kvJAxTEARW7Ro7dy0gykEdS5d+OgyrHlkwHinnwMdEqQhHQIEZzkU9oBv7uS7BRq JCWOPS43qbqv5fAK4mrorZ8yPMHeOpkVz0KEHTm7IuN9pX+2alYwfPJ34R2Mei8BQltm AbkSgI+OUZxKQdOxvQhvd5UFgiyPpSI5/l36TP0qsR+Mnmg1tzmqGGKm7NspPdsGxrKJ sdR6SNxICMB8JQFE7o5wfp4lbmefbCVQ4ZLHJcgkSR9tPb/WAmgytTKONZyptqZUqAyP Db0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:in-reply-to:date :message-id:mime-version; bh=97kyQLpY/PEPpLN3phwQhKi7OT83hgS+0VKMdkti1Jk=; b=F01PnmYt5R5qLd661kmKqyZyb7rqZW9iPrs2/QkU3mgamwumCcWZCbs9DkSHf5sXfR PiYVgNxu3gagq+T17Gvt/R0onTUC2rEYmHqbbn6o7JvcVtR1w80hF7YXvqMWg+T3g8RT GmdlUFE17FoojsPxdD24Fm6t16A1zLwuA1LEhAUtDB3qWBniTq6CdjZTFwP7uVgoPP6j 8vQ/ozhOTurNkQcfXgxlLa05ry6Xsr3rZz0qDoB3PEauPF9pYLcfl0oFBEdOXJSz4icR z4tPWl08E+T6y7qxo+fU0bjD1RLC5Pv2KGj1e7CKSKeITt/GyMMnaeTQMpGrcnfpadJT Jutg== X-Gm-Message-State: AOAM5323bHdFKxOihsIZDAAoV4KzxGBbi1xNkzjwLiCSGAnx50jyX3n/ 2f0psfgh35JekS+96u6HdhyxsyCB4dofMgzv X-Google-Smtp-Source: ABdhPJyc75RBVlQU0JdeF4jjpL7TH+GAqFUFVB9h+aZr2Rk5ymCbljFAxIR1RSFPL2NdMrOWV1Hjhg== X-Received: by 2002:a17:906:a18f:: with SMTP id s15mr532287ejy.269.1630622709736; Thu, 02 Sep 2021 15:45:09 -0700 (PDT) Received: from nomad-lp1 ([176.234.10.27]) by smtp.gmail.com with ESMTPSA id u9sm1921694edo.37.2021.09.02.15.45.08 for <49990@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 15:45:09 -0700 (PDT) User-agent: mu4e 1.6.5; emacs 28.0.50 From: muradm In-Reply-To: <20210902222749.28633-1-mail@muradm.net> Date: Fri, 03 Sep 2021 01:38:31 +0300 Message-ID: <87k0jy7g24.fsf@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630622773; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=97kyQLpY/PEPpLN3phwQhKi7OT83hgS+0VKMdkti1Jk=; b=XH0eE3UowOqQGsI/j9ZJpOCjk1YvUaXxZjl6EGlyMyiJee3yqSul0XoFRYXMi6SQnpJx3Z MQKC80qGti7fYX77jhff68aQdcVmDDMmmZ614zj4Z/B3CsE0fTlmTmmvWrCU0f/c8724Yx OBFgdPntSmtTuvMR3G/DOZXuf9nbdpTb/Sxhb0Ro8bH4CeqWbpPpxm5jrDtWA1Nw1ksfzV f3s9aOiDRBTmfK/bzHkqiUodv3GOqt1eoY6aYfCx0Cag/QkoN/V+abGLdFyZ0i4E9+rPn3 ReybpbStPcKAk5uhCrW1j1+AAOpNVgGpK5FdTkUx5n6zo0bH+PPZ7+Px7swA3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630622773; a=rsa-sha256; cv=none; b=VJxmOT1tyqmKiDQVLnDZXfAUkuCe0CQMZYp1Fip4dFz/NZ/RSo3KaKFnuTvz9cR38vgQpf WKUmBxaQPCVCjpdUsJxp7+55UxfBXLLWl5wVQAHrPQkrlKLNT+96Kj2IJpQ0iD5xQlc1Pb Od0vl1AodEGBnTzdLbZu3ADS7I9Ee88iUl+CTN89gLRUkhiaJnibW/E/wHWCToJRGIMC7p 4yHQMRCp3iRyejI4PbUnwCIw/B8JOaRATHCMNeO0oqmwU9AU1tqc8zw3g8L/HFQGk+NPL7 ZMN79ALAswcDJmMNA8zfsNp/KXHNkt//cxpxGw/NTRn0axQwd3AMSOIosarcFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=1SAM+lim; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=1SAM+lim; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B2EBB151D3 X-Spam-Score: -1.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7zQT0XV/7MAP This patch fixes issue in the way that it: a) calculates the result before call to (*env)->ReleaseStringUTFChars b) attempt to trick gcc optimizations by complicating path I suppose issue is with what (*env)->ReleaseStringUTFChars does and how. One should note that similar approach is not applicable to substitute in package definition. Why not just build ancient code with ancient gcc?