Message ID | 20220920084307.1696-2-luoyonggang@gmail.com |
---|---|
State | Superseded |
Headers |
Return-Path: <elfutils-devel-bounces+patchwork=sourceware.org@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 94E5C3858023 for <patchwork@sourceware.org>; Tue, 20 Sep 2022 08:43:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94E5C3858023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663663416; bh=TAUi3JpiLo/oOT/DSCXa3yaG3BTp50+WO0uBrce82A8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=CaH7nz93LAsooUklPufamGNkKdjONnaa7HY4srMiHCgdzIdUCTBmJBBetiYmueUz2 DZ4NzaXZw9nsWEhlMd91ue2DVhRhs0EzN8GrF5YGCDM7DYanRGYWy23GY2174YoALf JMu6lDA5xHUeYyqbYS6ZG5xh7AOX7Iei8GmqUhOo= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 109FA3858CDA for <elfutils-devel@sourceware.org>; Tue, 20 Sep 2022 08:43:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 109FA3858CDA Received: by mail-pf1-x42d.google.com with SMTP id u132so2087396pfc.6 for <elfutils-devel@sourceware.org>; Tue, 20 Sep 2022 01:43:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=TAUi3JpiLo/oOT/DSCXa3yaG3BTp50+WO0uBrce82A8=; b=crp7/bDMEu5SbAqFX9Ec93l7UomkCB9aXx6Yzt01PsfrX+ImG8htDzOvIH2WSJ59i1 rNEw+KkLB7t9MCxfowKNYCUyvJ2SFX5SWrgUFnII9nrRV0mN5ZfqWoJAx4/MgNkDabvx AxaDVvVETHT+uKT8D4RQqnrkb908zOYOXfmlpO3GDP//szajtUUpUTNwz3eY0hK/2TKB yU+4QNNqCaLXmq65febOU3NPMjCTe2vidD8AB6qxP0kaUwWyWzZ1Kc78VHkrtm6OSXZW Sh5qBh067l9WYfJ5aEnqvBH30yIkKB3v7KVyGSxjXEYMyEfu7EwxzHCaeb2X2jcfX6c9 PfTg== X-Gm-Message-State: ACrzQf3agR8Vjll4TQ9n5faVhAC+DS+zALuBY90of86gWkJqIvAntMgO z+0NnjrY4twJfSq3EovZIGjJUfzIwfM= X-Google-Smtp-Source: AMsMyM5Q/Ml9oXYCNdvob2pWEP4horiash1Q+5iuKAy6yt+/ZeZZEZv02tZ5zRKRDGI1bEHHpcbWPQ== X-Received: by 2002:a05:6a02:186:b0:431:25fb:f1fe with SMTP id bj6-20020a056a02018600b0043125fbf1femr19806339pgb.130.1663663403492; Tue, 20 Sep 2022 01:43:23 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id so16-20020a17090b1f9000b002009db534d1sm873372pjb.24.2022.09.20.01.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 01:43:23 -0700 (PDT) To: elfutils-devel@sourceware.org Subject: [PATCH 1/7] Rename 'hello2.spec.' -> 'hello2.spec' 'hello3.spec.' -> 'hello3.spec' Date: Tue, 20 Sep 2022 16:43:01 +0800 Message-Id: <20220920084307.1696-2-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20220920084307.1696-1-luoyonggang@gmail.com> References: <20220920084307.1696-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> From: Yonggang Luo via Elfutils-devel <elfutils-devel@sourceware.org> Reply-To: Yonggang Luo <luoyonggang@gmail.com> Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Enable building libelf of elfutils on win32
|
|
Commit Message
Yonggang Luo
Sept. 20, 2022, 8:43 a.m. UTC
These filenames are invalid on win32
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
tests/Makefile.am | 2 +-
tests/debuginfod-rpms/{hello2.spec. => hello2.spec} | 0
tests/debuginfod-rpms/{hello3.spec. => hello3.spec} | 0
3 files changed, 1 insertion(+), 1 deletion(-)
rename tests/debuginfod-rpms/{hello2.spec. => hello2.spec} (100%)
rename tests/debuginfod-rpms/{hello3.spec. => hello3.spec} (100%)
Comments
Hi, On Tue, Sep 20, 2022 at 04:43:01PM +0800, Yonggang Luo via Elfutils-devel wrote: > These filenames are invalid on win32 This looks ok to me, but I don't really know why these files were named this way in the first place. The files themselves are not directly used, they are there to recreate the hello3*rpm test files. Frank, would you mind if these are just renamed to normal *.spec? Thanks, Mark > Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> > --- > tests/Makefile.am | 2 +- > tests/debuginfod-rpms/{hello2.spec. => hello2.spec} | 0 > tests/debuginfod-rpms/{hello3.spec. => hello3.spec} | 0 > 3 files changed, 1 insertion(+), 1 deletion(-) > rename tests/debuginfod-rpms/{hello2.spec. => hello2.spec} (100%) > rename tests/debuginfod-rpms/{hello3.spec. => hello3.spec} (100%) > > diff --git a/tests/Makefile.am b/tests/Makefile.am > index 85514898..fc2235f4 100644 > --- a/tests/Makefile.am > +++ b/tests/Makefile.am > @@ -563,7 +563,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ > debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \ > debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \ > debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \ > - debuginfod-rpms/hello2.spec. \ > + debuginfod-rpms/hello2.spec \ > debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \ > debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \ > debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \ > diff --git a/tests/debuginfod-rpms/hello2.spec. b/tests/debuginfod-rpms/hello2.spec > similarity index 100% > rename from tests/debuginfod-rpms/hello2.spec. > rename to tests/debuginfod-rpms/hello2.spec > diff --git a/tests/debuginfod-rpms/hello3.spec. b/tests/debuginfod-rpms/hello3.spec > similarity index 100% > rename from tests/debuginfod-rpms/hello3.spec. > rename to tests/debuginfod-rpms/hello3.spec > -- > 2.36.1.windows.1 >
I really want this to be merged :) ping Frank, as this would stop me clone elfutils on windows On Sat, Oct 15, 2022 at 4:35 AM Mark Wielaard <mark@klomp.org> wrote: > > Hi, > > On Tue, Sep 20, 2022 at 04:43:01PM +0800, Yonggang Luo via Elfutils-devel wrote: > > These filenames are invalid on win32 > > This looks ok to me, but I don't really know why these files were > named this way in the first place. > > The files themselves are not directly used, they are there to recreate > the hello3*rpm test files. > > Frank, would you mind if these are just renamed to normal *.spec? > > Thanks, > > Mark > > > Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> > > --- > > tests/Makefile.am | 2 +- > > tests/debuginfod-rpms/{hello2.spec. => hello2.spec} | 0 > > tests/debuginfod-rpms/{hello3.spec. => hello3.spec} | 0 > > 3 files changed, 1 insertion(+), 1 deletion(-) > > rename tests/debuginfod-rpms/{hello2.spec. => hello2.spec} (100%) > > rename tests/debuginfod-rpms/{hello3.spec. => hello3.spec} (100%) > > > > diff --git a/tests/Makefile.am b/tests/Makefile.am > > index 85514898..fc2235f4 100644 > > --- a/tests/Makefile.am > > +++ b/tests/Makefile.am > > @@ -563,7 +563,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ > > debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \ > > debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \ > > debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \ > > - debuginfod-rpms/hello2.spec. \ > > + debuginfod-rpms/hello2.spec \ > > debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \ > > debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \ > > debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \ > > diff --git a/tests/debuginfod-rpms/hello2.spec. b/tests/debuginfod-rpms/hello2.spec > > similarity index 100% > > rename from tests/debuginfod-rpms/hello2.spec. > > rename to tests/debuginfod-rpms/hello2.spec > > diff --git a/tests/debuginfod-rpms/hello3.spec. b/tests/debuginfod-rpms/hello3.spec > > similarity index 100% > > rename from tests/debuginfod-rpms/hello3.spec. > > rename to tests/debuginfod-rpms/hello3.spec > > -- > > 2.36.1.windows.1 > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
Hi - > I really want this to be merged :) ping Frank, > as this would stop me clone elfutils on windows If it doesn't break "make rpm" (or at least rpm -ts elfutils*.tar.bz2), it's fine. But I don't understand the problem - my windows machines have no problem with files named "hello2.spec2." with two periods. - FChE
On Thu, Oct 20, 2022 at 3:49 AM Frank Ch. Eigler <fche@redhat.com> wrote: > > Hi - > > > I really want this to be merged :) ping Frank, > > as this would stop me clone elfutils on windows > > If it doesn't break "make rpm" (or at least rpm -ts elfutils*.tar.bz2), > it's fine. But I don't understand the problem - my windows machines have > no problem with files named "hello2.spec2." with two periods. > Hi, Frank, `git clone` can not checkout the file, I didn't know why > - FChE > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
> If it doesn't break "make rpm" (or at least rpm -ts elfutils*.tar.bz2), > it's fine. But I don't understand the problem - my windows machines have > no problem with files named "hello2.spec2." with two periods. > > - FChE This is the error log: ``` C:\Users\lygstate>cd /d C:\work\xemu\elfutils C:\work\xemu\elfutils>git reset --hard 4cc429d2761846967678fb8cf5868d311d1f7862 error: invalid path 'tests/debuginfod-rpms/hello2.spec.' fatal: Could not reset index file to revision '4cc429d2761846967678fb8cf5868d311d1f7862'. C:\work\xemu\elfutils> ``` -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
Hi, On Wed, 2022-10-19 at 15:49 -0400, Frank Ch. Eigler via Elfutils-devel wrote: > I really want this to be merged :) ping Frank, > > as this would stop me clone elfutils on windows > > If it doesn't break "make rpm" (or at least rpm -ts > elfutils*.tar.bz2), > it's fine. make rpm doesn't work because of: rpmbuild -ts --sign elfutils-0.187.tar.bz2 error: rpmbuild --sign is no longer supported. Use the rpmsign command instead! make: *** [Makefile:971: rpm] Error 1 Maybe just remove the --sign? But then, with the rename, you'll get: rpmbuild -ts elfutils-0.187.tar.bz2 error: Found more than one spec file in elfutils-0.187.tar.bz2 make: *** [Makefile:971: rpm] Error 1 So maybe we just should rename them to .specfile? That is what the attached patch does, plus some other cleanups. - We forgot to include the hello3.specfile - Remove the --sign from rpmbuild - escape the % in spec comments That makes make rpm work out of the box without warnings. Does it also help the windows git thing? Cheers, Mark
Hi - > C:\work\xemu\elfutils>git reset --hard > 4cc429d2761846967678fb8cf5868d311d1f7862 > error: invalid path 'tests/debuginfod-rpms/hello2.spec.' > fatal: Could not reset index file to revision > '4cc429d2761846967678fb8cf5868d311d1f7862'. Sounds like a git-induced problem. Maybe try a different git client? - FChE
Hi, On Thu, 2022-10-20 at 18:07 +0200, Mark Wielaard wrote: > So maybe we just should rename them to .specfile? > That is what the attached patch does, plus some other cleanups. > - We forgot to include the hello3.specfile > - Remove the --sign from rpmbuild > - escape the % in spec comments > > That makes make rpm work out of the box without warnings. > Does it also help the windows git thing? I pushed this. Please let me know if it works for you. Thanks, Mark
Thanks, works fine On Mon, Oct 31, 2022 at 9:29 PM Mark Wielaard <aegon@wildebeest.org> wrote: > > Hi, > > On Thu, 2022-10-20 at 18:07 +0200, Mark Wielaard wrote: > > So maybe we just should rename them to .specfile? > > That is what the attached patch does, plus some other cleanups. > > - We forgot to include the hello3.specfile > > - Remove the --sign from rpmbuild > > - escape the % in spec comments > > > > That makes make rpm work out of the box without warnings. > > Does it also help the windows git thing? > > I pushed this. Please let me know if it works for you. > > Thanks, > > Mark -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
diff --git a/tests/Makefile.am b/tests/Makefile.am index 85514898..fc2235f4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -563,7 +563,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \ debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \ debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \ - debuginfod-rpms/hello2.spec. \ + debuginfod-rpms/hello2.spec \ debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \ debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \ debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \ diff --git a/tests/debuginfod-rpms/hello2.spec. b/tests/debuginfod-rpms/hello2.spec similarity index 100% rename from tests/debuginfod-rpms/hello2.spec. rename to tests/debuginfod-rpms/hello2.spec diff --git a/tests/debuginfod-rpms/hello3.spec. b/tests/debuginfod-rpms/hello3.spec similarity index 100% rename from tests/debuginfod-rpms/hello3.spec. rename to tests/debuginfod-rpms/hello3.spec