From owner-freebsd-ports@freebsd.org Wed Mar 18 14:50:32 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C90D526217E for ; Wed, 18 Mar 2020 14:50:32 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48jCdN2R0sz4B0T; Wed, 18 Mar 2020 14:50:31 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-449.fritz.box (p200300CD5F0A2E0011EDD2865C324243.dip0.t-ipconnect.de [IPv6:2003:cd:5f0a:2e00:11ed:d286:5c32:4243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 2A464BF51; Wed, 18 Mar 2020 14:50:31 +0000 (UTC) (envelope-from se@freebsd.org) Subject: Re: pkg: how to retrieve the messages ports emit after install? To: portmaster@BSDforge.com, freebsd-ports@freebsd.org References: <7cc5cc192d41c4f5d49c091fed9a55ba@udns.ultimatedns.net> From: =?UTF-8?Q?Stefan_E=c3=9fer?= Message-ID: Date: Wed, 18 Mar 2020 15:50:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <7cc5cc192d41c4f5d49c091fed9a55ba@udns.ultimatedns.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 14:50:32 -0000 Am 18.03.20 um 15:18 schrieb Chris: > On Wed, 18 Mar 2020 08:27:29 +0000 Bob Eager rde@tavi.co.uk said > >> On Tue, 17 Mar 2020 23:28:49 -0700 >> Chris wrote: >> >> > OK I'm a by ports make install as a rule. But I needed to >> > spin up a box quickly, and decided to use pkg(8). xorg, >> > and another port (package) I installed, dumped some >> > important information after the install. I stripped the >> > text from the console/terminal, and tried to paste it into >> > a fresh file. But the new graphics drivers don't allow >> > that sort of thing (graphics vs text mode). So I was left >> > with mostly gibberish. I need to get that information back. >> > I just guessed that pkg message might do it. >> > But no joy. How can I retrieve that information? >> >> Simple! >> >>  pkg info -D pkgname >> >> (or pkg info --pkg-message pkgname) > --pkg-message, argh... I was *so* close! > Thanks, Bob. Really appreciated! > and for the record. I *did* read the man page. But as others > were also inclined to suggest; I thought the output would be > related to *query* I do actually prefer the version I suggested based on pkg query, since I find it quite hard to see message boundaries in the pkg info output. With pkg query you can introduce any kind of separators (even multi-line) in the format string (and also print the origin and other information along with the message). Regards, STefan