|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Dmitry Pryanishnikov 2:464/36 07 Sep 2004 23:45:48 To : All Subject : Re: portupgrade problem -------------------------------------------------------------------------------- This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1080830009-1094589008=:92986 Content-Type: TEXT/PLAIN; CHARSET=koi8-r; FORMAT=flowed Content-Transfer-Encoding: 8BIT Content-ID: <20040907233306.T92986@atlantis.atlantis.dp.ua> Привет! On Tue, 7 Sep 2004, Alexander Lunyov wrote: >> [Failed `Inappropriate file type or format'] [Updating the >> portsdb <format:bdb1_btree> in /usr/ports ... - 11736 port >> entries found >> .........1000.........2000.........3000.........4000.........5000 >> .........6000.........7000.........8000..../usr/local/lib/ruby/si >> te_ruby/1.8/portsdb.rb:587: [BUG] Bus Error ruby 1.8.2 >> (2004-07-29) [i386-freebsd5] > >> Аварийное завершение (core dumped) > > А может, это железо? Сборка мира проходит нормально? Уже несколько дней народ в freebsd-ports обсуждает (и я в том числе), проблема явно программная, на данный момент виновником считается AFAIK код bdb1 из libc. Есть обходной путь: построить INDEX при помощи portindex, а потом запустить portindexdb из того же порта для построения INDEX.db. Есть второй путь - сменить интерфейс работы ruby с базой данных: ---------------------------------------------------------------------------- Date: Tue, 7 Sep 2004 06:49:06 +0200 From: Michael Nottebrock <michaelnottebrock@gmx.net> To: freebsd-ports@freebsd.org Cc: Chris <racerx@makeworld.com>, Vulpes Velox <v.velox@vvelox.net>, Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> Subject: Re: portsdb and ruby bug on 4-STABLE On Monday 06 September 2004 19:58, Chris wrote: > > fix it using rm INDEX* and then rebuild the index using portindex and > > then rebuild the INDEX.db using portindexdb. Port upgrade now works > > again. I have not seen this problem on for X, but did once on > > 5.3beta3. > The fix you mention DOES work, however, once you cvsup, run portsdb -u, > its broken again. I have tested several ways around this over the last > 3 days. A better workaround is this: 1.) Install the databases/ruby-bdb port. 2.) Set an environment variable PORTS_DBDRIVER to bdb_btree (or bdb_hash) This will change the portsdb's database backend from the libc-builtin bdb1 to a later berkeley db (you can set which one via the WITH_BDB_VER switch in the ruby-bdb port). You can also change the driver for pkgdb by setting PKG_DBDRIVER. -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org ---------------------------------------------------------------------------- IMHO по-хорошему пусть правят bdb1 в libc или выкидывают его оттуда вообще, если там все запущено... Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE --0-1080830009-1094589008=:92986-- --- ifmail v.2.14.os-p7 * Origin: Atlantis ISP (2:464/36@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/245211dd2cdfa.html, оценка из 5, голосов 10
|