Re: merge setarch program into util-linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel Zak wrote:
> On Thu, Jun 07, 2007 at 05:45:04PM +0200, Ludwig Nussel wrote:
> > Karel Zak wrote:
> > > On Wed, Jun 06, 2007 at 02:16:33PM -0400, Mike Frysinger wrote:
> > > > considering the purpose of the util-linux package, it seems sensible to merge 
> > > > the setarch package ... plus i can send bug reports to this mailing list 
> > > > rather than having to file bugs in the Redhat bugzilla ;)
> > > 
> > >  Good point. Jindrich Novy who is a setarch maintainer agrees with
> > >  this idea.  I'll commit the setarch.c ASAP. Thanks to Jindrich!
> > 
> > While you are at it, what about choosing a better suited name as
> > well? Since setarch cannot actually change the architecture and is
> 
>  It depends ... what do you mean with "change the architecture"? :-)
> 
>  setarch.8:
> 
>          setarch - change reported architecture in new program
>          environment and set personality flags
> 
>          This utility currently only affects the output of uname -m.
>          For example, on an AMD64 system, running ’setarch i386
>          program’ will cause ’program’ to see i686 (or other relevant
>          arch) instead  of x86_64 as machine type. It also allows to
>          set various personality options.

As the description says, it will not make your x86_64 be a i386 (let
alone something completely different like ppc etc.), it merely
changes some string returned by uname();
 
> > basically a wrapper for the 'personality' syscall renaming it to
> > 'personality', 'setpers' or similar would probably make sense.
> 
>  Well, you're right that 'setpers' is probably better name, but I
>  think it's too late for this change. The command is already on many
>  places (scripts, distributions, ...).

You could add a compatability symlink where it's needed. SUSE Linux
for example never had setarch, only 'linux32'.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)

-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux