From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3826 invoked from network); 18 Aug 2020 13:32:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Aug 2020 13:32:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=DE+6LfsI9CdxrD5AviVwHbWqWUUXFEcRYNuS3j5Qy90=; b=JL3X+5WqvmTpuBXMUhxe5nDNyQ juPWmTDeaBIbOPnLylkLn51aut5v+FEVKNesoxmH2HCLYTp3wr8XhKkgZSYDhZ7rxO3IbrJU2WVbh awmCUj1UhOlOSw4ZmiVpmDDdx+MPTRWheyfDhOMvwH6dwqKRP685VYxTYwCOvixhIP6UdvCVatJsW MVEYVztoT8USn8DsB5kfJsTvP0zf/HiPRjDDtb55KLjrVrgca2i8F9RmmQEj3wVNMtMJyTv8aNY1W zSzGzLC7xYyc5VUpl3R6J19Ao5jKZDrgz4F8Sqd38xdvphdfn9s0JJeRWRYZV9UGZGRFsS39+ugCD B3NfLJUg==; Received: from authenticated user by zero.zsh.org with local id 1k81jT-000P0I-AJ; Tue, 18 Aug 2020 13:32:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f67.google.com) smtp.remote-ip=209.85.218.67; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=skipped; arc=none Received: from mail-ej1-f67.google.com ([209.85.218.67]:40455) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1k81Q6-000OQh-Ma; Tue, 18 Aug 2020 13:12:56 +0000 Received: by mail-ej1-f67.google.com with SMTP id o18so22003977eje.7 for ; Tue, 18 Aug 2020 06:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DE+6LfsI9CdxrD5AviVwHbWqWUUXFEcRYNuS3j5Qy90=; b=iKJeRkx7rblyqHQH+9elc6E4iNOYOGV/yJL5lM0prAi+t7joHQWDWt0FA3ih63F34F apKFtKYREeHd70b5tB0RDOeFqvYRgHRiW5cAbn1XL77RPYE8j8Mkb6kp38rgs52C7pmq sYpeQnwhMjQbqvuZFcfZGSiNQzkZvc4mu7nY3yKamBbXCvTXSmQRHilfU9qNJvrcszAm 3faRDPUpKi0AjKuuVbqu7wbcIydJKz4qwZg40dsY5/tQTm7ZIrhz7HD+dYd6XWDlQFcB 2ctZPkaczeN2LLJFU/tuQ8dZ/RXi/38Eda/WzRvRwE3ho3aM6HU9JtW0zT4QxhG9JQoO 4SNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DE+6LfsI9CdxrD5AviVwHbWqWUUXFEcRYNuS3j5Qy90=; b=njfohLJGjQE2FFGiwFwe+kMeNfQPJdNy5Mf1x6h383N6VhoxxVBoVEvTvDWtjChWN4 2ZHNDTkmcp88f5g8kHWAvNv3ZtWp/IY3ODMe0bFvHV2I8i1fJ13YRUNIWwChFtf3qsKF 4CipeyAmBDA1x1EA4QIymAGmSgxiA83ABN3dNzRcQ9Jc8EShCHGcET6HyW4U32Z0ATAC ZP9ixfa4vKXhH3RNcPXWHCU8DzffEzx2CYPov6L08W2fIFD+zOOMPttC3q0qio1YVjaA VbdHFrRfrHElDHj3z3eAWpVHDtHAVSRwaOHmUNS5kEhys9V7HRVAd46TEkbsRD7YC3oJ 1Yog== X-Gm-Message-State: AOAM532cQiv8SXwR6f3UPer03FzoTmSOrTs8IYFU4wv9kFACCrFwH3qk FHb7bysBVEogtOWFU3UHvry75g1TS/afv12cPPY5CLoOj+E= X-Google-Smtp-Source: ABdhPJwMdhfKdGMWAPowCR3hX2rlj4oWbepydd2Q1Iu85zNZPbe7uoNVVHGB0hnTS5IL1USHrH2z7kMDL0Du+D45p+E= X-Received: by 2002:a17:906:7e0a:: with SMTP id e10mr19724895ejr.312.1597756372805; Tue, 18 Aug 2020 06:12:52 -0700 (PDT) MIME-Version: 1.0 References: <20200816140946.71036aba@tarpaulin.shahaf.local2> In-Reply-To: <20200816140946.71036aba@tarpaulin.shahaf.local2> From: Shlomi Fish Date: Tue, 18 Aug 2020 16:12:41 +0300 Message-ID: Subject: Re: "rpmbuild -tb [tab]" or "rpmbuild -ta [tab]" get stuck / do not complete even if there are tarballs in ./* To: Daniel Shahaf Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="00000000000009ebf205ad26a5af" X-Zsh-Org-Should-ARC-Sign: true X-Validation-by: d.s@daniel.shahaf.name X-Seq: 47326 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --00000000000009ebf205ad26a5af Content-Type: text/plain; charset="UTF-8" Hi Daniel and everyone else! sorry for the late reply. On Sun, Aug 16, 2020 at 5:09 PM Daniel Shahaf wrote: > Shlomi Fish wrote on Tue, 11 Aug 2020 16:57 +0300: > > Hi all! > > Morning. > > > > > ``` > > shlomif[fcs]:$trunk/fc-solve/B$ pwd > > /home/shlomif/progs/freecell/git/fc-solve/fc-solve/B > > shlomif[fcs]:$trunk/fc-solve/B$ ls *.tar.* > > fc-solve--board-gen--suits-swaps-reports.tar.xz > > freecell-solver-6.0.1.tar.xz > > freecell-solver-6.0.1.tar.gz > > shlomif[fcs]:$trunk/fc-solve/B$ rpmbuild -tb f[tab] > > ``` > > > > gets stuck. I am on mageia linux v8 with `zsh-5.8-1.mga8`. > > > > So, it's the -t flag with "b" for an argument, so it'll enter the > "build_t" state: > > 173 rpmbuild) > 174 [[ -prefix -r ]] && pathopts[1]= > 175 opts+=( $buildopts > 176 '(-r -t)-b+[build mode (spec file)]:build > stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ > stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ > binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ > source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_b' > 177 '(-b -t)-r+[build mode (source package)]:build > stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ > stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ > binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ > source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_b' > 178 '(-b -r)-t+[build mode (tar file)]:build > stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ > stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ > binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ > source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_t' > 179 --{rebuild,recompile}':*:source rpm file:->build_r' > 180 ) > 181 ;; > > Which will set $tmp: > > 283 build_t) tmp=( '*:tar file:_files -g "*.(#i)tar(.*|)(-.)"' ) ;| > > But then nothing reads $tmp. > > Does this help? > > [[[ > diff --git a/Completion/Redhat/Command/_rpm > b/Completion/Redhat/Command/_rpm > index e3469245f..85292fa78 100644 > --- a/Completion/Redhat/Command/_rpm > +++ b/Completion/Redhat/Command/_rpm > @@ -282,7 +282,7 @@ _rpm () { > build_r) tmp=( '*:source package:_files -g "*.(#i)src.rpm(-.)"' ) ;| > build_t) tmp=( '*:tar file:_files -g "*.(#i)tar(.*|)(-.)"' ) ;| > build_?) > - _arguments -s -C $buildopts $commonopts $pathopts \ > + _arguments -s -C $buildopts $commonopts $pathopts "${tmp[@]}" \ > ;; > checksig) > _arguments -s -C \!-K \ > ]]] > > I applied the patch to "fedpkg clone --anonymous zsh" and rebuilt, and it seems to have fixed the issue. Thanks! > > One workaround is to prefix the line with "ls " and later remove it. > > > > Regards, > > > > -- Shlomi > > > > P.S: I'd suggest setting up a bug/issue tracker for zsh that tracks > > non-resolved tickets. There are many FOSS, non-FOSS or hosted > alternatives. > > It's been discussed before. tl;dr is that we require one with > bidirectional email integration to preserve the existing workflow, but > none has been proposed. > > Ah, email integration is considered an important feature for issue trackers, but I often resort to using their web interfaces. > Cheers, > > Daniel > -- Shlomi Fish https://www.shlomifish.org/ Buddha has the Chuck Norris nature. Please reply to list if it's a mailing list post - http://shlom.in/reply . --00000000000009ebf205ad26a5af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Daniel and everyone else!

sorry for the late reply.

On Sun, Aug 16, 2020= at 5:09 PM Daniel Shahaf <d.s= @daniel.shahaf.name> wrote:
Shlomi Fish wrote on Tue, 11 Aug 2020 16:57 +0300:
> Hi all!

Morning.

>
> ```
> shlomif[fcs]:$trunk/fc-solve/B$ pwd
> /home/shlomif/progs/freecell/git/fc-solve/fc-solve/B
> shlomif[fcs]:$trunk/fc-solve/B$ ls *.tar.*
> fc-solve--board-gen--suits-swaps-reports.tar.xz
>=C2=A0 freecell-solver-6.0.1.tar.xz
> freecell-solver-6.0.1.tar.gz
> shlomif[fcs]:$trunk/fc-solve/B$ rpmbuild -tb f[tab]
> ```
>
> gets stuck. I am on mageia linux v8 with `zsh-5.8-1.mga8`.
>

So, it's the -t flag with "b" for an argument, so it'll e= nter the
"build_t" state:

=C2=A0 =C2=A0173=C2=A0 =C2=A0 =C2=A0 rpmbuild)
=C2=A0 =C2=A0174=C2=A0 =C2=A0 =C2=A0 =C2=A0 [[ -prefix -r ]] && pat= hopts[1]=3D
=C2=A0 =C2=A0175=C2=A0 =C2=A0 =C2=A0 =C2=A0 opts+=3D( $buildopts
=C2=A0 =C2=A0176=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(-r -t)-b+[build mo= de (spec file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ che= ck c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\= package a\:build\ binary\ and\ source\ packages s\:build\ source\ package\= only r\:build\ source\ package\ only\ -\ calculate\ build\ requires)):*:bu= ild:->build_b'
=C2=A0 =C2=A0177=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(-b -t)-r+[build mo= de (source package)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list= \ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ bi= nary\ package a\:build\ binary\ and\ source\ packages s\:build\ source\ pac= kage\ only r\:build\ source\ package\ only\ -\ calculate\ build\ requires))= :*:build:->build_b'
=C2=A0 =C2=A0178=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(-b -r)-t+[build mo= de (tar file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ chec= k c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ = package a\:build\ binary\ and\ source\ packages s\:build\ source\ package\ = only r\:build\ source\ package\ only\ -\ calculate\ build\ requires)):*:bui= ld:->build_t'
=C2=A0 =C2=A0179=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --{rebuild,recompile}= 9;:*:source rpm file:->build_r'
=C2=A0 =C2=A0180=C2=A0 =C2=A0 =C2=A0 =C2=A0 )
=C2=A0 =C2=A0181=C2=A0 =C2=A0 =C2=A0 ;;

Which will set $tmp:

=C2=A0 =C2=A0283=C2=A0 =C2=A0 =C2=A0 build_t) tmp=3D( '*:tar file:_file= s -g "*.(#i)tar(.*|)(-.)"' ) ;|

But then nothing reads $tmp.

Does this help?

[[[
diff --git a/Completion/Redhat/Command/_rpm b/Completion/Redhat/Command/_rp= m
index e3469245f..85292fa78 100644
--- a/Completion/Redhat/Command/_rpm
+++ b/Completion/Redhat/Command/_rpm
@@ -282,7 +282,7 @@ _rpm () {
=C2=A0 =C2=A0 =C2=A0build_r) tmp=3D( '*:source package:_files -g "= *.(#i)src.rpm(-.)"' ) ;|
=C2=A0 =C2=A0 =C2=A0build_t) tmp=3D( '*:tar file:_files -g "*.(#i)= tar(.*|)(-.)"' ) ;|
=C2=A0 =C2=A0 =C2=A0build_?)
-=C2=A0 =C2=A0 =C2=A0 _arguments -s -C $buildopts $commonopts $pathopts \ +=C2=A0 =C2=A0 =C2=A0 _arguments -s -C $buildopts $commonopts $pathopts &qu= ot;${tmp[@]}" \
=C2=A0 =C2=A0 =C2=A0 =C2=A0;;
=C2=A0 =C2=A0 =C2=A0checksig)
=C2=A0 =C2=A0 =C2=A0 =C2=A0_arguments -s -C \!-K \
]]]


I applied the patch to "fedpkg cl= one --anonymous zsh" and rebuilt, and it seems to have fixed the issue= . Thanks!
=C2=A0
> One workaround is to prefix the line with "ls " and later re= move it.
>
> Regards,
>
> -- Shlomi
>
> P.S: I'd suggest setting up a bug/issue tracker for zsh that track= s
> non-resolved tickets. There are many FOSS, non-FOSS or hosted alternat= ives.

It's been discussed before.=C2=A0 tl;dr is that we require one with
bidirectional email integration to preserve the existing workflow, but
none has been proposed.


Ah, email integration is considered an= important feature for issue trackers, but I often resort to using their we= b interfaces.
=C2=A0
Cheers,

Daniel


--
Shlomi Fish https://www.shlomifish.org/

Buddha has the Ch= uck Norris nature.

Please = reply to list if it's a mailing list post - http://shlom.in/reply .
<= /div>
--00000000000009ebf205ad26a5af--