[Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Mar 2024 13:39:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277395

--- Comment #5 from Fabian Wenk <fabian@wenks.ch> ---
(In reply to bagas from comment #4)

On my system portsclean is also installed in /usr/local/sbin/:

riddler:~/ # which -a portsclean
/usr/local/sbin/portsclean
riddler:~/ # 

But the patch is fine going to bin/portsclean:

riddler:~/ # cd /usr/ports/ports-mgmt/portupgrade
riddler:/usr/ports/ports-mgmt/portupgrade/ # make patch
riddler:/usr/ports/ports-mgmt/portupgrade/ # make patch
===>  License BSD3CLAUSE accepted by the user
===>   portupgrade-2.4.16_1,2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by portupgrade-2.4.16_1,2 for building
===>  Extracting for portupgrade-2.4.16_1,2
=> SHA256 Checksum OK for portupgrade/freebsd-portupgrade-2.4.16_GH0.tar.gz.
===>   portupgrade-2.4.16_1,2 depends on file: /usr/local/bin/ruby32 - found
===>  Patching for portupgrade-2.4.16_1,2
===>   portupgrade-2.4.16_1,2 depends on file: /usr/local/bin/ruby32 - found
===>  Applying FreeBSD patches for portupgrade-2.4.16_1,2 from
/usr/ports/ports-mgmt/portupgrade/files
riddler:/usr/ports/ports-mgmt/portupgrade/ # ls -l work/portupgrade-2.4.16 
total 48
-rw-r--r--  1 root  wheel   1746 Mar  9  2018 COPYING
-rw-r--r--  1 root  wheel   1070 Mar  9  2018 Makefile
-rw-r--r--  1 root  wheel   2543 Mar  9  2018 Makefile.compat
-rw-r--r--  1 root  wheel    306 Mar  9  2018 Makefile.inc
-rw-r--r--  1 root  wheel  18307 Mar  9  2018 NEWS.md
-rw-r--r--  1 root  wheel   3950 Mar  9  2018 README.md
drwxr-xr-x  2 root  wheel    512 Mar  1 14:37 bin/
drwxr-xr-x  2 root  wheel    512 Mar  9  2018 compat/
drwxr-xr-x  2 root  wheel    512 Mar  9  2018 etc/
drwxr-xr-x  3 root  wheel    512 Mar  9  2018 lib/
drwxr-xr-x  2 root  wheel    512 Mar  9  2018 man/
drwxr-xr-x  5 root  wheel    512 Mar  9  2018 misc/
drwxr-xr-x  2 root  wheel    512 Mar  9  2018 scripts/
drwxr-xr-x  2 root  wheel    512 Mar  9  2018 tests/
riddler:/usr/ports/ports-mgmt/portupgrade/ # ls -l work/portupgrade-2.4.16/bin 
total 194
-rw-r--r--  1 root  wheel    970 Mar  9  2018 Makefile
-rwxr-xr-x  1 root  wheel  10284 Mar  9  2018 pkg_fetch*
-rwxr-xr-x  1 root  wheel  11373 Mar  9  2018 pkg_glob*
-rwxr-xr-x  1 root  wheel   3085 Mar  9  2018 pkg_sort*
-rwxr-xr-x  1 root  wheel  24683 Mar  9  2018 pkgdb*
-rwxr-xr-x  1 root  wheel   7197 Mar  9  2018 pkgdu*
-rwxr-xr-x  1 root  wheel  12820 Mar  9  2018 portcvsweb*
-rwxr-xr-x  1 root  wheel  17330 Mar  1 14:37 portsclean*
-rwxr-xr-x  1 root  wheel  17331 Mar  9  2018 portsclean.orig*
-rwxr-xr-x  1 root  wheel   5884 Mar  9  2018 portsdb*
-rwxr-xr-x  1 root  wheel  65072 Mar  9  2018 portupgrade*
-rwxr-xr-x  1 root  wheel   9821 Mar  9  2018 portversion*
riddler:/usr/ports/ports-mgmt/portupgrade/ #

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