Skip to contentSkip to conversation

duplicated include files

DISCUSSION Marco Costalba 7 participants 10 messages Nov 4, 2007 – Nov 14, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

make includecheck does not work for me. Linux tree is from latest git.

bash-3.2$ pwd
/git/linux-2.6

bash-3.2$ make includecheck
find * \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o \
-name '*.[hcS]' -type f -print | sort \
| xargs perl -w scripts/checkincludes.pl
Can't open perl script "scripts/checkincludes.pl": No such file or directory make[1]: *** [includecheck] Error 123
make: *** [sub-make] Error 2

bash-3.2$ ls scripts/checkincludes.pl
scripts/checkincludes.pl

#1 lore raw
Quoted 7 lines · Marco Costalba

make includecheck does not work for me. Linux tree is from latest git.

bash-3.2$ pwd
/git/linux-2.6

bash-3.2$ make includecheck
find * \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o

BTW what's that 'BitKeeper' fossil here?

#2 lore raw
Quoted 10 lines · Marco Costalba
Quoted 7 lines · Marco Costalba

make includecheck does not work for me. Linux tree is from latest git.

bash-3.2$ pwd
/git/linux-2.6

bash-3.2$ make includecheck
find * \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o

BTW what's that 'BitKeeper' fossil here?

actually, one wonders if there's any value in keeping any references to other version control systems such as subversion, SCCS, CVS, mercurial, etc.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
#3 lore raw
Quoted 4 lines · Robert P. J. Day

actually, one wonders if there's any value in keeping any references to other version control systems such as subversion, SCCS, CVS, mercurial, etc.

What do you mean by "other"? git doesn't have a monopoly, and the kernel should support people using a reasonable set of version control systems. Supporting VSS would be strange, but nothing wrong with the set you listed, if people find those systems useful. It's not like it amounts to a huge amount of effort to do so.

J

#4 lore raw
Quoted 10 lines · Jeremy Fitzhardinge
Quoted 3 lines · Robert P. J. Day

actually, one wonders if there's any value in keeping any references to other version control systems such as subversion, SCCS, CVS, mercurial, etc.

What do you mean by "other"? git doesn't have a monopoly, and the kernel should support people using a reasonable set of version control systems. Supporting VSS would be strange, but nothing wrong with the set you listed, if people find those systems useful. It's not like it amounts to a huge amount of effort to do so.

you're right, my mistake, i was just caught up in a git-centered perspective.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
#5 lore raw
In reply to Robert P. J. Day

On Sun, 2007-11-04 at 14:49 -0500, Robert P. J. Day wrote:
[...]

Quoted 3 lines

actually, one wonders if there's any value in keeping any references to other version control systems such as subversion, SCCS, CVS, mercurial, etc.

Lots of people have their working trees in CVS, Subversion, .... So it probably annoys them and doesn't really buy anything IMHO.

Bernd

Signature · 3 lines
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
#6 lore raw
In reply to Marco Costalba
Quoted 10 lines · On Sun, 4 Nov 2007 20:43:01 +0100 Marco Costalba wrote:
Quoted 7 lines · Marco Costalba

make includecheck does not work for me. Linux tree is from latest git.

bash-3.2$ pwd
/git/linux-2.6

bash-3.2$ make includecheck
find * \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o

BTW what's that 'BitKeeper' fossil here?

It allows people to continue using any of {CVS, SVN, BitKeeper} for their kernel tree. The BK kernel tree is still being updated AFAIK. (It was last time I looked, about 3 weeks ago.)

---
~Randy

#7 lore raw
In reply to Marco Costalba
Quoted 14 lines · Marco Costalba

make includecheck does not work for me. Linux tree is from latest git.

bash-3.2$ pwd
/git/linux-2.6

bash-3.2$ make includecheck
find * \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o \
-name '*.[hcS]' -type f -print | sort \
| xargs perl -w scripts/checkincludes.pl
Can't open perl script "scripts/checkincludes.pl": No such file or directory make[1]: *** [includecheck] Error 123
make: *** [sub-make] Error 2

Quoted 2 lines

bash-3.2$ ls scripts/checkincludes.pl
scripts/checkincludes.pl

Are you building in a different tree than the source tree? The patch below fixed it for me.

Question: Why don't GENKSYMS and KALLSYMS need the $(srctree) prefix?
---
Subject: kbuild: Add missing srctree prefix for includecheck and versioncheck

Add missing $(srctree)/ prefix for scripts used by the includecheck and versioncheck make targets

---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -1414,12 +1414,12 @@ tags: FORCE
 includecheck:
 	find * $(RCS_FIND_IGNORE) \
 		-name '*.[hcS]' -type f -print | sort \
-		| xargs $(PERL) -w scripts/checkincludes.pl
+		| xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl
 
 versioncheck:
 	find * $(RCS_FIND_IGNORE) \
 		-name '*.[hcS]' -type f -print | sort \
-		| xargs $(PERL) -w scripts/checkversion.pl
+		| xargs $(PERL) -w $(srctree)/scripts/checkversion.pl
 
 namespacecheck:
 	$(PERL) $(srctree)/scripts/namespace.pl

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   [email protected]	
Internet: http://www.sony-europe.com/

Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V. Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium VAT BE 0413.825.160 · RPR Brussels
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619

#8 lore raw
Quoted 4 lines · Geert Uytterhoeven

Are you building in a different tree than the source tree? The patch below fixed it for me.

Yes, I am. Thanks for the patch.

Marco

#9 lore raw
In reply to Geert Uytterhoeven
Quoted 5 lines

Are you building in a different tree than the source tree? The patch below fixed it for me.

Question: Why don't GENKSYMS and KALLSYMS need the $(srctree) prefix?

They are generated binaries that live in the output directory structure.

Quoted 7 lines

---
Subject: kbuild: Add missing srctree prefix for includecheck and versioncheck

Add missing $(srctree)/ prefix for scripts used by the includecheck and versioncheck make targets

Thanks - applied.

Sam