* 2.6.14-mm2: no .config.old any more?
@ 2005-11-14 23:53 Christian Kujau
2005-11-15 0:05 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Christian Kujau @ 2005-11-14 23:53 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 967 bytes --]
hi,
i noticed that 2.6.14-mm2 does not generate a .config.old anymore, so that
i can undo changes. i see that the Kconfig system is probably in flux
again ("Why did oldconfig's behavior change in 2.6.15-rc1?"), but i have
not seen this issue being reported:
% cp .config .config.really-old
% make menuconfig
[...]
scripts/kconfig/mconf arch/x86_64/Kconfig
#
# using defaults found in .config
#
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
% diff .config.really-old .config
4c4
< # Tue Nov 15 00:23:53 2005
---
> # Tue Nov 15 00:24:41 2005
1454c1454
< CONFIG_PRINTK_TIME=y
---
> # CONFIG_PRINTK_TIME is not set
% ls .config.old
ls: .config.old: No such file or directory
attached patch reverts one change introduced in 2.6.14-mm1 and fixes it
for me, but i doubt that it is the right thing to do....
thanks,
Christian.
--
BOFH excuse #404:
Sysadmin accidentally destroyed pager with a large hammer.
[-- Attachment #2: 2.6.14-mm2-config.old.diff --]
[-- Type: text/plain, Size: 759 bytes --]
--- linux-2.6-mm/scripts/kconfig/confdata.c.2.6.14-mm2 2005-11-15 00:41:29.647399464 +0100
+++ linux-2.6-mm/scripts/kconfig/confdata.c 2005-11-15 00:45:21.291184256 +0100
@@ -518,23 +518,13 @@ int conf_write(const char *name)
if (!name)
name = conf_def_filename;
sprintf(tmpname, "%s.old", name);
-// printf("rename1(%s, %s)\n", name, tmpname);
-// rename(name, tmpname);
+ rename(name, tmpname);
}
sprintf(tmpname, "%s%s", dirname, basename);
-// printf("rename2(%s, %s)\n", newname, tmpname);
-#if 0
if (rename(newname, tmpname))
return 1;
-#else
- {
- char buf[256];
- sprintf(buf, "cp %s %s", newname, tmpname);
- system(buf);
- unlink(newname);
- }
-#endif
- sym_change_count = 0;
-
+
+ sym_change_count = 0;
+
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.6.14-mm2: no .config.old any more?
2005-11-14 23:53 2.6.14-mm2: no .config.old any more? Christian Kujau
@ 2005-11-15 0:05 ` Andrew Morton
2005-11-15 0:34 ` Christian Kujau
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2005-11-15 0:05 UTC (permalink / raw)
To: Christian Kujau; +Cc: linux-kernel
Christian Kujau <evil@g-house.de> wrote:
>
>
> hi,
>
> i noticed that 2.6.14-mm2 does not generate a .config.old anymore, so that
> i can undo changes. i see that the Kconfig system is probably in flux
> again ("Why did oldconfig's behavior change in 2.6.15-rc1?"), but i have
> not seen this issue being reported:
Yeah, sorry, the diff you noticed is a horrid seven-second-hack I've
carried in my tree since the new Kconfig stuff went in (2.5.early) because
I want my .config to be a symlink to a revision-controlled file and the
Kconfig system (brokely) insists on blowing away the symlink each time you
run it.
A proper patch (which maybe does an lstat+special-stuff) would be nice.
But that particular diff only appears in the -mm rollup when I'm carrying
other patches against confdata.c, which rarely happens. So it'll go away
again.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.6.14-mm2: no .config.old any more?
2005-11-15 0:05 ` Andrew Morton
@ 2005-11-15 0:34 ` Christian Kujau
0 siblings, 0 replies; 3+ messages in thread
From: Christian Kujau @ 2005-11-15 0:34 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Andrew Morton schrieb:
>
> A proper patch (which maybe does an lstat+special-stuff) would be nice.
hm, sorry, but i don't think i can help out here.
> But that particular diff only appears in the -mm rollup when I'm carrying
> other patches against confdata.c, which rarely happens. So it'll go away
> again.
thank you.
Christian.
--
BOFH excuse #74:
You're out of memory
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-15 0:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 23:53 2.6.14-mm2: no .config.old any more? Christian Kujau
2005-11-15 0:05 ` Andrew Morton
2005-11-15 0:34 ` Christian Kujau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox