* [PATCH] 2.4.1ac12 mkdep -I support - take 2
@ 2001-02-14 3:41 Keith Owens
0 siblings, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-02-14 3:41 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Get rid of the special case in drivers/acpi/Makefile. mkdep now uses
the same -I options in the same order as the compiler. Against 2.4.1ac12.
Change from take 1 - make is too dumb to realise that /path/name/file.h
is the same as file.h when current directory is /path/name, so do not
use the full pathname to files in the current directory.
--- 2.4.1-ac12/scripts/mkdep.c.orig Wed Feb 14 14:21:54 2001
+++ 2.4.1-ac12/scripts/mkdep.c Sun Feb 11 15:06:46 2001
@@ -221,15 +221,10 @@
char resolved_path[PATH_MAX+1];
const char *name2;
- if (strcmp(name, ".")) {
- name2 = realpath(name, resolved_path);
- if (!name2) {
- fprintf(stderr, "realpath(%s) failed, %m\n", name);
- exit(1);
- }
- }
- else {
- name2 = "";
+ name2 = realpath(name, resolved_path);
+ if (!name2) {
+ fprintf(stderr, "realpath(%s) failed, %m\n", name);
+ exit(1);
}
path_array = realloc(path_array, (++paths)*sizeof(*path_array));
@@ -246,7 +241,7 @@
exit(1);
}
strcpy(path->buffer, name2);
- if (path->len && *(path->buffer+path->len-1) != '/') {
+ if (*(path->buffer+path->len-1) != '/') {
*(path->buffer+path->len) = '/';
*(path->buffer+(++(path->len))) = '\0';
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.4.1ac12 mkdep -I support - take 2
@ 2001-02-15 16:30 Pavel Roskin
2001-02-15 17:46 ` Pavel Roskin
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2001-02-15 16:30 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
Hello, Keith!
You patch has been applied to 2.4.1ac13, but it doesn't help:
$ HPATH=. ../../scripts/mkdep -- names.c
names.o: names.c \
$(wildcard /home/proski/src/linux/drivers/pci/config/pci/names.h) \
/home/proski/src/linux/drivers/pci/devlist.h \
/home/proski/src/linux/drivers/pci/devlist.h \
/home/proski/src/linux/drivers/pci/devlist.h
$ ls
Config.in compat.o names.c pci.o quirks.o setup-res.c
Makefile devlist.h pci.c proc.c setup-bus.c syscall.c
compat.c gen-devlist.c pci.ids quirks.c setup-irq.c
devlist.h is in the current directory, but the full path is used.
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.4.1ac12 mkdep -I support - take 2
2001-02-15 16:30 Pavel Roskin
@ 2001-02-15 17:46 ` Pavel Roskin
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Roskin @ 2001-02-15 17:46 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
On Thu, 15 Feb 2001, Pavel Roskin wrote:
> Hello, Keith!
>
> You patch has been applied to 2.4.1ac13, but it doesn't help:
It's fixed in ac14. I ran twice
make depend && make clean && make bzImage && make modules
and it worked both times. Thanks!
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-02-15 17:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-14 3:41 [PATCH] 2.4.1ac12 mkdep -I support - take 2 Keith Owens
-- strict thread matches above, loose matches on Subject: below --
2001-02-15 16:30 Pavel Roskin
2001-02-15 17:46 ` Pavel Roskin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox