Re: extracting pkg-message for FreshPorts

From: Tatsuki Makino <tatsuki_makino_at_hotmail.com>
Date: Thu, 12 Aug 2021 05:54:12 +0900
Dan Langille wrote on 2021/08/11 08:33:
> [dan_at_empty:/usr/ports/x11/nvidia-driver-390] $ ls -l /var/ports/usr/ports/x11/nvidia-driver-390/work/pkg-message
> -rw-r--r--  1 root  wheel  1808 Aug 10 22:31 /var/ports/usr/ports/x11/nvidia-driver-390/work/pkg-message
> 
>> Is there a better way?
> Yes, there is.  make apply-slist
> 
> From IRC came that suggestion, which, oddly enough, I was originally using before heading down this rabbit hole.
> 
> [root_at_empty /usr/ports/x11/nvidia-driver-390]# make apply-slist
> /bin/sh: cannot create /var/ports/usr/ports/x11/nvidia-driver-390/work/pkg-message: No such file or directory
> *** Error code 2
> 
> Stop.
> make: stopped in /usr/ports/x11/nvidia-driver-390
> [root_at_empty /usr/ports/x11/nvidia-driver-390]#
> 
> 
> Nope. That won't work.

The _PORTS_DIRECTORIES directory seems to have a target that executes mkdir.

I think the following is also possible... I'm just thinking :)

make -C /usr/ports/x11/nvidia-driver-390 `make -C /usr/ports/x11/nvidia-driver-390 -V EXTRACT_WRKDIR` apply-slist
Received on Wed Aug 11 2021 - 20:54:12 UTC

Original text of this message