From nobody Sat Jan 25 11:24:41 2025 X-Original-To: pkg@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 4YgC553r1Nz5mQCH for ; Sat, 25 Jan 2025 11:24:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YgC550k4wz3kDb for ; Sat, 25 Jan 2025 11:24:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737804281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NhobYMYpjt4xn7Oto24qdrS+EGSStDkgp998TchI2xM=; b=o1dRS+8a8sO5iNXOXvGSWOMysAAjPXwuqOl/6qGehM8Ydfbe1dzR/4Zb2dbuy/FMzUH2SG /sdW1dcxWMqTk5w87+zXbunt14rKjpOMmyGp39CNnpQQSNarwzMV9tlsU7ZpmwuRiFF1TJ iP19YicSUEjhUtRZL0aOhX55oz5TGp5B/XMsCRXzYOSNkOngKqu56gSq+Em+aT54nf+UXo jxSNbK3YIVfNbCrLsuiHAnyGyRuNoNDbHMAZwijBJODcAZ5eTcm7haXnFRCH7yUBoR3Aj0 rnbJPHG/whitMyyUKoPnJybwcbC1WUC+U8aPCFb/XuEqM8rDrLNI0tyHtCNE0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737804281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NhobYMYpjt4xn7Oto24qdrS+EGSStDkgp998TchI2xM=; b=m+SOXgL68Ew3RHHdI5tBDKV43bIrCkDehn2xiFUVeQfbI+/WtYQm4vM0ncF3f/UjaxR9lT /5r/+if9nBQWMxKFUP4O36fj/uG3/BjPYehiISRb5X1lG38KfBsL8bNEnSCzgXEkYyoTkm CUaq5vUyQPbcMnAwg1BaFFdtrRGOHJc4Z7V/Xov/dMwpd+3aG4RxRXlWtlwyyWGBPjytlF iUVUO3YeyacHJcrmdlJJT5OD/irD+xOTfJ7LqMOv69+PU92nzXda4z7GHwpsFfzkp3oUUL biJOvBTiUAFMMy4gTk2m9QuVwA0bjifv9NROFiTR6nSIJp6b2iCqTJcx2hsTiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737804281; a=rsa-sha256; cv=none; b=viOQdTu0KAKygyYMGfJzV9o4aAw54t32aep/iF5ANGtBabDQsH9hQQOsUH5UuEUcnu3kC7 OzfTgy4naU4InQ4Kx4oBFSk8KD2xG85k9D/D91VmQb86pWMV5Kt8sJp+0tOhr3ROMM5+qr atX5SA0mAXrLcoLoFt7EF505ekenjrEfvLAiIyHeO0YhgIcphZ+1LVX3Dj3wwKSW/jJTAW WAjPjyuAEA4/fVyDSipYyZk8qh7vZrsUQHV7qaktLJ/rV3GlMpYGR59zKIZOYLRdAwQaTJ SzeJXSK25+END/YeVElGWTtPr7RNQbyjFZ1rc7OaS55fr1LvnW+DUQEKwlzXmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YgC550Jq6z18hT for ; Sat, 25 Jan 2025 11:24:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50PBOeUG097830 for ; Sat, 25 Jan 2025 11:24:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50PBOeKh097829 for pkg@FreeBSD.org; Sat, 25 Jan 2025 11:24:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 245667] ports-mgmt/pkg: Determine ports branch of active pkg repo Date: Sat, 25 Jan 2025 11:24:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jwb@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245667 --- Comment #8 from Jason W. Bacon --- (In reply to Jason W. Bacon from comment #7) Use of the meta.txz timestamp in auto-pkg-branch broke, as I suspected it m= ight someday, due to changes in package building. I'm now using the following hack, which works most of the time, but will definitely fail for platforms that don't have regular package builds. # Branch may not happen immediately at midnight of Jan, April, # Jul, Oct 1, so check for existence of the ports branch and # back up 1 quarter if it's not there yet. # Note: This assumes that the new quarterly package repo is created # at the same moment as the ports branch. This is not reliable. while ! git ls-remote --branches https://git.freebsd.org/ports.git \ |grep -q "/$branch$"; do if [ $quarter =3D 1 ]; then year=3D$(($year - 1)) quarter=3D4 else quarter=3D$(($quarter - 1)) fi branch=3D${year}Q$quarter done --=20 You are receiving this mail because: You are the assignee for the bug.=