Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2015 19:46:58 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: Problems with building rescue are solved
Message-ID:  <alpine.BSF.2.20.1507071944230.639@mail.fig.ol.no>
In-Reply-To: <alpine.BSF.2.20.1507071929190.639@mail.fig.ol.no>
References:  <alpine.BSF.2.20.1507071929190.639@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 7 Jul 2015 19:37+0200, Trond Endrestøl wrote:

> Hi,
> 
> I guess both the instructions for enabling DTrace, 
> https://wiki.freebsd.org/DTrace/KernelSupport and r284356 are to 
> blame.
> 
> I suggest the wiki be amended with:
> 
> STRIP=:
> 
> or some other innocuous command like 'echo --'.

On second thoughts, maybe not. It causes new problems elsewhere in the 
source tree.

Maybe /etc/make.conf should state:

STRIP=

as suggested by the wiki, but /etc/src.conf or even /etc/src-env.conf 
should state:

STRIP=strip

> Otherwise, "$(STRIP) rescue" in 
> /usr/obj/usr/src/rescue/rescue/rescue.mk will expand to simply
> " rescue", and thus halting make buildworld by trying to run a command 
> not normally found in $(PATH).
> 
> "make -C /usr/src/rescue/rescue -d e" came to the rescue, hah!

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-current@freebsd.org  Tue Jul  7 18:28:01 2015
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 238D8994301
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Tue,  7 Jul 2015 18:28:01 +0000 (UTC)
 (envelope-from baptiste.daroussin@gmail.com)
Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:5])
 by mx1.freebsd.org (Postfix) with ESMTP id EDE241A88
 for <freebsd-current@freebsd.org>; Tue,  7 Jul 2015 18:28:00 +0000 (UTC)
 (envelope-from baptiste.daroussin@gmail.com)
Received: by mailman.ysv.freebsd.org (Postfix)
 id E7C8E9942FC; Tue,  7 Jul 2015 18:28:00 +0000 (UTC)
Delivered-To: current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5EA19942FB;
 Tue,  7 Jul 2015 18:28:00 +0000 (UTC)
 (envelope-from baptiste.daroussin@gmail.com)
Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com
 [IPv6:2a00:1450:400c:c00::233])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 7E9AD1A86;
 Tue,  7 Jul 2015 18:28:00 +0000 (UTC)
 (envelope-from baptiste.daroussin@gmail.com)
Received: by wgbgr6 with SMTP id gr6so21606815wgb.3;
 Tue, 07 Jul 2015 11:27:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-type:content-disposition:in-reply-to:user-agent;
 bh=o4dwIIb9SDBDklF2B8qI4dpsCKgk9fdQPwnjH0eYE1s=;
 b=Gjl0Xqe9rI7Nprgfxr0KwTSWVi/0w8GOd7UjsJ7KjDVyygbyuZlJeTvqB8EgGKjq5O
 JSvy1pGVvWo1F+tuHZHoyDfOwTTj19/J/dibdgBE5u1ar+mxRSQEv6QmMEHQSsWK4W8p
 KqcbHKLf96d6DJkSQ99kMwdVNa8ArzJSC3y24jdVrLlgi1MyGLrnVzHGiTwyCEkVSZrk
 UbaAiAAopj2JaQCBLE6LfaoPuzxvIlmoluDboVKuf+gs1CeifdZiiKlz5SV+h7NlXbb8
 xiZ2wvxw+ta0ucHszKmk/JqhT6PEr0pT8Jd6N/jahS+t375b6a+VwomtZdnVwk6CAEqg
 lwDw==
X-Received: by 10.180.73.145 with SMTP id l17mr68151456wiv.39.1436293677835;
 Tue, 07 Jul 2015 11:27:57 -0700 (PDT)
Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1])
 by mx.google.com with ESMTPSA id pl1sm53748193wic.6.2015.07.07.11.27.55
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 07 Jul 2015 11:27:56 -0700 (PDT)
Sender: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Date: Tue, 7 Jul 2015 20:27:53 +0200
From: Baptiste Daroussin <bapt@freebsd.org>
To: Ulrich =?iso-8859-1?Q?Sp=F6rlein?= <uspoerlein@gmail.com>
Cc: ports@freebsd.org, stable@freebsd.org, current@freebsd.org
Subject: Re: pkg 1.5.0 is out
Message-ID: <20150707182753.GA35285@ivaldir.etoilebsd.net>
References: <20150414200459.GE39658@ivaldir.etoilebsd.net>
 <20150421103454.GR1394@zxy.spb.ru> <5593D0AE.2010205@selasky.org>
 <20150701113847.GA15161@ivaldir.etoilebsd.net>
 <CAJ9axoSGv1GKFX6pRdSSktJy8QxJ-cuLExQb__sPvOiY9EADYQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP"
Content-Disposition: inline
In-Reply-To: <CAJ9axoSGv1GKFX6pRdSSktJy8QxJ-cuLExQb__sPvOiY9EADYQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Jul 2015 18:28:01 -0000


--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 07, 2015 at 07:38:18PM +0200, Ulrich Sp=F6rlein wrote:
> 2015-07-01 13:38 GMT+02:00 Baptiste Daroussin <bapt@freebsd.org>:
> >
> > On Wed, Jul 01, 2015 at 01:36:14PM +0200, Hans Petter Selasky wrote:
> > > On 04/21/15 12:34, Slawa Olhovchenkov wrote:
> > > > On Tue, Apr 14, 2015 at 10:05:00PM +0200, Baptiste Daroussin wrote:
> > > >
> > > >> Hi all,
> > > >>
> > > >> Final pkg 1.5.0 has been released.
> > > >
> > >
> > > Hi,
> > >
> > > Is there a way the external SAT solver functionality can be memory
> > > optimised? When trying to use this feature having +750 packages
> > > installed, the memory usage starts growing and growing beyond 4GBytes
> > > until PKG segfaults, even before the CNF export has started.
> > >
> > > env SAT_SOLVER=3Dmysolver pkg upgrade
> >
> > Probably, but given the little amount of time pkg developers has we wil=
l greatly
> > appreciate patches :)
> >
> > AKA this would be greatly appreciated, but very low on the priority lis=
t :(
> >
> > Best regards,
> > Bapt
>=20
>=20
> Hijacking this, I managed to mess up my local pkg repo somehow.
>=20
> I build my own set of packages, and typically do pkg upgrade on the
> clients. This time, I tried pkg upgrade -F, which went and downloaded
> everything and that's fine. But now when I run "pkg upgrade" it claims
> everything is already updated?
>=20
> root@coyote:~# pkg --version
> 1.5.4
> root@coyote:~# pkg upgrade
> Updating acme repository catalogue...
> acme repository is up-to-date.
> All repositories are up-to-date.
> Checking for upgrades (68 candidates): 100%
> Processing candidates (68 candidates): 100%
> Checking integrity... done (0 conflicting)
> Your packages are up to date.
>=20
>=20
> So let's try brute forcing this:
>=20
> root@coyote:~# pkg install `pkg info -aqo`
> Updating acme repository catalogue...
> acme repository is up-to-date.
> All repositories are up-to-date.
> databases/db48 has no direct installation candidates, change it to db5? [=
Y/n]: Y
> Assertion failed: (0), function pkg_jobs_try_remote_candidate, file
> pkg_jobs.c, line 821.
> Child process pid=3D60776 terminated abnormally: Abort trap
> Exit 250
>=20
>=20
> Using more force:
>=20
> root@coyote:~# pkg upgrade -f db48
> Updating acme repository catalogue...
> acme repository is up-to-date.
> All repositories are up-to-date.
> db48 has no direct installation candidates, change it to db5? [Y/n]: y
> pkg: sqlite error while executing UPDATE packages SET name=3D?1  WHERE
> name=3D?2; in file pkg_jobs.c:1658: UNIQUE constraint failed:
> packages.name
> The following 1 package(s) will be affected (of 0 checked):
>=20
> Installed packages to be UPGRADED:
>         db5: 4.8.30.0_2 -> 5.3.28_2
>=20
> The process will require 37 MiB more space.
> 12 MiB to be downloaded.
>=20
> Proceed with this action? [y/N]: y
> Fetching db5-5.3.28_2.txz: 100%   12 MiB   6.4MB/s    00:02
> Checking integrity...Assertion failed: (strcmp(uid, p->uid) !=3D 0),
> function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c,
> line 368.
> Child process pid=3D60922 terminated abnormally: Abort trap
> Exit 250
>=20
> the -debug output has nothing of interest that I can see.
>=20
> What's up?

Please open a ticket with this and save your /var/db/pkg/* somewhere so we =
can
analyze (and send them to me or host them in a place when I can fetch them)

in the meantime what you should do is pkg upgrade -f (lower f) and say no to
everything that ask you to switch candidates

Best regards,
Bapt

--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlWcGikACgkQ8kTtMUmk6ExpkACgl8xi0jFNGMbcwMsp8KXdqBM2
yG8AoJaV+5CwBNsCBuoTbWRdydfSflj1
=+9VQ
-----END PGP SIGNATURE-----

--5mCyUwZo2JvN/JJP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1507071944230.639>