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

Re: How to change build host ?



On Mon, Oct 22, 2001 at 11:13:57PM +0200, Bernhard Rosenkraenzer wrote:
> On Mon, 22 Oct 2001, Goran Koruga wrote:
> 
> > hopefully this is not very off topic. I am trying to find out if there's
> > a way to change "Build host" as printed by rpm -qi <package> (rpm -qpi
> > <package>) ? Right now, it prints the hostname (FQHN) of the host we are
> > building the package on, but I'd like to change that.
> 
> That's defying the purpose of "Build Host".
> 
> You can always do
> 
> hostname microsoftsucksforever.org
> rpm -ba foo.spec
> hostname your.original.hostname.com

you can write you own cheated version of gethostname() and
feed it to any binary (including rpm) with LD_PRELOAD. This is a 
lot simpler then hostname plays and doesn't require root...

-- 
: Michal ``,/\/\,       '' Moskal    | |            : GCS {C,UL}++++$
:          |    |alekith      @    |)|(| . org . pl : {E--, W, w-,M}-
:    Linux: We are dot in .ORG.    |                : {b,e>+}++ !tv h
: CurProj: ftp://ftp.pld.org.pl/people/malekith/ksi : PLD Team member





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