From nobody Thu Jan 05 10:39:01 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NnjdF65N3z2p7pJ for ; Thu, 5 Jan 2023 10:39:13 +0000 (UTC) (envelope-from eduardo@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NnjdF5b7Jz3MX6; Thu, 5 Jan 2023 10:39:13 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672915153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JFyb1FvsXAT7X1qA6zKQzm4ZXlwd4JpxoZjrhXvE+30=; b=WX1hs8vWVhPnhj/eqJKxGP1vXGtRWLrQhGgtxEBI39JGGBgE6JkL/jj1A5QoY8ijhsPbfh oeRqV0pf17G77WZfgjN/TP2GGqRjlwkiwW0lfY9Ij82CagpMSsXAX8bxN4zco9DzB6BPzG 7hRvb2mQhIKLZ+G/DKqXPQ0SYKTTKVI23m2GbiuhM8GrV7inCz+CIxdcnbBkWRt3Y6M+y7 O5FYQuADbuum4dYBd9L4pQXnWd2fk0pJOKfPFc2qn3hptiWR6OzsA9S7m3uqHIqKlihpXi 1epE73Klu2j2x5/8gg5IAczLp6B8zQNM8qkd+H3tbSvTddD+rJfemTvfoc2SgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672915153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JFyb1FvsXAT7X1qA6zKQzm4ZXlwd4JpxoZjrhXvE+30=; b=cG/RxXJ7CrMbezYsgp6AvnxbWx3JKMlH2k6N+nume81B8IP2ppeX8g4rKt3S+1lOzVR5D8 2bxjMK2BT7EAyyGsZ4B0RCGfLVWF8Iku1XgUg1zwGaFX4vFOIYaojYJp+YAvNiA+PeZgs1 rCr1gMwQQTRWpkDUz9xM0D5C8vtaYStfldwcJw3fc6fM+ACN8jEaqlBnCrPzYiKHANr09f uP9VkCVLaLm1jZbcdBPdJbrVjYy26tV9peN7h/Of8RUWt3mgnFIq7GZbkYupJ8SyCIYSqI +aTaYn3UCbWbivTPEJcgQrmDzitc4pjyLSjrxMNWvfidByFQxXFifz2NjYDDSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672915153; a=rsa-sha256; cv=none; b=IwVJEXJRlzKUXuZT5F5EtSFFpLCxQ9GQug9S9XYc5iOIEJ3AjZ6/HlIsuvDvFR0KM5+lHs eZGQFs9u6sf5+vIh0kXNy6tNiKTwn4AKmNzWd28CoeHt5KFAp5BuMepnQU2JyWPvPP5QaT ETp+M3O6LWmSFt6AYOUx45nsChjDQRP5P8ls4TnzKRwIY7DqAZ8n6DwjZQXWBzWZJrXl7F BmZtNiHJlDYbaJ/L2cOLgBcChCu+MdS4HMY5saqpUzn+th16gqgxT80K7HKXz4fIvaBHDH VpxiuuSS+FHJLOq0WPF8f1DeLDSa+KKua+ot2fsIdY6dbh7pDE8rBzJXNu99Zw== Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NnjdF4Xpxzg9L; Thu, 5 Jan 2023 10:39:13 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f49.google.com with SMTP id 3so37638744vsq.7; Thu, 05 Jan 2023 02:39:13 -0800 (PST) X-Gm-Message-State: AFqh2kqW4g21w7yliXgUeON+mOxntd12RUkRvH3LlYeesbrkERxFALsO SW9W6ZQSlz0powOKNuBNoHw7Z2NJJ4T854MdlOY= X-Google-Smtp-Source: AMrXdXu+fJNnWIIqL45liyhBZYM9N+Nwj/CAhPiH9R5f57rt8DqfzJmurHMsGk3TnIyiZXTF9K5DrdHacHH7r9AyNvA= X-Received: by 2002:a05:6102:3d82:b0:3cb:88c6:293b with SMTP id h2-20020a0561023d8200b003cb88c6293bmr2962988vsv.53.1672915153196; Thu, 05 Jan 2023 02:39:13 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <488ef591-44b9-d15e-84c7-4c286d3ce254@tsoft.com> In-Reply-To: From: Nuno Teixeira Date: Thu, 5 Jan 2023 10:39:01 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: PortsDB: a program that imports the ports tree into an SQLite database To: Yuri Cc: ports@freebsd.org Content-Type: multipart/alternative; boundary="0000000000007222a005f181e9a8" X-ThisMailContainsUnwantedMimeParts: N --0000000000007222a005f181e9a8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) And reading a sqlite book to learn how to use it :) Nuno Teixeira escreveu no dia quinta, 5/01/2023 =C3= =A0(s) 10:36: > Thanks! It,s importing now. > > Yuri escreveu no dia quinta, 5/01/2023 =C3=A0(s) 10:31= : > >> Hi Nino, >> >> On 1/5/23 01:50, Nuno Teixeira wrote: >> > >> > /etc/make.conf: >> > PORTSDIR=3D/work/freebsd/ports/main >> > >> > `portsdb-import`: >> > error: the PORTSDIR environment variable should point to a valid ports >> > tree >> > Usage: /usr/local/bin/portsdb-import >> [{sync|async}] >> > >> > Any clues? >> >> >> /etc/make/conf doesn't set environment variables. It sets make variables= . >> >> >> You should run: >> >> $ PORTSDIR=3D/work/freebsd/ports/main portsdb-import >> >> >> Best, >> >> Yuri >> >> >> > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000007222a005f181e9a8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

And reading a sqlite b= ook to learn how to use it :)

Nuno Teixeira <eduardo@freebsd.org> escreveu no dia quinta, 5/= 01/2023 =C3=A0(s) 10:36:
Thanks! It,s importing now.

Yuri <yuri@freebsd.org> esc= reveu no dia quinta, 5/01/2023 =C3=A0(s) 10:31:
Hi Nino,

On 1/5/23 01:50, Nuno Teixeira wrote:
>
> /etc/make.conf:
> PORTSDIR=3D/work/freebsd/ports/main
>
> `portsdb-import`:
> error: the PORTSDIR environment variable should point to a valid ports=
> tree
> Usage: /usr/local/bin/portsdb-import <db.sqlite> <file.sql>= ; [{sync|async}]
>
> Any clues?


/etc/make/conf doesn't set environment variables. It sets make variable= s.


You should run:

$ PORTSDIR=3D/work/freebsd/ports/main portsdb-import


Best,

Yuri




--
Nuno Teixeira
FreeBSD Co= mmitter (ports)


--
Nun= o Teixeira
FreeBSD Committer (ports)
--0000000000007222a005f181e9a8--