Bug 263114 - packaging error in www/onlyoffice-documentserver?
Summary: packaging error in www/onlyoffice-documentserver?
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-07 09:55 UTC by FiLiS
Modified: 2022-04-09 07:33 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mikael)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FiLiS 2022-04-07 09:55:09 UTC
When building onlyoffice with MYSQL instead of the PGSQL-default, the build stops because it cannot find a file:

---
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for onlyoffice-documentserver-7.0.1.50
pkg-static: Unable to access file /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/server/Metrics/node_modules/modern-syslog/build/Release/core.node:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/www/onlyoffice-documentserver
=>> Cleaning up wrkdir
===>  Cleaning for onlyoffice-documentserver-7.0.1.50
build of www/onlyoffice-documentserver | onlyoffice-documentserver-7.0.1.50 ended at Thu Apr  7 03:38:35 CEST 2022
build time: 00:30:23
!!! build failure encountered !!!
---
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2022-04-07 10:15:53 UTC
It's a fallout of the node update: I'll update the port shortly
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-04-09 07:30:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=960d9357eca90f092e32b190ba7d8ecdf95a4e0c

commit 960d9357eca90f092e32b190ba7d8ecdf95a4e0c
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2022-04-08 16:10:15 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-04-09 07:29:16 +0000

    www/onlyoffice-documentserver: Fix build after node 16.14.2 update and improve port

      - Regen the distinfo after node 16.14.2 update
      - Fix for an hardcoded /usr/local in files/patch-core_Common_3dParty_icu_icu.pri
      - Don't chown in pkg-plist and documentserver-generate-allfonts.sh.m4, there is no rational to do that
      - Use a trigger to execute documentserver-generate-allfonts.sh and fix pkg-message accordingly

    PR:             263114

 www/onlyoffice-documentserver/Makefile             | 24 +++++++++++++++-------
 www/onlyoffice-documentserver/distinfo             |  8 +++++---
 .../files/onlyoffice-documentserver.ucl.in (new)   |  9 ++++++++
 .../files/patch-core_Common_3dParty_icu_icu.pri    |  6 +++---
 ...rver_bin_documentserver-generate-allfonts.sh.m4 |  8 +++-----
 www/onlyoffice-documentserver/files/pkg-message.in | 17 ++-------------
 www/onlyoffice-documentserver/pkg-plist            |  7 ++++---
 7 files changed, 43 insertions(+), 36 deletions(-)