From nobody Wed Sep 10 19:35:11 2025 X-Original-To: current@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 4cMWFP4MHJz66m0n for ; Wed, 10 Sep 2025 19:38:17 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (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 (2048 bits) client-digest SHA256) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cMWFP1b2Wz3q95; Wed, 10 Sep 2025 19:38:17 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Authentication-Results: mx1.freebsd.org; none Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.18.1/8.18.1) with ESMTPS id 58AJZBKW005496 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 10 Sep 2025 12:35:12 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.18.1/8.18.1/Submit) id 58AJZB0n005495; Wed, 10 Sep 2025 12:35:11 -0700 (PDT) (envelope-from warlock) Date: Wed, 10 Sep 2025 12:35:11 -0700 From: John Kennedy To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Cc: Ian Freislich , Kyle Evans , "Patrick M. Hausen" , FreeBSD Current Subject: Re: pkg-static: Warning: Major OS version upgrade detected. Message-ID: References: <6dedf742-48bf-4b67-9993-67933104ba67@gmail.com> <7C4AA985-2F06-4580-93C8-374A75EC4965@hausen.com> <86v7lqigv6.fsf@ltc.des.dev> <199341111f0.28c3.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com> <86qzweib6y.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86qzweib6y.fsf@ltc.des.dev> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14061, ipnet:107.170.192.0/18, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cMWFP1b2Wz3q95 On Wed, Sep 10, 2025 at 05:23:01PM +0200, Dag-Erling Smørgrav wrote: > Ian Freislich writes: > > Thanks, I don't use binary packages and always compile ports so this > > trick will silence pkg. Is there a way to tell pkg that it's local > > only, ie. just for locally compiled ports? > > You can disable the default repositories by adding the following to a > file in /usr/local/etc/pkg/repos (these four lines cover 14, 15, and 16 > with or without pkgbase): > > FreeBSD: { enabled: false } > FreeBSD-base: { enabled: false } > FreeBSD-ports: { enabled: false } > FreeBSD-ports-kmods: { enabled: false } > > If pkg complains about not having any repositories, you can define a > local one: > > local: { url: "file:///usr/ports/packages/All", mirror_type: "none", enabled: true } > > then run `pkg repo /usr/ports/packages/All` after portupgrade or > whatever it is you use to rebuild your packages. But I really recommend > using poudriere instead. Just to 2nd what DAG said, I disable the stock repos like he said and just have a: [cat /usr/local/etc/pkg/repos/local.conf] local: { url: "file:///usr/local/poudriere/data/packages/16-master/", mirror_type: NONE, enabled: yes } In my case, "master" being my "ports" name (the branch I cloned from git) and 16 being the jail name (tracking the OS major version). The initial bootstrap might be an annoying without FreeBSD ports being available, which is when you can (hopefully) kludge with some of the previous version's packages.