From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] gcc-4.3.2-alt1
Date: Wed, 22 Oct 2008 09:39:53 +0400
Message-ID: <20081022053953.GJ13856@altlinux.org> (raw)
In-Reply-To: <20081020200352.GA11897@wo.int.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]
On Tue, Oct 21, 2008 at 12:03:52AM +0400, Dmitry V. Levin wrote:
> > По hsh-install gcc-c++ в чрут почему-то ставиться gcc4.1-c++, а не
> > gcc4.3-c++. Это у меня локальные проблемы или так и задумано?
>
> Это потому, что в hasher repo уже есть свой gcc4.3-c++.
Я собрал у себя локально в hasher repo пакеты binutils и gcc4.3
(и пока ещё не синхронизировал сизиф с новым тулчейном).
Получается такая бяка, что у всех пакетов gcc4.x-c++ одинаковый score,
равный нулю. К тому же qsort, в таком случае, может переупорядочить
пакеты. Хотя вроде бы не переупорядочивает. Вероятно, дело в том,
что в glibc реализация qsort на коротких последовательностях делает
mergesort. А mergesort является стабильным. Вот на каких соплях
иногда всё висит!
--- apt-get.cc- 2008-10-21 03:29:54 +0000
+++ apt-get.cc 2008-10-22 05:33:34 +0000
@@ -1251,8 +1251,15 @@ bool TryToInstall(pkgCache::PkgIterator
for (pkgCache::PrvIterator Prv = Pkg.ProvidesList(); Prv.end() == false; Prv++)
*PEnd++ = Prv.OwnerPkg();
Fix.MakeScores();
+ for (unsigned int p=0; p<Size; ++p) {
+ pkgCache::PkgIterator PrvPkg = pkgCache::PkgIterator(*Pkg.Cache(), PList[p]);
+ fprintf(stderr, "%d %s %d\n", p, PrvPkg.Name(), Fix.Scores[PrvPkg->ID]);
+ }
qsort(PList,PEnd - PList,sizeof(*PList),&(Fix.ScoreSort));
-
+ for (unsigned int p=0; p<Size; ++p) {
+ pkgCache::PkgIterator PrvPkg = pkgCache::PkgIterator(*Pkg.Cache(), PList[p]);
+ fprintf(stderr, "%d %s %d\n", p, PrvPkg.Name(), Fix.Scores[PrvPkg->ID]);
+ }
for (unsigned int p=0; p<Size; ++p)
{
bool instVirtual = _config->FindB("APT::Install::Virtual", false);
apt-0.5.15lorg2/cmdline $ PATH=$PWD:$PATH ~tmp/build/aptbox/apt-get --dry-run install gcc-c++
...
0 gcc4.1-c++ 0
1 gcc3.4-c++ 0
2 gcc4.3-c++ 0
0 gcc4.1-c++ 0
1 gcc3.4-c++ 0
2 gcc4.3-c++ 0
Selecting gcc4.1-c++ for 'gcc-c++'
...
apt-0.5.15lorg2/cmdline $
> Чтобы этот глюк apt'а преодолеть, достаточно добавить
> gcc4.3-c++
> в секцию Standard файла /etc/apt/pkgpriorities (или его локального
> аналога, определённого с помощью Dir::Etc::pkgpriorities).
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-10-22 5:39 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 21:30 Dmitry V. Levin
2008-10-17 11:23 ` Wartan Hachaturow
2008-10-17 11:31 ` Dmitry V. Levin
2008-10-17 11:50 ` Wartan Hachaturow
2008-10-17 12:15 ` Kirill A. Shutemov
2008-10-17 12:49 ` Dmitry V. Levin
2008-10-17 13:57 ` Wartan Hachaturow
2008-10-17 14:13 ` Dmitry V. Levin
2008-10-18 12:11 ` Wartan Hachaturow
2008-10-18 12:17 ` Dmitry V. Levin
2008-10-18 15:18 ` wartan.hachaturow
2008-10-18 15:32 ` Anton Farygin
2008-10-17 12:14 ` Kirill A. Shutemov
2008-10-17 12:49 ` Dmitry V. Levin
2008-10-17 13:44 ` Kirill A. Shutemov
2008-10-17 14:09 ` Dmitry V. Levin
2008-10-17 18:30 ` Kirill A. Shutemov
2008-10-17 18:56 ` Kirill A. Shutemov
2008-10-20 1:20 ` [devel] glibc-2.8.90-alt1 Dmitry V. Levin
2008-10-20 7:29 ` Kirill A. Shutemov
2008-10-20 9:04 ` Kirill A. Shutemov
2008-10-20 9:07 ` Dmitry V. Levin
2008-10-21 12:17 ` Kirill A. Shutemov
2008-10-21 12:45 ` Dmitry V. Levin
2008-10-21 12:51 ` Kirill A. Shutemov
2008-10-21 13:46 ` Sergey Vlasov
2008-10-21 14:21 ` Kirill A. Shutemov
2008-10-26 17:23 ` Igor Zubkov
2008-10-20 9:03 ` [devel] gcc-4.3.2-alt1 Kirill A. Shutemov
2008-10-20 15:28 ` Dmitry V. Levin
2008-10-20 11:46 ` Kirill A. Shutemov
2008-10-20 15:14 ` Dmitry V. Levin
2008-10-20 20:03 ` Dmitry V. Levin
2008-10-22 5:39 ` Alexey Tourbin [this message]
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=20081022053953.GJ13856@altlinux.org \
--to=at@altlinux.ru \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git