From nobody Wed Jan 18 23:37:37 2023 X-Original-To: ports-bugs@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 4Ny2HQ4cjSz2v526 for ; Wed, 18 Jan 2023 23:37:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ny2HQ23Rkz4PnY for ; Wed, 18 Jan 2023 23:37:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674085058; 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; bh=xoY3J3ZXmQTX2S2MA8sqiHjF/vw1BnDiUTqspCz2SaA=; b=TqCvbvSiBi5iGi7QOQXTNXk3BbWlgu+xNwfAARyv5qPNhegEgcRFbTrn4S835i6UA7GWbA GrlLd/CISKs9/dJDpEgs4dJI52Nxh+o7l/c0lX8DTpl1AbRNJocRk75Pz/IwztmL/mLUvx fmKi/2ZecuLLUvelnfYGlD0ZS/d5xA/pGgIsUBawGZsqZa9WgOpTbwz7ZXgiCItXCrTXWw 5Gfn3OBuMU3xJhACazV8ruGGzLJPdU8Av1kQK9iYZ6CqV0XGGlzmp2XgGyxCh24GZg8sJ4 0IkYWf4mckXULJxnxAUQchjAWE+wQ92OLfX7JKD8KhqWDJYrr1xxPsNwPHBkbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674085058; a=rsa-sha256; cv=none; b=oq4uanQWvPeHRne26vK+pXNSlUHKeKCI5P9nH6f7g7mBmf4Aqw3DpHCouIjpglqhvAm+wc Eu5QXr+lVCTPilJKIKoPAXi9vKvIiPEDb5W91WlaN/iTsmfFcqE3NDso8Y/YzcDcnRzkcF 4b/+SPYuBOde+DDH3XE9NeyQLiTw70nuHQBbWFOjJVXQ0vqFoadsX9mrLmHpb4C/V5/Bjn ZYjZe5otiCOxCz2sNK+TwnVTGgzpHPITuDphSq2IN2D7rr49TBMX3mu657ID2YBSC43Zjq VVqqrusDLAx/BwrmlRGtszjXb4Kdxzq9sWqXpGXYSMy//Cl349A2NGVOyYogcw== 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 4Ny2HQ0qtvzVKq for ; Wed, 18 Jan 2023 23:37:38 +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 30INbcLJ009585 for ; Wed, 18 Jan 2023 23:37:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30INbch5009583 for ports-bugs@FreeBSD.org; Wed, 18 Jan 2023 23:37:38 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: ports-bugs@FreeBSD.org Subject: [Bug 269040] ports framework: make fetchindex downloads the index even if there are no changes to local copy Date: Wed, 18 Jan 2023 23:37:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jamie@catflap.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269040 Bug ID: 269040 Summary: ports framework: make fetchindex downloads the index even if there are no changes to local copy Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jamie@catflap.org "make fetchindex" uses "fetch" with the "-m" switch, so that if there are no changes to the index file, then it won't download it again. Unfortunately, /usr/ports/Makefile contains: [code] fetchindex: ${INDEXDIR}/${INDEXFILE}.${INDEX_COMPRESSION_FORMAT} @if bsdcat < ${INDEXDIR}/${INDEXFILE}.${INDEX_COMPRESSION_FORMAT} > ${INDEXDIR}/${INDEXFILE}.tmp ; then \ chmod a+r ${INDEXDIR}/${INDEXFILE}.tmp; \ ${MV} ${INDEXDIR}/${INDEXFILE}.tmp ${INDEXDIR}/${INDEXFILE}= ; \ ${RM} ${INDEXDIR}/${INDEXFILE}.${INDEX_COMPRESSION_FORMAT} \ else ; \ ${RM} ${INDEXDIR}/${INDEXFILE}.tmp ; \ fi [/code] The downloaded file is INDEX-XX.xz - a compressed file. This is uncompressed and then deleted, so subsequent fetches have nothing to compare old against new. It's probably best to not delete the compressed file (maybe download and ke= ep it outside the main tree to keep it from cluttering it up (e.g. /usr/ports/.cache/index-XX.xz) --=20 You are receiving this mail because: You are the assignee for the bug.=