Message ID | 20201224151701.1751008-1-adhemerval.zanella@linaro.org |
---|---|
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 94EE3386F421; Thu, 24 Dec 2020 15:17:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94EE3386F421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1608823030; bh=1gydmxg0YR3YUSx6AOlynAO7v/RONqYIYWuT7S1YIbM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Vlt5H1efgfATmI+nzeMWH6dvn+0tl2zqHFIJdCgGXQ1ZGKYSUbPUJmAJv3i0RZ1qI 2faDyhustg4XwbKz+2wJ2STmVjk/ZuLOSe2cHd1lOeDkzanG4O3/chFac8HKZ/Hqbz VuwHs9zJg4QDW7dzQpc2qJ6doTHedr60TWvmrGyo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by sourceware.org (Postfix) with ESMTPS id CF6223857012 for <libc-alpha@sourceware.org>; Thu, 24 Dec 2020 15:17:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CF6223857012 Received: by mail-qv1-xf30.google.com with SMTP id p5so1289385qvs.7 for <libc-alpha@sourceware.org>; Thu, 24 Dec 2020 07:17:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1gydmxg0YR3YUSx6AOlynAO7v/RONqYIYWuT7S1YIbM=; b=VXgmdYRuj/uq24LoEj+qqyYzMgt0waRRsR0hJhQahn7bjF9NsH8kukaYKrQgIaY/g0 YadGzjTshV0hlxYOaW9e4i7T7/qf+oHk0tsSy7s7f1F6uf/n3VODV/UmRtiaWxW76iof 2Q5i7O85MRic0X+W1N/3XJX+li0sai4A499BL2oac++QOuiezkTAffI0RCLb6uPm2iig ewvOIs5T7kOLzPua8I2/JXQjNVrqz9qJWWOx9tRK+Wa8FU18LQRm61jdGAJb1RwNLM0h 8/RTA1cx4HkSI/3uMQKgm0MU53vIzPd9FCDBbo2GvWsYVR5qSFL9yCz13znf+jsGGh7x 4+uw== X-Gm-Message-State: AOAM530O5iUpvU+1mA6Q3DsmAAQEkgPnJc/75j8owVUoidnAV3R+lVyR kl/QIc6x83t+q8YfGdBmS+tcUBe95E9W6g== X-Google-Smtp-Source: ABdhPJxPzH9S1RlVeEqj67yxhQZtm4Iw2zvqDEnuH/xRPh7NGP0dlsxv/tTOpWL3mM6GFOEJitJyCQ== X-Received: by 2002:a05:6214:c86:: with SMTP id r6mr31924912qvr.7.1608823027299; Thu, 24 Dec 2020 07:17:07 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id h21sm17039460qkk.5.2020.12.24.07.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Dec 2020 07:17:06 -0800 (PST) To: libc-alpha@sourceware.org, Paul Eggert <eggert@cs.ucla.edu> Subject: [PATCH 0/5] Fix multiple realpath issues Date: Thu, 24 Dec 2020 12:16:56 -0300 Message-Id: <20201224151701.1751008-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Adhemerval Zanella <adhemerval.zanella@linaro.org> Cc: bug-gnulib@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series | Fix multiple realpath issues | |
Message
Adhemerval Zanella Netto
Dec. 24, 2020, 3:16 p.m. UTC
This is an updated version of my previous set to fix multiple realpath implementation issues [1]. For this version I used the most recent gnulib version to sync, since it constains multiple issues and it fixes glibc BZ #10635, BZ #26592, and BZ #26241. However, the gnulib version shows some regressions on stdlib/tst-canon.c which I fixed on last patch (which also fixes glibc BZ #24970). This idea is to either apply this whole set or work with gnulib to fix the glibc regression on their side and sync a fully working implementation back to glibc. [1] https://patchwork.sourceware.org/project/glibc/list/?series=1062 *** BLURB HERE *** Adhemerval Zanella (5): stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26241] Import idx.h from gnulib Import filename.h from gnulib stdlib: Add testcase fro BZ #26241 stdlib: Remove lstat usage from realpath [BZ #24970] include/filename.h | 110 +++++ include/idx.h | 113 +++++ include/scratch_buffer.h | 21 + stdlib/Makefile | 3 +- stdlib/canonicalize.c | 467 ++++++++++++------ stdlib/tst-canon-bz26341.c | 108 ++++ support/support_set_small_thread_stack_size.c | 12 +- support/xthread.h | 2 + 8 files changed, 676 insertions(+), 160 deletions(-) create mode 100644 include/filename.h create mode 100644 include/idx.h create mode 100644 stdlib/tst-canon-bz26341.c
Comments
Thanks, this looks good. Also, the following "[PATCH 3/5] Import filename.h from gnulib" looks good. I merged both changes into Gnulib here: http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=1013adf6bf48627f84a9043cf2631ff13d2a452f
* Adhemerval Zanella via Libc-alpha: > diff --git a/include/idx.h b/include/idx.h > new file mode 100644 > index 0000000000..ad7d31a2bc > --- /dev/null > +++ b/include/idx.h > @@ -0,0 +1,113 @@ > +/* A type for indices and sizes. > + > + Copyright (C) 2020 Free Software Foundation, Inc. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 2, or (at your option) > + any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program; if not, see <https://www.gnu.org/licenses/>. */ This file is linked into the library itself, so we can only accept something that is under a compatible license (probably LGPLv2 or later).
Florian Weimer wrote: > > diff --git a/include/idx.h b/include/idx.h > > new file mode 100644 > > index 0000000000..ad7d31a2bc > > --- /dev/null > > +++ b/include/idx.h > > @@ -0,0 +1,113 @@ > > +/* A type for indices and sizes. > > + > > + Copyright (C) 2020 Free Software Foundation, Inc. > > + > > + This program is free software; you can redistribute it and/or modify > > + it under the terms of the GNU General Public License as published by > > + the Free Software Foundation; either version 2, or (at your option) > > + any later version. > > + > > + This program is distributed in the hope that it will be useful, > > + but WITHOUT ANY WARRANTY; without even the implied warranty of > > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + GNU General Public License for more details. > > + > > + You should have received a copy of the GNU General Public License > > + along with this program; if not, see <https://www.gnu.org/licenses/>. */ > > This file is linked into the library itself, so we can only accept > something that is under a compatible license (probably LGPLv2 or later). The file is actually under LGPLv2+ [1][2]. You can replace the license header with an LGPLv2+ header. Bruno [1] https://www.gnu.org/software/gnulib/manual/html_node/Gnulib-licensing.html [2] https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=modules/idx
On 12/25/20 12:34 PM, Florian Weimer wrote: > This file is linked into the library itself, so we can only accept > something that is under a compatible license (probably LGPLv2 or later). I installed the attached patch to the Gnulib copy of idx.h to do that. This uses the same wording as what's in glibc's scratch_buffer.h.
On Thu, 24 Dec 2020, Adhemerval Zanella via Libc-alpha wrote: > + Copyright (C) 2020 Free Software Foundation, Inc. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 2, or (at your option) > + any later version. Anything used in glibc libraries should be LGPLv2.1+, not GPL.
On 12/31/20 3:12 PM, Joseph Myers wrote:
> Anything used in glibc libraries should be LGPLv2.1+, not GPL.
That was fixed in the most recently-published version of the patch:
https://sourceware.org/pipermail/libc-alpha/2020-December/121178.html