[devel-distro] mkimage-profiles: проблемы
Michael Shigorin
mike at osdn.org.ua
Mon Nov 12 00:11:36 MSK 2012
On Mon, Nov 12, 2012 at 01:08:29AM +0600, Ildar Mulyukov wrote:
> Я приложил оба патча. Но всё как раньше. Объясни, что делать дальше?
> $ make syslinux.iso
> ** ARCH: x86_64
> make[1]: *** [profile/populate] Ошибка 2
Отодвинул ~/.mkimage/profiles.mk с моим обычным DEBUG, вылезло.
В логе: distcfg.mk:55: *** extraneous `endif'. Stop.
Заглянул, удивился, сделал diff с distcfg.mk сборки при DEBUG=1
(прилагается). Обалдел.
git bisect оперативно дал:
307fb51f1535b5f2d4915bd5247c5865544291cd is the first bad commit
И вот уже только разглядывая его -- понял, что distro/syslinux
нынче определяется в conf.d/test.mk, где первой значащей строчкой
стоит ifneq (,$(DEBUG))...
Спасибо, перенёс назад в conf.d/live.mk; патчик прилагается,
хотя, пожалуй, следом пойдёт и обновление в git.alt/Sisyphus.
--
---- WBR, Michael Shigorin <mike at altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
-------------- next part --------------
--- /tmp/.private/mike/mkimage-profiles.build.LwkpasY/distcfg.mk 2012-11-11 23:25:14.503063061 +0400
+++ build/distcfg.mk 2012-11-11 23:30:04.139184496 +0400
@@ -33,23 +33,15 @@
# use/build-distro
FEATURES += build-distro
# config/name/syslinux
-#IMAGE_NAME = syslinux # overridden by config/name/syslinux
+IMAGE_NAME = syslinux
# use/pack
FEATURES += pack
# boot/isolinux
-#BOOTLOADER = isolinux # overridden by boot/isolinux
-# use/pack/iso
-#IMAGE_PACKTYPE = isoboot # overridden by use/pack/iso
-# config/pack/iso
-#IMAGE_TYPE = iso # overridden by config/pack/iso
-# profile/finalize
-SUBPROFILE_DIRS = $(notdir $(subst @,/,$(SUBPROFILES)))
-endif
-FEATURES += build-distro
-IMAGE_NAME = syslinux
-FEATURES += pack
BOOTLOADER = isolinux
+# use/pack/iso
IMAGE_PACKTYPE = isoboot
+# config/pack/iso
IMAGE_TYPE = iso
+# profile/finalize
SUBPROFILE_DIRS = $(notdir $(subst @,/,$(SUBPROFILES)))
endif
-------------- next part --------------
>From ad3ad591cc9913def26516360f624adfe80cfe55 Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike at altlinux.org>
Date: Sun, 11 Nov 2012 23:52:05 +0400
Subject: [PATCH] moved distro/syslinux from test.mk back to live.mk
Thanks go to ildar@ for spotting this: my ~/.mkimage/profiles.mk
routinely contains DEBUG = 1 line which effectively masked this
regression in commit 307fb51f1535b5f2d4915bd5247c5865544291cd.
Wouldn't be a big deal but syslinux.iso is recommended in
tutorial docs being slim and fast-building, and it's also
what's buildable locally in live-builder.iso environment.
---
conf.d/live.mk | 2 ++
conf.d/test.mk | 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/conf.d/live.mk b/conf.d/live.mk
index 41c22b1..9ee270e 100644
--- a/conf.d/live.mk
+++ b/conf.d/live.mk
@@ -3,6 +3,8 @@ ifeq (distro,$(IMAGE_CLASS))
distro/dos: distro/.init use/dos use/syslinux/ui/menu; @:
distro/rescue: distro/.base use/rescue use/syslinux/ui/menu; @:
+distro/syslinux: distro/.init \
+ use/syslinux/localboot.cfg use/syslinux/ui/vesamenu use/hdt; @:
distro/.live-base: distro/.base use/live/base use/power/acpi/button; @:
distro/.live-desktop: distro/.base +live use/plymouth/live; @:
diff --git a/conf.d/test.mk b/conf.d/test.mk
index ed58672..6277879 100644
--- a/conf.d/test.mk
+++ b/conf.d/test.mk
@@ -3,9 +3,6 @@ ifneq (,$(DEBUG))
ifeq (distro,$(IMAGE_CLASS))
-distro/syslinux: distro/.init \
- use/syslinux/localboot.cfg use/syslinux/ui/vesamenu use/hdt; @:
-
distro/syslinux-auto: distro/.init use/hdt use/syslinux/timeout/1; @:
distro/syslinux-noescape: distro/syslinux-auto use/syslinux/noescape.cfg; @:
--
1.7.12.4
More information about the devel-distro
mailing list