From nobody Fri May 10 17:54:15 2024 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 4Vbc2c2NS2z5K8Nh for ; Fri, 10 May 2024 17:54:16 +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 4Vbc2b5C6bz4Fqk for ; Fri, 10 May 2024 17:54:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715363655; a=rsa-sha256; cv=none; b=ZVHVeiLMnVsGxnPfbU5yXdU0xunK9f5jRfwrofJDMsB/Nqx1VW1njxokkXp9SLoOO6CbsL NDnwkDPvKTL6USv1RAqAbXObrV2h29UPjvPC4iOwSq1tRAsbSZapAAbAb4nDzCOUMMBn0A 2wZ0NFc72CblqtszUFPEoza35DlU5+vOzohWz8rduY00ahQtPMriW0bA3Raok6QI7Hvssj Af3/8YAfIkjnfUveEt59eNNWLlJ5zyKnWFOHwniQk8MuiRg8wTOzkO89Pwl1LOguy3/PAl m7o9SVg4QD8ceXW8tf8sSUfOKJ7htkomkRuUUaI79ml1xinF2qc06ut0doo2Qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715363655; 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=uCUzgGEYQzEEm5JMEAhdzWi5ZpXsEEsMMMMkr+JRRc8=; b=DumVKRkv77/YkwlnKnykAA8StgWVT8U+C0iiIH8aNp+wddX1K0BlfiovEank9hakBJn+lt OS3t+o5TOnGqEXgMNZ/eXfua1yWFC1gWRhxH/0NVsRn3msl8zf4bGc1ZKsksSlaHUU0KZQ iX3YbrUtTPXIc71mVhbXVPCMdEeoMNUUTkBIzX79g9ucspyu7Oe0tvA7Q+HAgP1Pva1R4v wGrPZnqnBqVUZIre+JAlBK+zl5GnPveWtB4B48otahEZ3lbD8vcFkk2s2dsReC9NdE5g4w UTi2GbUaoOuugRFSatwP/dZVB0qCjVY8Quq3VMkMIdXop+JCL6+lTP/Sbt5zpQ== 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 4Vbc2b4jHyznYq for ; Fri, 10 May 2024 17:54:15 +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 44AHsFk8082305 for ; Fri, 10 May 2024 17:54:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44AHsFRM082304 for ports-bugs@FreeBSD.org; Fri, 10 May 2024 17:54:15 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 278898] /usr/ports/Tools/scripts/redundant-opt-files.sh lists things that don't correspond to ports Date: Fri, 10 May 2024 17:54:15 +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 Some People X-Bugzilla-Who: bob@vesterman.com 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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278898 Bug ID: 278898 Summary: /usr/ports/Tools/scripts/redundant-opt-files.sh lists things that don't correspond to ports Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: bob@vesterman.com First, I'm sorry that this has the "Component" "Individual Port(s)", but th= at's the only option that the required Component field is giving me (even if I g= et here by clicking the link "File a new bug in the "Ports Framework" componen= t of the "Ports & Packages" product", with "Ports Framework" seemingly being the appropriate component for this. With that said: The script /usr/ports/Tools/scripts/redundant-opt-files.sh is described (in= its source) as follows: "This script checks every option file against the default options of its po= rt.=20 If they are identical, it writes the full path of the ports option directory (typically in /var/db/ports) to stdout." Unfortunately, it seems to assume that every directory in /var/db/ports corresponds to some port, even if it doesn't, even if it has a name that is= n't in the pkg_port format, even if it's a dotfile, and even if it doesn't even contain an options file. So, for example, right now I have two options directories in /var/db/ports: games_xcowsay/options and ports-mgmt_synth/options. The former has all defa= ult options, while the latter has custom options. Given that, I would expect th= is script to output: /var/db/ports/games_xcowsay But instead, it outputs: /var/db/ports/.svn /var/db/ports/games_xcowsay /var/db/ports/stowfiles This is because I store my custom configuration using Subversion (hence .sv= n) and Stow (hence stowfiles): $ ls /var/db/ports .svn/ games_xcowsay/ ports-mgmt_synth@ stowfiles/ I assume that this sort of thing also happens when various other tools are = used on that directory (e.g. git). Obviously this is not the most pressing issue in the world, but given that = the typical suggestions on the internet for using this script involve piping its output to "rm -rf", perhaps it should be changed to not print out anything = that doesn't correspond to an actual port, with the pkg_port naming convention corresponding to something that really exists at /usr/ports/pkg/port. This is on 14.0-RELEASE-p6, by the way (I don't mean to imply not elsewhere= too - just that I only know for sure it happens on that one). --=20 You are receiving this mail because: You are the assignee for the bug.=