Code: Select all
tup error: File '/mnt/blah/mirror/kolibrios/data/.kernel.mnt' was written to, but is not in .tup/db. You probably should specify it as an output
Spoiler:
Code: Select all
diff --git a/data/Tupfile.lua b/data/Tupfile.lua
index 3c9fbc449..b3b0eff6f 100644
--- a/data/Tupfile.lua
+++ b/data/Tupfile.lua
@@ -701,6 +701,7 @@ bootloader = "../kernel/trunk/bootloader/boot_fat12.bin"
make_img_command = make_img_command .. " && dd if=" .. bootloader .. " of=kolibri.img count=1 bs=512 conv=notrunc 2>&1"
table.insert(input_deps, bootloader)
end
+output_files = {"kolibri.img"}^M
-- make folders
table.sort(img_dirs)
for i,v in ipairs(img_dirs) do
@@ -715,8 +716,7 @@ for i,v in ipairs(img_files) do
then
-- for kernel.mnt, insert autobuild revision identifier
-- from .revision to .kernel.mnt
- -- note that .revision and .kernel.mnt must begin with .
- -- to prevent tup from tracking them
+ table.insert(output_files, ".kernel.mnt")^M
if build_type == "rus"
then str='$(LANG=ru_RU.utf8 date -u +"[автосборка %d %b %Y %R, r$(cat .revision)]"|iconv -f utf8 -t cp866)'
else str='$(date -u +"[auto-build %d %b %Y %R, r$(cat .revision)]")'
@@ -732,7 +732,7 @@ for i,v in ipairs(img_files) do
end
-- generate tup rule for kolibri.img
-tup.definerule{inputs = input_deps, command = make_img_command, outputs = {"kolibri.img"}}
+tup.definerule{inputs = input_deps, command = make_img_command, outputs = output_files}^M
-- generate command and dependencies for mkisofs
input_deps = {"kolibri.img"}