From: Немос <nemos-linux@yandex.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] I: pentium4 arch support in rpm
Date: Wed, 29 Sep 2004 20:48:15 +0400
Message-ID: <415AE74F.5050701@yandex.ru> (raw)
In-Reply-To: <20040928131850.GF20415@immo.ru>
[-- Attachment #1.1: Type: text/plain, Size: 697 bytes --]
Alexey I. Froloff пишет:
> * Aleksey Avdeev <solo@> [040928 17:12]:
>
>>>По результатам удачного тестирования можно будет начинать
>>>уговаривать ldv приложить этот патч, по результатам неудачного
>>>тестирования - аттачте патчи для патча ;-)
>>
>> А подобный патч для altonXP встречается?
>
> Сделайте "по мотивам". У меня нет athlonXP под рукой.
Попробовал, но не могу понять что я мог поломать своим патчем. При
попытке собрать rpm с помощью нового пропатченого(ваш + мой патч) rpm
выдает следующие в самом начале:
ошибка: line 47: Dependency tokens must not contain '%<=>' symbols:
BuildPreReq: python-devel = %__python_version
т. е. еще на этапе проверки спека.
Свой патч прилагаю.
[-- Attachment #1.2: add-athlonxp-support-to-rpm_with_pentium4_patch.patch --]
[-- Type: text/plain, Size: 5054 bytes --]
diff -urN rpm-4_0-4.0.4-orig/installplatform rpm-4_0-4.0.4/installplatform
--- rpm-4_0-4.0.4-orig/installplatform 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/installplatform 2004-09-29 19:40:14 +0400
@@ -35,7 +35,7 @@
ln -s ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${OS}
case "$arch" in
- i[3456]86|k6|athlon|pentium4) SUBSTS='s_\(i[3456]86\|k6\|athlon|pentium4\)_i386_ s_\(i[3456]86\|k6\|athlon|pentium4\)_i486_ s_\(i[3456]86\|k6\|athlon|pentium4\)_i586_ s_\(i[3456]86\|k6\|athlon|pentium4\)_i686_ s_\(i[3456]86\|k6\|athlon|pentium4\)_k6_ s_\(i[3456]86\|k6\|athlon|pentium4\)_athlon_ s_\(i[3456]86\|k6\|athlon|pentium4\)_pentium4_' ;;
+ i[3456]86|k6|athlon|athlonxp|pentium4) SUBSTS='s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_i386_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_i486_ s_\(i[3456]86\|k6\|athlonxp|athlon|pentium4\)_i586_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_i686_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_k6_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_athlon_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_athlonxp_ s_\(i[3456]86\|k6\|athlon|athlonxp|pentium4\)_pentium4_' ;;
alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
sparc*) SUBSTS='s_sparc\(64\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6]\|$\)_ppc64\1_' ;;
diff -urN rpm-4_0-4.0.4-orig/lib/rpmrc.c rpm-4_0-4.0.4/lib/rpmrc.c
--- rpm-4_0-4.0.4-orig/lib/rpmrc.c 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/lib/rpmrc.c 2004-09-29 20:17:19 +0400
@@ -1045,6 +1045,9 @@
close( fd );
if ( strstr( buffer, "AMD" ) ) {
+ if ( strstr( buffer, "Athlon(tm) XP" ) )
+ return "athlonxp";
+
if ( strstr( buffer, "Athlon" ) || strstr( buffer, "Duron" ) )
return "athlon";
diff -urN rpm-4_0-4.0.4-orig/macros.in rpm-4_0-4.0.4/macros.in
--- rpm-4_0-4.0.4-orig/macros.in 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/macros.in 2004-09-29 19:42:03 +0400
@@ -813,7 +813,7 @@
# conditionals.
#
%intel i386 i486 i586 i686 i786 i886 i986 pentium4
-%amd k6 athlon
+%amd k6 athlon athlonxp
%ix86 %intel %amd
#------------------------------------------------------------------------
diff -urN rpm-4_0-4.0.4-orig/Makefile.am rpm-4_0-4.0.4/Makefile.am
--- rpm-4_0-4.0.4-orig/Makefile.am 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/Makefile.am 2004-09-29 19:42:58 +0400
@@ -141,6 +141,7 @@
$(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i586 ;\
$(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i686 ;\
$(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/athlon ;\
+ $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/athlonxp ;\
$(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/pentium4 ;;\
alpha*) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/alpha ;\
$(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/alphaev6 ;;\
diff -urN rpm-4_0-4.0.4-orig/rpmrc.in rpm-4_0-4.0.4/rpmrc.in
--- rpm-4_0-4.0.4-orig/rpmrc.in 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/rpmrc.in 2004-09-29 20:18:03 +0400
@@ -17,6 +17,7 @@
optflags: i686 %optflags_default -march=i686
optflags: k6 %optflags_default -march=k6
optflags: athlon %optflags_default -march=athlon
+optflags: athlonxp %optflags_default -march=athlon-xp -mcpu=athlon-xp -msse -m3dnow -mmmx -mfpmath=sse
optflags: pentium4 %optflags_default -march=pentium4
optflags: ia64 %optflags_default
@@ -69,6 +70,7 @@
# Canonical arch names and numbers
arch_canon: pentium4: pentium4 1
+arch_canon: athlonxp: athlonxp 1
arch_canon: athlon: athlon 1
arch_canon: i686: i686 1
arch_canon: k6: k6 1
@@ -167,6 +169,7 @@
buildarchtranslate: ia64: ia64
buildarchtranslate: pentium4: pentium4
+buildarchtranslate: athlonxp: athlonxp
buildarchtranslate: athlon: athlon
buildarchtranslate: i686: i686
buildarchtranslate: k6: k6
@@ -214,6 +217,7 @@
arch_compat: alpha: axp noarch
arch_compat: pentium4: i686
+arch_compat: athlonxp: athlon
arch_compat: athlon: i686 k6
arch_compat: i686: i586
arch_compat: k6: i586
@@ -302,6 +306,7 @@
buildarch_compat: ia64: noarch
buildarch_compat: pentium4: i686
+buildarch_compat: athlonxp: athlon
buildarch_compat: athlon: i686 k6
buildarch_compat: i686: i586
buildarch_compat: k6: i586
diff -urN rpm-4_0-4.0.4-orig/rpm.spec.in rpm-4_0-4.0.4/rpm.spec.in
--- rpm-4_0-4.0.4-orig/rpm.spec.in 2004-09-29 20:03:06 +0400
+++ rpm-4_0-4.0.4/rpm.spec.in 2004-09-29 20:27:03 +0400
@@ -355,9 +355,10 @@
%attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpmpopt*
%attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpmrc
-%ifarch i386 i486 i586 i686 athlon pentium4
+%ifarch i386 i486 i586 i686 athlon athlonxp pentium4
%attr(-, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/i[3456]86*
%attr(-, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/athlon*
+%attr(-, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/athlonxp*
%attr(-, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/pentium4*
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2004-09-29 16:48 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-28 12:44 Alexey I. Froloff
2004-09-28 13:11 ` Aleksey Avdeev
2004-09-28 13:18 ` Alexey I. Froloff
2004-09-29 16:48 ` Немос [this message]
2004-09-29 18:25 ` Andrey Rahmatullin
2004-09-30 7:41 ` Немос
2004-09-30 7:51 ` Alexey I. Froloff
2004-09-30 14:57 ` Немос
2004-10-01 3:56 ` Alexey I. Froloff
2004-10-01 13:49 ` Немос
2004-10-01 14:09 ` Led
2004-10-01 14:50 ` Немос
2004-10-01 19:30 ` [sisyphus] Re: hasher Dmitry V. Levin
2004-10-01 14:11 ` [sisyphus] I: pentium4 arch support in rpm Alexey I. Froloff
2004-10-01 14:53 ` Немос
2004-10-02 11:08 ` Немос
2004-09-30 7:07 ` Alexei Takaseev
2004-10-01 20:14 ` [sisyphus] " Michael Shigorin
2004-10-04 4:06 ` Alexey I. Froloff
2004-10-06 13:12 ` Michael Shigorin
2004-09-28 13:50 ` [sisyphus] " Led
2004-09-28 14:12 ` Alexey I. Froloff
2004-09-28 14:22 ` Led
2004-09-28 14:47 ` Alexey I. Froloff
2004-09-28 17:11 ` [devel] " Alexey I. Froloff
2004-09-28 17:45 ` [sisyphus] Re: [devel] " Sergey
2004-09-29 7:16 ` Led
2004-09-29 9:23 ` Alexey I. Froloff
2004-10-04 11:47 ` Anton Farygin
2004-10-04 12:15 ` Led
2004-10-04 12:27 ` Anton Farygin
2004-10-04 12:33 ` Alexey I. Froloff
2004-10-04 12:47 ` Led
2004-10-04 15:04 ` Re[2]: " Volkov Serge
2004-10-06 13:11 ` Michael Shigorin
2004-10-06 13:24 ` Maxim Tyurin
2004-10-06 14:23 ` Michael Shigorin
2004-10-06 13:25 ` Mike Lykov
2004-10-06 14:27 ` [sisyphus] [JT] " Michael Shigorin
2004-10-06 14:53 ` Andrey Rahmatullin
2004-10-07 5:19 ` Guest007
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=415AE74F.5050701@yandex.ru \
--to=nemos-linux@yandex.ru \
--cc=sisyphus@altlinux.ru \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git