9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] pstree binary not removed after being reimplemented in awk
@ 2024-11-16 15:32 Alexander Kapshuk
  2024-11-16 15:47 ` qwx
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kapshuk @ 2024-11-16 15:32 UTC (permalink / raw)
  To: 9front

Commit 493bac79b63f1949a29aeec8270fab4a599a6ee3, pstree: reimplement
in awk, optionally restrict to a given process, has removed the C
source file, but not the binary.

cpu% file /bin/pstree
/bin/pstree: amd64 plan 9 executable

Is that intentional?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9front] pstree binary not removed after being reimplemented in awk
  2024-11-16 15:32 [9front] pstree binary not removed after being reimplemented in awk Alexander Kapshuk
@ 2024-11-16 15:47 ` qwx
  2024-11-16 16:26   ` Alexander Kapshuk
  0 siblings, 1 reply; 3+ messages in thread
From: qwx @ 2024-11-16 15:47 UTC (permalink / raw)
  To: 9front

On Sat Nov 16 16:33:50 +0100 2024, alexander.kapshuk@gmail.com wrote:
> Commit 493bac79b63f1949a29aeec8270fab4a599a6ee3, pstree: reimplement
> in awk, optionally restrict to a given process, has removed the C
> source file, but not the binary.
> 
> cpu% file /bin/pstree
> /bin/pstree: amd64 plan 9 executable
> 
> Is that intentional?

The binaries are not tracked in the git repo, and there currently is no
mechanism in place to remove binaries replaced by scripts -- so in
that sense, yes, this is expected.  The laziest way would be `rm
/*/bin/pstree; bind -ac /dist/plan9front /; git/revert /rc/bin/pstree`
or something like that.  Sorry for the inconvenience, though this does
not happen often.

Cheers,
qwx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9front] pstree binary not removed after being reimplemented in awk
  2024-11-16 15:47 ` qwx
@ 2024-11-16 16:26   ` Alexander Kapshuk
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kapshuk @ 2024-11-16 16:26 UTC (permalink / raw)
  To: 9front

On Sat, 16 Nov 2024 at 17:48, <qwx@sciops.net> wrote:
>
> On Sat Nov 16 16:33:50 +0100 2024, alexander.kapshuk@gmail.com wrote:
> > Commit 493bac79b63f1949a29aeec8270fab4a599a6ee3, pstree: reimplement
> > in awk, optionally restrict to a given process, has removed the C
> > source file, but not the binary.
> >
> > cpu% file /bin/pstree
> > /bin/pstree: amd64 plan 9 executable
> >
> > Is that intentional?
>
> The binaries are not tracked in the git repo, and there currently is no
> mechanism in place to remove binaries replaced by scripts -- so in
> that sense, yes, this is expected.  The laziest way would be `rm
> /*/bin/pstree; bind -ac /dist/plan9front /; git/revert /rc/bin/pstree`
> or something like that.  Sorry for the inconvenience, though this does
> not happen often.
>
> Cheers,
> qwx

Thanks for a prompt reply.
No inconvenience caused whatsoever.

With the old binary out of the way, it's the awk version that is
reported by the file command:
cpu% file /bin/pstree
/bin/pstree: rc executable file

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-16 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-16 15:32 [9front] pstree binary not removed after being reimplemented in awk Alexander Kapshuk
2024-11-16 15:47 ` qwx
2024-11-16 16:26   ` Alexander Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).