Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2026 02:33:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 293751] x11-wm/xfce4-panel-profiles: wrapper script embeds build-time WRKDIR path (Bug 1); py-psutil missing from RUN_DEPENDS (Bug 2, regression from Bug 281484)
Message-ID:  <bug-293751-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293751

            Bug ID: 293751
           Summary: x11-wm/xfce4-panel-profiles: wrapper script embeds
                    build-time WRKDIR path (Bug 1); py-psutil missing from
                    RUN_DEPENDS (Bug 2, regression from Bug 281484)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: xfce@FreeBSD.org
          Reporter: qqyr7xx9k@shirt.ocn.ne.jp
             Flags: maintainer-feedback?(xfce@FreeBSD.org)
          Assignee: xfce@FreeBSD.org

Product:   Ports & Packages
Component: Individual Port(s)
Version:   Latest
Severity:  Affects Some People
Keywords:  patch
Maintainer: xfce@FreeBSD.org

Summary:
x11-wm/xfce4-panel-profiles: wrapper script embeds build-time WRKDIR path (Bug
1);
py-psutil missing from RUN_DEPENDS (Bug 2, regression from Bug 281484)

Description:

Two bugs are present in x11-wm/xfce4-panel-profiles-1.1.1.

--- Bug 1: Installed wrapper script contains hardcoded WRKDIR path ---

The Makefile uses:

  BINARY_ALIAS=  python3=${PYTHON_CMD}
  SHEBANG_FILES= xfce4-panel-profiles/panelconfig.py \
                 xfce4-panel-profiles/xfce4-panel-profiles.py

BINARY_ALIAS creates ${WRKDIR}/.bin/python3 for use during the build.
meson uses this aliased python3 when generating the installed wrapper
script bin/xfce4-panel-profiles, embedding the WRKDIR-relative path
directly.  Because bin/xfce4-panel-profiles is not listed in
SHEBANG_FILES, shebangfix does not rewrite it.

The result is that /usr/local/bin/xfce4-panel-profiles on the installed
system contains:

  #!/bin/sh
  /wrkdirs/usr/ports/x11-wm/xfce4-panel-profiles/work/.bin/python3 \
   
/usr/local/share/xfce4-panel-profiles/xfce4-panel-profiles/xfce4-panel-profiles.py
"$@"

This path does not exist after installation, so the command fails immediately.

Suggested fix: remove BINARY_ALIAS and add a post-install target to
rewrite the path with ${REINPLACE_CMD}:

  post-install:
        @${REINPLACE_CMD} -e 's|${WRKDIR}/.bin/python3|${PYTHON_CMD}|g' \
                ${STAGEDIR}${PREFIX}/bin/xfce4-panel-profiles

--- Bug 2: py-psutil listed only in BUILD_DEPENDS, not in RUN_DEPENDS ---

This was previously reported as Bug 281484 (2024-09-13).
It appears the fix was incomplete: psutil was added to BUILD_DEPENDS
but not to RUN_DEPENDS.

The Makefile currently has:

  BUILD_DEPENDS=
${PYTHON_PKGNAMEPREFIX}psutil>=7.0.0:sysutils/py-psutil@${PY_FLAVOR}

RUN_DEPENDS is absent entirely.  xfce4-panel-profiles/panelconfig.py
imports psutil at runtime:

  import psutil

Without py-psutil installed, running xfce4-panel-profiles fails with:

  ModuleNotFoundError: No module named 'psutil'

psutil is a runtime requirement and must also appear in RUN_DEPENDS:

  RUN_DEPENDS=  
${PYTHON_PKGNAMEPREFIX}psutil>=7.0.0:sysutils/py-psutil@${PY_FLAVOR}

--- Note ---

The analysis of this bug and the creation of this report were performed
with the assistance of Claude (claude.ai), an AI assistant by Anthropic.
The port's Makefile, pkg-plist, pkg-descr, and distinfo files were
provided as input.  Claude identified the two bugs by analyzing the
interaction between BINARY_ALIAS and shebangfix in the Makefile, and by
tracing the missing RUN_DEPENDS back to Bug 281484 as an incomplete fix.

--- Environment ---

% uname -a
FreeBSD um560.shimizu 15.0-STABLE FreeBSD 15.0-STABLE
stable/15-n282632-b5e307d41e2e GENERIC amd64

% freebsd-version -ku
15.0-STABLE
15.0-STABLE

% pkg info xfce4-panel-profiles
xfce4-panel-profiles-1.1.1
Name           : xfce4-panel-profiles
Version        : 1.1.1
Installed on   : Thu Mar 12 04:46:27 2026 JST
Origin         : x11-wm/xfce4-panel-profiles
Architecture   : FreeBSD:15:*
Prefix         : /usr/local
Categories     : x11-wm xfce
Licenses       : GPLv3
Maintainer     : xfce@FreeBSD.org
WWW            : https://docs.xfce.org/apps/xfce4-panel-profiles/start
Comment        : Xfce's panel multiple layouts manager
Options        :
        DOCS           : on
        NLS            : on
Annotations    :
        build_timestamp: 2026-03-05T04:15:54+0000
        built_by       : poudriere-git-3.4.6
        port_checkout_unclean: no
        port_git_hash  : b64b73fd938d5b2788547d16ed6a76493acc9142
        ports_top_checkout_unclean: no
        ports_top_git_hash: 7e0ac38bdd48961aeb4ea2d32d8ecd49b2a1112c
        repo_type      : binary
        repository     : FreeBSD-ports
Flat size      : 398KiB

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293751-7788>