From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Date: Tue, 26 Feb 2008 19:50:59 +0300 From: Sergey Vlasov To: devel@lists.altlinux.org Message-ID: <20080226165059.GD30111@newmaster.mivlgu.local> Mail-Followup-To: devel@lists.altlinux.org References: <20080225193323.GA23695@wo.int.altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3Pql8miugIZX0722" Content-Disposition: inline In-Reply-To: <20080225193323.GA23695@wo.int.altlinux.org> Subject: Re: [devel] I: kernel-build-scripts X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 16:51:09 -0000 Archived-At: List-Archive: List-Post: --3Pql8miugIZX0722 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 25, 2008 at 10:33:23PM +0300, Dmitry V. Levin wrote: > - =E9=D3=D0=CF=CC=D8=DA=D5=C5=CD=D9=CA =C4=CC=D1 =D3=C2=CF=D2=CB=C9 =CD= =CF=C4=D5=CC=C5=CA add_changelog =C4=CF=CC=D6=C5=CE =C2=D9=D4=D8 =D0=D2=CF= =D0=C1=D4=DE=C5=CE. =F0=C1=D4=DE=C5=CE=D9=CA add_changelog =CE=C5=CF=C2=C8=CF=C4=C9=CD =D4=CF= =CC=D8=CB=CF =D7 =DE=C1=D3=D4=CE=CF=CD =D3=CC=D5=DE=C1=C5 - =CB=CF=C7=C4=C1 =C6=CF=D2=CD=C9=D2=D5=C0=D4=D3=D1 =D0=C1=CB=C5=D4=D9 =C4=CC=D1 =C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=D8=DB=C5 =CE=C9=CB=D4=CF =CE=C5 =CE=C1=CA=C4=A3=D4. > 2vsu: =EE=C5=CF=C2=C8=CF=C4=C9=CD=CF =DA=C1=CB=CF=CD=CD=C9=D4=C9=D4=D8. =F0=C1=D4=DE =D4=C1=CD =D3=CC=C5=C4=D5=C0=DD=C5=C7=CF =D7=C9=C4=C1: 1. =E9=DA=CD=C5=CE=C5=CE=C9=C5 =CF=C2=D2=C1=C2=CF=D4=CB=C9 =CF=D0=C3=C9=C9 = -a|--args =D7 stamp_spec: --- /usr/bin/stamp_spec 2007-12-27 12:17:30 +0300 +++ /home/vsu/bin/stamp_spec 2008-01-14 22:32:52 +0300 @@ -89,7 +89,7 @@ qf=3D"* $d $p $n\n" fi =20 -[ -n "$RPMARG" ] || RPMARG=3D"-q --qf $(Quote "$qf")" +RPMARG=3D"$RPMARG -q --qf $(Quote "$qf")" for spec in "$@"; do eval "$(Quote "$RPM")" $RPMARG --specfile "$(Quote "$spec")" |head -1 done =F4.=C5., =D2=C1=CE=D8=DB=C5 =CF=D0=C3=C9=D1 -a =D0=CF=CC=CE=CF=D3=D4=D8=C0= =DA=C1=CD=C5=CE=D1=CC=C1 =D7=D3=C5 =D0=C1=D2=C1=CD=C5=D4=D2=D9, =D0=C5=D2= =C5=C4=C1=D7=C1=C5=CD=D9=C5 rpm; =D0=CF=D3=CC=C5 =DC=D4=CF=C7=CF =C9=DA=CD=C5=CE=C5=CE=C9=D1 =D0=C5=D2= =C5=C4=C1=CE=CE=D9=C5 =D0=C1=D2=C1=CD=C5=D4=D2=D9 =C4=CF=C2=C1=D7=CC=D1=C0= =D4=D3=D1 =CB =D4=C5=CD, =CB=CF=D4=CF=D2=D9=C5 =D3=C6=CF=D2=CD=C9=D2=CF=D7=C1=CC =D3=CB=D2=C9=D0=D4 = stamp_spec. =E4=CF=D0=D5=D3=D4=C9=CD=CF =CC=C9 =D0=CF=C4=CF=C2=CE=CF=C5 =C9=DA=CD=C5=CE=C5=CE=C9=C5, =C9=CC=C9 =D0=D2=C9=C4=A3=D4=D3=D1 =DA=C1=D7= =C5=D3=D4=C9 =C4=CF=D0=CF=CC=CE=C9=D4=C5=CC=D8=CE=D5=C0 =CF=D0=C3=C9=C0? (= =F7 =D4=C5=CB=D5=DD=C5=CD =D7=C1=D2=C9=C1=CE=D4=C5 =CF=D0=C3=C9=D1 -a =C6=C1=CB=D4=C9=DE=C5=D3=CB=C9 = =C2=C5=D3=D0=CF=CC=C5=DA=CE=C1, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =D3=CB=D2=C9=D0= =D4 stamp_spec =D7 =DC=D4=CF=CD =D3=CC=D5=DE=C1=C5 =C6=C1=CB=D4=C9=DE=C5=D3=CB=C9 =D3=D7=CF=C4= =C9=D4=D3=D1 =CB =D7=D9=DA=CF=D7=D5 rpm =D3 =D5=CB=C1=DA=C1=CE=CE=D9=CD=C9 = =D0=C1=D2=C1=CD=C5=D4=D2=C1=CD=C9 =D3 =C4=CF=C2=C1=D7=CC=C5=CE=C9=C5=CD --specfile.) 2. =E4=CF=C2=C1=D7=CC=C5=CE=C9=C5 --define '_allow_undefined_macros 1' =D7 = =D0=C1=D2=C1=CD=C5=D4=D2=D9 =D7=D9=DA=CF=D7=CF=D7 rpm, =D7=D9=D0=CF=CC=CE=D1=C5=CD=D9=C8 =D3=CB=D2=C9=D0=D4=CF=CD add_changel= og: --- /usr/bin/add_changelog 2007-12-27 12:17:30 +0300 +++ /home/vsu/bin/add_changelog 2008-01-14 22:37:30 +0300 @@ -21,9 +21,9 @@ =20 PROG=3D"${0##*/}" =20 -STAMPER=3D/usr/bin/stamp_spec +STAMPER=3D/home/vsu/bin/stamp_spec RPM=3D/bin/rpm -RPMARG=3D +RPMARG=3D"--define '_allow_undefined_macros 1'" ENTRY=3D'- ' NOCHECK=3D =20 @@ -105,8 +105,8 @@ continue fi if [ -z "$NOCHECK" ]; then - oldver=3D`$RPM -q --qf '%{CHANGELOGNAME}\n' --specfile "$spec" |sed -ne = '/^(none)$/q;s/[^<]\+<[^>]\+> *\(.\+\)$/\1/pg'` - newver=3D`$RPM -q --qf '%|SERIAL?{%{SERIAL}:}|%{VERSION}-%{RELEASE}\n' -= -specfile "$spec" |head -1` + oldver=3D`$RPM --define '_allow_undefined_macros 1' -q --qf '%{CHANGELOG= NAME}\n' --specfile "$spec" |sed -ne '/^(none)$/q;s/[^<]\+<[^>]\+> *\(.\+\)= $/\1/pg'` + newver=3D`$RPM --define '_allow_undefined_macros 1' -q --qf '%|SERIAL?{%= {SERIAL}:}|%{VERSION}-%{RELEASE}\n' --specfile "$spec" |head -1` if [ "$oldver" =3D "$newver" ]; then echo "$PROG: $spec: version \"$oldver\" unchanged, skipping" exitcode=3D1 =F7 =D0=D2=C9=CE=C3=C9=D0=C5 =CD=CF=D6=CE=CF =D0=C5=D2=C5=C4=C5=CC=C1=D4=D8= =DC=D4=CF=D4 =D3=CB=D2=C9=D0=D4, =DE=D4=CF=C2=D9 =DA=CE=C1=DE=C5=CE=C9=C5 = $RPMARG =CE=C5 =D4=CF=CC=D8=CB=CF =D0=C5=D2=C5=C4=C1=D7=C1=CC=CF=D3=D8 =D7 stamp_spec, =CE= =CF =C9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CC=CF=D3=D8 =D0=D2=C9 =D7=D9=DA=CF= =D7=C1=C8 rpm =C9=DA =D3=C1=CD=CF=C7=CF =D3=CB=D2=C9=D0=D4=C1 add_changelog; =D4=CF=C7=C4= =C1 =CD=CF=D6=CE=CF =C2=D5=C4=C5=D4 =CE=C5 =CD=C5=CE=D1=D4=D8 =DA=CE=C1=DE= =C5=CE=C9=C5 =D0=CF =D5=CD=CF=CC=DE=C1=CE=C9=C0, =C1 =D0=D2=CF=D3=D4=CF =D0=D2=C9 =D7=D9= =DA=CF=D7=C5 add_changelog =C9=DA buildmodules =D0=C5=D2=C5=C4=C1=D7=C1=D4=D8 =CF=D0=C3=C9=C0 -a "--define '_allow_undefin= ed_macros 1'". =F7=CF=DA=CD=CF=D6=CE=CF, =D4=C1=CB =C9 =D3=D4=CF=C9=D4 =D3=C4=C5=CC=C1=D4=D8, =C1 =D0=CF =D5=CD=CF= =CC=DE=C1=CE=C9=C0 =CF=D3=D4=C1=D7=C9=D4=D8 =D7=D9=C4=C1=DE=D5 =CF=DB=C9=C2= =CF=CB =D0=D2=C9 =CF=C2=CE=C1=D2=D5=D6=C5=CE=C9=C9 =CE=C5=CF=D0=D2=C5=C4=C5=CC=A3=CE=CE=D9= =C8 =CD=C1=CB=D2=CF=D3=CF=D7? --3Pql8miugIZX0722 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHxENzW82GfkQfsqIRAm93AJ4v4PEO3vqlggyhzjnzY8VMvKzOhgCeNUDF OWa93lqdT/m3b2CA3BvrITw= =W+27 -----END PGP SIGNATURE----- --3Pql8miugIZX0722--