public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Issue with upgrade path from include/linux/version.h to uapi
@ 2013-04-19 17:34 Mathieu Desnoyers
  2013-04-19 18:05 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-04-19 17:34 UTC (permalink / raw)
  To: David Howells, Arnd Bergmann, Thomas Gleixner, Paul E. McKenney,
	Dave Jones, Linus Torvalds
  Cc: linux-kernel

Hi,

With a kernel tree that contains a generated include/linux/version.h, if
someone just does a git pull to update to a newer kernel version that
includes

commit 10b63956fce7f369cc37fd4d994f09bd5203efe4

"UAPI: Plumb the UAPI Kbuilds into the user header installation and
checking"

and
commit d183e6f570f3c0c23d253fd262c90244e72d7ffd

"UAPI: Move linux/version.h"

Any newer build will fail to overwrite or remove the stale version.h
file. The new include/generated/uapi/linux/version.h is indeed
generated, but the stale file in include/linux has precedence.

This leads to very unfortunate consequences for any user relying on
version.h to expose the kernel version accurately, since the old "stale"
kernel version will be seen by the build.

Sadly, make clean does not even take care of removing this stale file.

I've had a couple of LTTng users, myself included, running into this
issue. In our case, it typically just causes a build failure, but I
suspect it may break build of other projects relying on version.h in
much more subtle ways.

Thoughts ?

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

end of thread, other threads:[~2013-04-19 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 17:34 Issue with upgrade path from include/linux/version.h to uapi Mathieu Desnoyers
2013-04-19 18:05 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox