Created attachment 227038 [details] v1 (apply via "git am") Until review D16457 lands and devel/boost-libs is split let's shave 166 MiB of install size from this otherwise small tool. Maybe MFH to /quarterly as well. $ poudriere testport -j 122amd64 deskutils/ydotool [...] =========================================================================== ====> Running Q/A tests (stage-qa) ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) =>> Checking for staging violations... done [...] =========================================================================== =>> Checking shared library dependencies 0x0000000000000001 NEEDED Shared library: [libc++.so.1] 0x0000000000000001 NEEDED Shared library: [libc.so.7] 0x0000000000000001 NEEDED Shared library: [libcxxrt.so.1] 0x0000000000000001 NEEDED Shared library: [libdl.so.1] 0x0000000000000001 NEEDED Shared library: [libepoll-shim.so.0] 0x0000000000000001 NEEDED Shared library: [libevdevPlus.so.0] 0x0000000000000001 NEEDED Shared library: [libgcc_s.so.1] 0x0000000000000001 NEEDED Shared library: [libm.so.5] 0x0000000000000001 NEEDED Shared library: [libthr.so.3] 0x0000000000000001 NEEDED Shared library: [libuInputPlus.so.0] 0x0000000000000001 NEEDED Shared library: [libydotool.so.0]
Please use the STATIC option instead of hardcoding it
(In reply to Daniel Engberg from comment #1) STATIC is for creating static executable but the patch here only links Boost statically while the rest (as illustrated in comment 0) is still dynamic. Besides, this is a leaf port that only uses non-networking routines from Boost thus doesn't benefit much from sharing.
Also, linking Boost statically has to be the default in order to benefit the binary package or there's no point.
Oops, I didn't notice this port is unmaintained since ports 4f4b3c57bc60.
ydotool 0.2.0 dropped Boost dependency, see https://github.com/ReimuNotMoe/ydotool/commit/751371b105a8 Abandoning because because my patch is incomplete/unusable: $ ydotool ld-elf.so.1: /usr/local/lib/libydotool.so.0: Undefined symbol "_ZN5boost15program_options19options_description21m_default_line_lengthE"