Re: [PATCH 1/8] setarch: (man) remove a synopsis line that mistakenly mentions `arch`

Karel Zak <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <fopavmvceex4og3lyqp4fqhecfjkptlmdrutpnn2yn5lq5lks3@yv4hshv75yfw>
On Tue, Apr 08, 2025 at 02:35:08PM +0200, Chris Hofstaedtler wrote:
> Hi,
> 
> * Karel Zak <[email protected]> [250408 12:36]:
> > On Mon, Apr 07, 2025 at 05:14:32PM +0200, Benno Schulenberg wrote:
> > > -*arch* [options] [_program_ [_argument_...]]
> > 
> > This is not a bug. We use symlinks for setarch to support specific
> > architectures. It would be beneficial to describe this in the man
> > page in better way...
> > 
> > $ find /usr/bin -type l -lname 'setarch'
> > /usr/bin/i386
> > /usr/bin/linux64
> > /usr/bin/uname26
> > /usr/bin/x86_64
> > /usr/bin/linux32
> 
> There's a very old Debian bug (#530011) asking for the setarch man page to
> list all its aliases. Actually it started out asking what "arch" meant in
> there.
> 
> Maybe the man page really could list all known aliases?

It's architecture-specific, so the set of symlinks will vary between
PPC, x86, and others. I'm unsure whether we should generate the man
page. Probably the best approach is to include lists for all
architectures and their aliases to provide a complete overview.

Karel

-- 
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.