Bug 274636

Summary: security/gsa fails to build on poudriere
Product: Ports & Packages Reporter: ddrinnon
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description ddrinnon 2023-10-21 19:22:53 UTC
security/gsa 22.1.7_2 fails to build on poudriere at the Extract stage when attempting to rename a non-existent directory:

=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3+ accepted by the user
===> Fetching all distfiles required by gsa-22.7.1_2 for building
===>  Extracting for gsa-22.7.1_2
mv: rename /wrkdirs/usr/ports/security/gsa/work/node_modules to /wrkdirs/usr/ports/security/gsa/work/gsa-22.7.1/node_modules: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/security/gsa
=>> Cleaning up wrkdir
===>  Cleaning for gsa-22.7.1_2
build of security/gsa | gsa-22.7.1_2 ended at Sat Oct 21 03:56:13 EDT 2023
build time: 00:00:11
!!! build failure encountered !!!
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-10-22 00:45:26 UTC
(In reply to ddrinnon from comment #0)
No issues here. try removing gsa distfiles and check if you have latest version of gsa port and check if it is not a modified version

===========================================================================
=>> Checking shared library dependencies
=======================<phase: deinstall      >============================
===== env: DEVELOPER_MODE=yes STRICT_DEPENDS=yes USER=root UID=0 GID=0
===>  Deinstalling for gsa
===>   Deinstalling gsa-22.7.1_2
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        gsa: 22.7.1_2

Number of packages to be removed: 1

The operation will free 18 MiB.
[13amd64-local] [1/1] Deinstalling gsa-22.7.1_2...
[13amd64-local] [1/1] Deleting files for gsa-22.7.1_2: .......... done
===========================================================================
=>> Checking for extra files and directories
[00:04:28] Installing from package
[13amd64-local] Installing gsa-22.7.1_2...
[13amd64-local] Extracting gsa-22.7.1_2: .......... done
[00:04:29] Cleaning up
===>  Cleaning for gsa-22.7.1_2
[00:04:30] Deinstalling package
Updating database digests format: . done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        gsa: 22.7.1_2

Number of packages to be removed: 1

The operation will free 18 MiB.
[13amd64-local] [1/1] Deinstalling gsa-22.7.1_2...
[13amd64-local] [1/1] Deleting files for gsa-22.7.1_2: .......... done
build of security/gsa | gsa-22.7.1_2 ended at Sat Oct 21 19:43:21 -05 2023
build time: 00:04:15
[00:04:30] Logs: /usr/local/poudriere/data/logs/bulk/13amd64-local/2023-10-21_19h38m52s
[00:04:30] Cleaning up
[00:04:30] Unmounting file systems
Comment 2 ddrinnon 2023-10-22 19:13:44 UTC
Thank you Jose!  After removing /usr/ports/distfiles/gsa-cache-22.7.1.tar.gz it was able to build.

Old distfile:
-rw-r--r--  1 root  wheel  47165900 Oct  2 11:51 gsa-cache-22.7.1.tar.gz

New distfile:
-rw-r--r--   1 root  wheel   67963784 Oct 20 03:00 gsa-cache-22.7.1.tar.gz

Closing the bug report.