From: Michael Shigorin <mike@osdn.org.ua> To: community@lists.altlinux.org Subject: Re: [Comm] mkimage (not installed) Date: Wed, 4 Jan 2012 22:36:36 +0200 Message-ID: <20120104203636.GI16304@osdn.org.ua> (raw) In-Reply-To: <4F048E32.9080908@mail.ru> [-- Attachment #1: Type: text/plain, Size: 792 bytes --] On Wed, Jan 04, 2012 at 09:36:50PM +0400, Vladimir Karpinsky wrote: > Читал http://www.altlinux.org/Mkimage/Profiles/m-p и решил [...] > $ cat build/build.log > Makefile:13: /usr/share/mkimage/config.mk: Нет такого файла или каталога [...] > В природе не существует ни файла /usr/share/mkimage/targets.mk, > ни даже каталога /usr/share/mkimage. Что-то не установлено? # apt-get install mkimage Спасибо, дополнил QUICKSTART в части команд (словами там уже было). Н-да, я делал проверку версии, но не доступности... Если хотите, проверьте приложенный патч -- не уверен, что стоит выпускать 0.5.3.1 (в пакете mkimage-profiles зависимость на mkimage прописана). Прикладывать при помощи git am. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ [-- Attachment #2: 0001-check-vigorously-for-installed-mkimage.patch --] [-- Type: text/plain, Size: 3024 bytes --] >From 0ec7d7cd015cc2979ca9d763a7bb5ed7c93536bc Mon Sep 17 00:00:00 2001 From: Michael Shigorin <mike@altlinux.org> Date: Wed, 4 Jan 2012 22:30:56 +0200 Subject: [PATCH] check vigorously for installed mkimage It was briefly mentioned in QUICKSTART but somehow managed to evade the commandlines provided. And while at it, let's make errors like this more explicit to avoid extra lookups. Oh, and fix QUICKSTART so that readers miss the hassle. :) Thanks Vladimir Karpinsky for pointing this problem out. --- QUICKSTART | 2 +- image.in/Makefile | 6 +++++- lib/build.mk | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/QUICKSTART b/QUICKSTART index ae03404..113c34d 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -15,7 +15,7 @@ п╨п╬п╪п╟пҐпЄя▀ ~~~~~~~ - п╬я┌ п╦п╪п╣пҐп╦ root: -# apt-get install hasher git-core +# apt-get install mkimage hasher git-core # hasher-useradd USER - п╬я┌ п╦п╪п╣пҐп╦ п©п╬п╩я▄пЇп╬п╡п╟я┌п╣п╩я▐ (п©п╬я│п╩п╣ п©п╬п╡я┌п╬я─пҐп╬пЁп╬ п╡я┘п╬пЄп╟): diff --git a/image.in/Makefile b/image.in/Makefile index 7455585..a722c9a 100644 --- a/image.in/Makefile +++ b/image.in/Makefile @@ -10,8 +10,10 @@ MKI_VER_OPTIMAL = 0.2.0 include distcfg.mk include functions.mk -include $(MKIMAGE_PREFIX)/config.mk +ifeq (,$(realpath $(MKIMAGE_PREFIX)/config.mk)) +$(error please apt-get install mkimage and have a look at QUICKSTART as well) +endif ifeq (-,$(shell rpmvercmp $(MKI_VERSION) $(MKI_VER_MINIMAL) | tr -d [0-9])) $(info error: mkimage-$(MKI_VERSION) is too old, please upgrade) $(error mkimage is too old, $(MKI_VER_MINIMAL) is minimal supported version) @@ -21,6 +23,8 @@ $(info warning: mkimage-$(MKI_VERSION) is suboptimal, consider upgrading) $(warning consider upgrading mkimage to $(MKI_VER_OPTIMAL) or better) endif +include $(MKIMAGE_PREFIX)/config.mk + # reconstruct instead of passing yet another variable IMAGE_LINK := $(IMAGE_NAME).$(IMAGE_TYPE) IMAGE_OUTFILE := $(IMAGE_NAME)-$(DATE)-$(ARCH).$(IMAGE_TYPE) diff --git a/lib/build.mk b/lib/build.mk index 839adb7..fa26a56 100644 --- a/lib/build.mk +++ b/lib/build.mk @@ -45,8 +45,8 @@ build-image: profile/populate if $(START) $(MAKE) -C $(BUILDDIR)/ $(LOG); then \ echo "$(TIME) done (`tail -1 $(BUILDLOG) | cut -f1 -d.`)"; \ tail -200 "$(BUILDLOG)" $(SHORTEN) \ - | GREP_COLOR="$(ANSI_OK)" \ - grep --color=auto '^\*\* image: .*' ||:; \ + | GREP_COLOR="$(ANSI_OK)" GREP_OPTIONS="--color=auto" \ + grep '^\*\* image: .*' ||:; \ else \ echo -n "$(TIME) failed, see log"; \ if [ -z "$(DEBUG)" ]; then \ @@ -56,8 +56,8 @@ build-image: profile/populate echo " above"; \ fi; \ tail -200 "$(BUILDLOG)" \ - | GREP_COLOR="$(ANSI_FAIL)" \ - egrep --color=auto "^(E:|[Ee]rror|[Ww]arning).*"; \ + | GREP_COLOR="$(ANSI_FAIL)" GREP_OPTIONS="--color=auto" \ + egrep "^((E:|[Ee]rror|[Ww]arning).*)|(.* Stop\.)$$"; \ df -P $(BUILDDIR) | awk 'END { if ($$4 < $(LOWSPACE)) \ { print "NB: low space on "$$6" ("$$5" used)"}}'; \ fi; \ -- 1.7.7.5
next prev parent reply other threads:[~2012-01-04 20:36 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-04 17:36 [Comm] mkimage Vladimir Karpinsky 2012-01-04 20:36 ` Michael Shigorin [this message] 2012-01-04 20:56 ` [Comm] mkimage (not installed) Vladimir Karpinsky 2012-01-04 21:10 ` Michael Shigorin 2012-01-05 5:42 ` Vladimir Karpinsky 2012-01-05 8:10 ` Michael Shigorin 2012-01-05 20:09 ` Денис Смирнов 2012-01-06 6:03 ` Vladimir Karpinsky 2012-01-06 18:46 ` Michael Shigorin 2012-01-06 6:39 ` Vladimir Karpinsky 2012-01-06 18:49 ` Michael Shigorin 2012-01-06 19:41 ` Vladimir Karpinsky 2012-01-06 21:19 ` Michael Shigorin 2012-01-07 7:53 ` Vladimir Karpinsky 2012-01-07 10:44 ` Michael Shigorin 2012-01-07 10:46 ` Michael Shigorin 2012-01-07 14:08 ` Vladimir Karpinsky 2012-01-07 16:56 ` Michael Shigorin 2012-01-07 15:24 ` Vladimir Karpinsky 2012-01-07 16:55 ` Michael Shigorin 2012-01-07 17:56 ` Vladimir Karpinsky 2012-01-07 20:36 ` Michael Shigorin 2012-01-08 6:10 ` Vladimir Karpinsky 2012-01-08 11:15 ` Michael Shigorin 2012-01-09 10:06 ` Vladimir Karpinsky 2012-01-09 11:07 ` Michael Shigorin 2012-01-09 18:28 ` Vladimir Karpinsky 2012-01-10 8:59 ` Michael Shigorin 2012-01-10 10:47 ` Vladimir Karpinsky 2012-01-10 14:44 ` Michael Shigorin 2012-01-12 7:36 ` Michael Shigorin 2012-01-07 7:54 ` Vladimir Karpinsky 2012-01-07 11:26 ` Michael Shigorin 2012-01-07 7:55 ` Vladimir Karpinsky 2012-01-16 15:29 ` [Comm] mkimage: установка с нуля Vladimir Karpinsky 2012-02-17 15:43 ` Vladimir Karpinsky
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20120104203636.GI16304@osdn.org.ua \ --to=mike@osdn.org.ua \ --cc=community@lists.altlinux.org \ --cc=shigorin@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git