From owner-freebsd-ports-bugs@freebsd.org Tue Sep 1 01:39:54 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EBE373D5ECB for ; Tue, 1 Sep 2020 01:39:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgVB260Ldz4RTZ for ; Tue, 1 Sep 2020 01:39:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C97763D5A78; Tue, 1 Sep 2020 01:39:54 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C77033D5CBF for ; Tue, 1 Sep 2020 01:39:54 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgVB24l5zz4RQF for ; Tue, 1 Sep 2020 01:39:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 862DD114F5 for ; Tue, 1 Sep 2020 01:39:54 +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 0811dsjc072303 for ; Tue, 1 Sep 2020 01:39:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0811ds37072302 for ports-bugs@FreeBSD.org; Tue, 1 Sep 2020 01:39:54 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 249044] net-mgmt/networkmgr: packaging failure if PREFIX != LOCALBASE + invalid action in non-install steps Date: Tue, 01 Sep 2020 01:39:53 +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: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ericbsd@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 01:39:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249044 Bug ID: 249044 Summary: net-mgmt/networkmgr: packaging failure if PREFIX !=3D LOCALBASE + invalid action in non-install steps Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ericbsd@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Flags: maintainer-feedback?(ericbsd@FreeBSD.org) Assignee: ericbsd@FreeBSD.org Created attachment 217682 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217682&action= =3Dedit [patch] fix plist for various issues (a) 'check-plist' fails if PREFIX !=3D LOCALBASE [1] (b) setup.py does 'sudo gtk-update-icon-cache' unconditionally. Only 'make install' should touch anything outside WRKDIR (e.g., not 'make configure' or 'make stage', etc.). It's also unnecessary since INSTALLS_ICON handles tha= t in the FreeBSD ports infrastructure. (c) __VERSION__ in setup.py should be 4.1; the wrong version also causes check-plist to fail even after fixing the hard-coded {prefix}/ instances in setup.py (see patch). [1] [1] =3D=3D=3D=3D> Checking for pkg-plist issues (check-plist) =3D=3D=3D> Parsing plist =3D=3D=3D> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: %%PYTHON_SITELIBDIR%%/networkmgr-%%PYTHON_VER%%-py%%PYTHON_VER%%.egg-info/P= KG-INFO Error: Orphaned: %%PYTHON_SITELIBDIR%%/networkmgr-%%PYTHON_VER%%-py%%PYTHON_VER%%.egg-info/S= OURCES.txt Error: Orphaned: %%PYTHON_SITELIBDIR%%/networkmgr-%%PYTHON_VER%%-py%%PYTHON_VER%%.egg-info/d= ependency_links.txt Error: Orphaned: %%PYTHON_SITELIBDIR%%/networkmgr-%%PYTHON_VER%%-py%%PYTHON_VER%%.egg-info/r= equires.txt Error: Orphaned: %%PYTHON_SITELIBDIR%%/networkmgr-%%PYTHON_VER%%-py%%PYTHON_VER%%.egg-info/t= op_level.txt Error: Orphaned: /usr/local/etc/sudoers.d/networkmgr Error: Orphaned: /usr/local/etc/xdg/autostart/networkmgr.desktop Error: Orphaned: /usr/local/share/icons/hicolor/128x128/apps/nm-adhoc.png Error: Orphaned: /usr/local/share/icons/hicolor/128x128/apps/nm-device-wired-secure.png Error: Orphaned: /usr/local/share/icons/hicolor/128x128/apps/nm-no-connection.png Error: Orphaned: /usr/local/share/icons/hicolor/128x128/apps/nm-signal-00-secure.png Error: Orphaned: /usr/local/share/icons/hicolor/128x128/apps/nm-signal-00.p= ng . . . Patch tested okay in poudriere with default PREFIX and PREFIX=3D/opt. The patch does: Don't override --prefix with hard-coded python prefix. Paths are relative to prefix by default anyway. Don't run sudo gtk-update-icon-cache unconditionally any time setup.py is executed (config, build, whatever). The FreeBSD ports infrastructure handl= es this with INSTALLS_ICONS=3Dyes. For standalone installs, I'm not sure how this should be handled with distutils - it probably should be done outside setup.py. For now, just comment that out. Plus this should not be hard-coded to /usr/local/share... Set correct networkmgr pkg version. --=20 You are receiving this mail because: You are the assignee for the bug.=