From nobody Mon Jun 10 11:58:03 2024 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 4VyVgX5JsSz5LWWj for ; Mon, 10 Jun 2024 11:58:16 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VyVgX0dYWz4NgL; Mon, 10 Jun 2024 11:58:15 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 45ABw4Vf057066; Mon, 10 Jun 2024 20:58:04 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1718020684; bh=K+3Qrnqvhg2aIQ6btAO55o7HPYamHG3fSegCFtXSMFs=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=dXoXLdJY5ZO14pXQqC/Gu6A44w969RTLtF4J3C2Z2D7iGiKXgI8Bt0tZrUXUR3ZCO +G8miB/aK9isZM8k09rtUM0SG74wn7pE/gqrFAbT6pVrDb5c12Tyr/FSFeIU+duqQI 0XgR3T2i+ORQU0ohgovckYSHl9GZpp1bvG3Kf4EI= Date: Mon, 10 Jun 2024 20:58:03 +0900 From: Tomoaki AOKI To: Tatsuki Makino Cc: Yuri , "ports@freebsd.org" Subject: Re: After following the advise from UPDATING about pythoin-3.11, 'pkg add' now says: pkg: "Cannot solve problem using SAT solver" and attempts to install and then offers to remove py39- packages Message-Id: <20240610205803.f570190ee66b5ae75ae67770@dec.sakura.ne.jp> In-Reply-To: References: <187dec33-ae28-435b-9dce-04968da0a45d@FreeBSD.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4VyVgX0dYWz4NgL On Mon, 10 Jun 2024 16:52:59 +0900 Tatsuki Makino wrote: > Hmmm, > > I have never used poudriere to create all the packages. > However, since I was using the STABLE version for my jail, I have lost all the packages I have built on several occasions. > > It seems to happen when the value returned by the uname -KU of the jail changes. > > It seems that poudriere-pkgclean is the only other way to get rid of packages that can no longer be traced from the port tree. > > If the package directory is not cleaned of unnecessary packages, poudriere-bulk creates a repository that also contains the packages. > In fact, my poudriere repository includes llvm70-7.0.1_8.pkg and seamonkey-2.49.4_27.pkg. > Also, if the package name is the same but the version is different, it seems to be a repository that has no problem providing it. > > I have such a rule of thumb :) With my experience, poudriere deletes all the packages in its local repo for the jail when 1.ABI changed (i.e., 13 to 14, i386 to amd64), 2.__FreeBSD_version is bumped in src/sys/sys/param.h, 3.Any of TYPE, REVISION and/or BRANCH in src/sys/conf/newvers.sh are bumped. if `-a` is specified for all still lives in ports rtree. Each of them affects `uname -KU`. And possibly, not sure actually which is, something in toolchains are changed (not all changes affects). I think poudriere would be better ignoring last 3 (at least 2) digits of __FreeBSD_version for stable, releng and release branches, as API/KPI (not ABI/KBI, unfortunately) are basically assured to be downward compatible within each of those branches. FYI: I have a small script to list all pakcages installed, excluding *ports marked as deleted (no successor specified) in MOVED. *ports origin (can specify flavor) to igonore listed in BLOCKLIST variable in the script at brew.bsd.cafe repo [1]. With the list generated by the script, you can ignore huge LEAVES like www/chromium to be ignored to build. See the README.md there for details. [1] https://brew.bsd.cafe/TomAoki/sh_scripts/src/branch/main/poudlist-all Regards. > > Regards. > > Yuri wrote on 2024/06/09 12:30: > > You are right. Package DB contains both py39- and py311- packages: > > $ pkg search py311- | wc > >    4477   33240  346412 > > $ pkg search py39- | wc > >    3506   25946  270059 > > Since pkg has no awareness of the current python version - it attempts to install all found candidates for each particular PKGORIGIN. > > Anybody knows what caused this regression in the package database? -- Tomoaki AOKI