From: Sergey Vlasov <vsu@altlinux.ru> To: ALT Linux kernel packages development <devel-kernel@lists.altlinux.org> Subject: [d-kernel] kernel-build-tools macros update (Re: [devel] IA: incomiger rebuild) Date: Mon, 8 May 2006 21:11:35 +0400 Message-ID: <20060508171135.GA14745@procyon.home> (raw) In-Reply-To: <445E716E.6080409@altlinux.ru> [-- Attachment #1: Type: text/plain, Size: 2543 bytes --] On Mon, May 08, 2006 at 02:15:10AM +0400, Alexey Gladkov wrote: > Dmitry V. Levin wrote: > > А buildtime не учитывается? > > Нет. Если apt говорит что два пакета можно собрать, то робот их > собирает ... при этом на разных серверах параллельно. В таком случае в kernel-build-tools нужно будет внести следующие изменения: diff --git a/build/tools/SOURCES/kernel-macros b/build/tools/SOURCES/kernel-macros index 2b57b26..0054c29 100644 --- a/build/tools/SOURCES/kernel-macros +++ b/build/tools/SOURCES/kernel-macros @@ -14,9 +14,14 @@ #======================================= %_patch_list %nil %set_patch_list() %global _patch_list %* %add_patch_list() %global _patch_list %_patch_list %* -%get_patch_list() %_patch_list +%get_patch_list() %( \ + for p in %_patch_list; do \ + dep=`rpmquery --dbpath %_dbpath --qf '%%{NAME} >= %%|SERIAL?{%%{SERIAL}:}|%%{VERSION}-%%{RELEASE}' "$p" 2>/dev/null` || dep="$p" \ + echo -n " $dep " \ + done \ +) -%format_patch_list %(rpmquery --queryformat '\\n\\t%%{NAME}-%%{VERSION}-%%{RELEASE}' %get_patch_list) +%format_patch_list %(rpmquery --dbpath %_dbpath --qf '\\n\\t%%{NAME}-%%{VERSION}-%%{RELEASE}' %_patch_list) %_src_list %nil diff --git a/build/tools/kernel-build-tools.spec b/build/tools/kernel-build-tools.spec index db0d061..85e1c04 100644 --- a/build/tools/kernel-build-tools.spec +++ b/build/tools/kernel-build-tools.spec @@ -3,8 +3,8 @@ # $Id: kernel-build-tools.spec,v 1.6 200 ## Name: kernel-build-tools -Version: 0.8 -Release: alt2 +Version: 0.9 +Release: alt1 Summary: RPM macroses for kernel builds License: GPL @@ -38,6 +38,13 @@ mkdir -p %buildroot%_bindir %doc * %changelog +* Mon May 08 2006 Sergey Vlasov <vsu@altlinux.ru> 0.9-alt1 +- kernel-macros: + + %%get_patch_list: add package versions to the returned list (needed to get + correct BuildRequires for kernel packages); + + %%get_patch_list, %%format_patch_list: pass current %%_dbpath to rpmquery + to get correct results when using build scripts from kernel CVS. + * Sat Dec 03 2005 Sergey Vlasov <vsu@altlinux.ru> 0.8-alt2 - kernel-macros: fix by Dmitry V. Levin <ldv@altlinux>: + %%_src_list: quote %% to avoid unneeded macro expansion После этого пакеты kernel-image-* будут при сборке получать в src.rpm зависимость на пакеты с патчами с указанием минимальной версии и сборки, что предотвратит ошибочную пересборку этих src.rpm с использованием устаревших патчей. Есть какие-то замечания по этому поводу? [-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next parent reply other threads:[~2006-05-08 17:11 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-08 17:11 ` Sergey Vlasov [this message] 2006-05-10 9:33 ` [d-kernel] kernel-build-tools macros update Dmitry V. Levin 2006-05-10 9:41 ` Konstantin A. Lepikhov
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=20060508171135.GA14745@procyon.home \ --to=vsu@altlinux.ru \ --cc=devel-kernel@lists.altlinux.org \ /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 kernel packages development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \ devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com public-inbox-index devel-kernel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git