pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/58961: 'make print-PLIST' emits 'No such file or directory' when directories contain spaces



>Number:         58961
>Category:       pkg
>Synopsis:       'make print-PLIST' emits 'No such file or directory' when directories contain spaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 05 07:15:00 +0000 2025
>Originator:     Iris
>Release:        pkgsrc-2024Q4
>Organization:
>Environment:
NetBSD localhost 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Linux localhost.localdomain 6.12.7 #1 SMP PREEMPT_DYNAMIC Fri Dec 27 19:45:31 UTC 2024 x86_64 GNU/Linux

>Description:
'make print-PLIST' will emit 'No such file or directory' when
encountering directories that have spaces (e.g. biology/fastqc,
net/wireshark).

Filenames with spaces don't exhibit this behavior (e.g. ham/osmo-sdr,
fonts/awesome-otf).

Judging from 'mk/plist/print-plist.mk', and from what I can tell from
adding entries to INSTALLATION_DIRS, 'make print-PLIST' does end up
missing @pkgdir entries when encountering empty directories with
spaces.  (I'm not sure if there are packages that are actually doing
this.)  Other than that, I *think* PLISTs are otherwise being generated
correctly.

> # pwd
> /usr/pkgsrc/net/wireshark

> # make print-PLIST | tee ./new
> @comment $NetBSD$
> [...]
> ls: /usr/work/net/wireshark/work/.destdir/usr/pkg/share/wireshark/profiles/No: No such file or directory
> ls: /usr/work/net/wireshark/work/.destdir/usr/pkg/Reassembly: No such file or directory

> # grep Reassembly ./PLIST ./new
> ./PLIST:share/wireshark/profiles/No Reassembly/preferences
> ./new:share/wireshark/profiles/No Reassembly/preferences
>How-To-Repeat:
In any package that installs files into directories that contain spaces
(e.g. biology/fastqc, net/wireshark):

1. 'make install' or 'make package'
2. 'make print-PLIST'

Add additional directories with or without spaces to INSTALLATION_DIRS,
and repeat 'install' and 'print-PLIST' steps
>Fix:


Home | Main Index | Thread Index | Old Index