Skip to contentSkip to conversation

kvm: revert r4386 (rev 4422)

kvm-commits Muli Ben-Yehuda 3 participants 6 messages Feb 14, 2007 6 messages not in the archive KVM

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Avi Kivity

kvm: revert r4386

causes breakage, as well as using evil '?=' assignment.

*sigh*, this breaks --kerneldir.

The patch I resent early this morning does the right thing.

Cheers,
Muli

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#4 lore raw
In reply to a message not in the archive
Quoted 12 lines · Muli Ben-Yehuda
Quoted 4 lines · Avi Kivity

kvm: revert r4386

causes breakage, as well as using evil '?=' assignment.

*sigh*, this breaks --kerneldir.

The patch I resent early this morning does the right thing.

Well, --kerneldir should be fixed without ?= and with testing.

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#6 lore raw
In reply to a message not in the archive
Quoted 5 lines · Avi Kivity
Quoted 4 lines · Muli Ben-Yehuda
Quoted 2 lines · Avi Kivity

kvm: revert r4386

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

causes breakage, as well as using evil '?=' assignment.

*sigh*, this breaks --kerneldir.

The patch I resent early this morning does the right thing.

Well, --kerneldir should be fixed without ?= and with testing.

What's wrong with '?='?

Are we requiring running `configure' in the top level before running 'make' in kernel/? if yes, getting rid of the KERNELDIR assignment in kernel/Makefile is trivial, if not, '?=' expresses the semantics exactly - if KERNELDIR is already set, use that, if not set it to the default.

Cheers,
Muli

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#8 lore raw
In reply to a message not in the archive
Quoted 12 lines · Muli Ben-Yehuda
Quoted 10 lines · Avi Kivity
Quoted 8 lines · Muli Ben-Yehuda
Quoted 5 lines · Avi Kivity

kvm: revert r4386

causes breakage, as well as using evil '?=' assignment.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

*sigh*, this breaks --kerneldir.

The patch I resent early this morning does the right thing.

Well, --kerneldir should be fixed without ?= and with testing.

What's wrong with '?='?

It allows environment variables to affect the compilation.

Quoted 2 lines

Are we requiring running `configure' in the top level before running 'make' in kernel/?

For now, yes. If it's desired to have kernel/ as a standalone directory, it should have its own ./configure (called from the top-level ./configure for a full build).

Quoted 5 lines

if yes, getting rid of the KERNELDIR assignment in kernel/Makefile is trivial, if not, '?=' expresses the semantics exactly - if KERNELDIR is already set, use that, if not set it to the default.

Maybe. I'm just not up to testing 3 options x a zillion distros.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#10 lore raw
In reply to a message not in the archive
Quoted 15 lines · Avi Kivity
Quoted 14 lines · Muli Ben-Yehuda
Quoted 12 lines · Avi Kivity
Quoted 10 lines · Muli Ben-Yehuda
Quoted 5 lines · Avi Kivity

kvm: revert r4386

causes breakage, as well as using evil '?=' assignment.

*sigh*, this breaks --kerneldir.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The patch I resent early this morning does the right thing.

Well, --kerneldir should be fixed without ?= and with testing.

What's wrong with '?='?

It allows environment variables to affect the compilation.

Environment variables affect compilation, try:

# cd kvm-13
# make clean
# ./configure --prefix=/usr --with-patched-kernel
# export CC=toto
# make
make -C user
make[1]: Entering directory `/home/vivierl/kvm-13/user'
toto -I /usr/src/linux-2.6.20/include -MMD -MF ./.kvmctl.d -g   -c -o kvmctl.o
kvmctl.c
make[1]: toto: Command not found
make[1]: *** [kvmctl.o] Error 127
make[1]: Leaving directory `/home/vivierl/kvm-13/user'
make: *** [user] Error 2

If you protect "KERNELDIR", perhaps you should protect "CC" too... and all other shell variables.
IMHO, it is more flexible to allow environment to affect behaviour of commands :
it is the aim of shell variables.

Regards,
Laurent

Signature · 3 lines
------------- Laurent.Vivier-6ktuUTfB/[email protected]  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#11 lore raw
In reply to a message not in the archive
Quoted 1 line · Avi Kivity

It allows environment variables to affect the compilation.

I'd consider this a feature (also see Laurent's reply), but ok.

Quoted 6 lines
Quoted 2 lines

Are we requiring running `configure' in the top level before running 'make' in kernel/?

For now, yes. If it's desired to have kernel/ as a standalone directory, it should have its own ./configure (called from the top-level ./configure for a full build).

Ok, that makes the problem very easy to solve. Patch coming up in a few.

Cheers,
Muli

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV