Bug 272636 - sysutils/fusefs-nbt: Update to 20230720-4d49ab2
Summary: sysutils/fusefs-nbt: Update to 20230720-4d49ab2
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: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-21 09:56 UTC by WHR
Modified: 2023-07-22 15:31 UTC (History)
1 user (show)

See Also:


Attachments
sysutils-fusefs-nbt-20230720.diff (1.30 KB, patch)
2023-07-21 09:58 UTC, WHR
no flags Details | Diff
sysutils-fusefs-nbt-20230720.diff (1.30 KB, patch)
2023-07-21 10:03 UTC, WHR
msl0000023508: maintainer-approval+
Details | Diff
sysutils-fusefs-nbt-20230720.diff (added USE_LDCONFIG=yes) (1.36 KB, patch)
2023-07-22 13:48 UTC, WHR
msl0000023508: maintainer-approval+
Details | Diff
sysutils-fusefs-nbt-20230720.diff (strip programs explicitly in 'post-install' target) (1.62 KB, patch)
2023-07-22 14:36 UTC, WHR
msl0000023508: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WHR 2023-07-21 09:56:14 UTC
This change also fixes an issue where the built utilities may not always be using shared library libnbt.so.1 due to parallel building.

Originally this port has 'ALL_TARGET=libnbt.so all', so make(1) will be launched with these 2 targets together; if parallel building is enabled (by default in ports tree), it is not guaranteed to have 'libnbt.so' ready before building 'all'. As a result some programs built by 'all' may have linked with libnbt.a instead. Fixing this unpredictable behavior by using 2 make(1) passes for those 2 targets.
Comment 1 WHR 2023-07-21 09:58:38 UTC
Created attachment 243519 [details]
sysutils-fusefs-nbt-20230720.diff
Comment 2 WHR 2023-07-21 10:03:42 UTC
Created attachment 243520 [details]
sysutils-fusefs-nbt-20230720.diff

Hide the make(1) command lines to prevent the output being too noisy.
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2023-07-22 13:18:05 UTC
portlint:
WARN: sysutils/fusefs-nbt/pkg-plist: [15]: installing shared libraries, please define USE_LDCONFIG as appropriate

Could you check this warning?

Thanks
Comment 4 WHR 2023-07-22 13:48:38 UTC
Created attachment 243549 [details]
sysutils-fusefs-nbt-20230720.diff (added USE_LDCONFIG=yes)

Apparently I missed this requirement mentioned in https://docs.freebsd.org/en/books/porters-handbook/special/, for the last port version too.
Comment 5 Nuno Teixeira freebsd_committer freebsd_triage 2023-07-22 14:10:56 UTC
Results from build shows stripping Q/A warnings:

====> Running Q/A tests (stage-qa)
Warning: 'sbin/mkfs.nbt' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'sbin/mount.nbt' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'bin/nbtdump' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'bin/regiondump' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'lib/libnbt.so.1' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Comment 6 WHR 2023-07-22 14:36:26 UTC
Created attachment 243551 [details]
sysutils-fusefs-nbt-20230720.diff (strip programs explicitly in 'post-install' target)

Add 'post-install' target to run ${STRIP_CMD} on every executable file.

Since this warning never show up in previous versions of ports tree, I presumes that stripping will be done automatically.
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-07-22 15:30:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8c62ba28b5f02b787911950a17471f58fcfd6386

commit 8c62ba28b5f02b787911950a17471f58fcfd6386
Author:     WHR <msl0000023508@gmail.com>
AuthorDate: 2023-07-22 15:16:55 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-07-22 15:29:22 +0000

    sysutils/fusefs-nbt: Update to 20230720-4d49ab2

    - This change also fixes an issue where the built utilities may not always
      be using shared library libnbt.so.1 due to parallel building.

      Originally this port has 'ALL_TARGET=libnbt.so all', so make(1) will be
      launched with these 2 targets together; if parallel building is enabled
      (by default in ports tree), it is not guaranteed to have 'libnbt.so' ready
      before building 'all'. As a result some programs built by 'all' may have
      linked with libnbt.a instead. Fixing this unpredictable behavior by using
      2 make(1) passes for those 2 targets.
    - Define USE_LDCONFIG
    - Strip binaries

    PR:             272636

 sysutils/fusefs-nbt/Makefile | 14 +++++++++++---
 sysutils/fusefs-nbt/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 6 deletions(-)
Comment 8 Nuno Teixeira freebsd_committer freebsd_triage 2023-07-22 15:31:26 UTC
Committed with small changes.
Thanks!