[package - main-amd64-default][security/opensc] Failed for opensc-0.22.0 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Thu, 12 May 2022 14:46:09 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     ale@FreeBSD.org
Log URL:        http://beefy18.nyi.freebsd.org/data/main-amd64-default/pf0c279ef0f2b_s5326ebfd05/logs/opensc-0.22.0.log
Build URL:      http://beefy18.nyi.freebsd.org/build.html?mastername=main-amd64-default&build=pf0c279ef0f2b_s5326ebfd05
Log:

=>> Building security/opensc
build started at Thu May 12 14:44:07 UTC 2022
port directory: /usr/ports/security/opensc
package name: opensc-0.22.0
building for: FreeBSD main-amd64-default-job-09 14.0-CURRENT FreeBSD 14.0-CURRENT 1400058 amd64
maintained by: ale@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400050
Jail OSVERSION: 1400058
Job Id: 09




!!! Jail is newer than host. (Jail: 1400058, Host: 1400050) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400058
UNAME_v=FreeBSD 14.0-CURRENT 1400058
UNAME_r=14.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-21-g883afb07
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for opensc-0.22.0:
     DOCS=on: Build and/or install documentation
     MANPAGES=on: Build and/or install manual pages
     NOTIFY=on: Enable notification support
     SM=on: Enable secure messaging support
====> Options available for the single BACKEND: you have to select exactly one of them
     PCSC=on: Use PC/SC backend
     OPENCT=off: Use OpenCT backend
     CTAPI=off: Use CT-API backend
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
ale@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--with-completiondir=/usr/local/etc/bash_completion.d --disable-ctapi --enable-doc --enable-man --enable-notify --disable-openct --enable-pcsc --enable-sm --with-xsl-stylesheetsdir=/usr/local/share/xsl/docbook --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
OPENSSL_CFLAGS="-I/usr/include"  OPENSSL_LIBS="-L/usr/lib -lcrypto" XSLTPROC="/usr/local/bin/xsltproc" MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/security/opensc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/opensc/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/opensc/work/.cache  HOME=/wrkdirs/usr/ports/security/opensc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/opensc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/security/opensc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/opensc/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/opensc/work/.cache  HOME=/wrkdirs/usr/ports/security/opensc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/opensc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS="  -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_
 INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" CTAPI="@comment " NO_CTAPI="" DOCS="" NO_DOCS="@comment " MANPAGES="" NO_MANPAGES="@comment " NOTIFY="" NO_NOTIFY="@comment " OPENCT="@comment " NO_OPENCT="" PCSC="" NO_PCSC="@comment " SM="" NO_SM="@comment " GTK2_VERSION="2.10.0"  GTK3_VERSION="3.0.0"  GTK4_VERSION="4.0.0" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/opensc"  EXAMPLESDIR="share/examples/opensc"  DATADIR="share/opensc"  WWWDIR="www/opensc"  ETCDIR="etc/opensc"
--End PLIST_SUB--

--SUB_LIST--
CTAPI="@comment " NO_CTAPI="" DOCS="" NO_DOCS="@comment " MANPAGES="" NO_MANPAGES="@comment " NOTIFY="" NO_NOTIFY="@comment " OPENCT="@comment " NO_OPENCT="" PCSC="" NO_PCSC="@comment " SM="" NO_SM="@comment " PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/opensc DOCSDIR=/usr/local/share/doc/opensc EXAMPLESDIR=/usr/local/share/examples/opensc  WWWDIR=/usr/local/www/opensc ETCDIR=/usr/local/etc/opensc
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400058
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License LGPL21 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   opensc-0.22.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.17.5_1.pkg
[main-amd64-default-job-09] Installing pkg-1.17.5_1...
[main-amd64-default-job-09] Extracting pkg-1.17.5_1: .......... done
===>   opensc-0.22.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of opensc-0.22.0
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License LGPL21 accepted by the user
===> Fetching all distfiles required by opensc-0.22.0 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License LGPL21 accepted by the user
===> Fetching all distfiles required by opensc-0.22.0 for building
=> SHA256 Checksum OK for OpenSC-OpenSC-0.22.0_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License LGPL21 accepted by the user
===> Fetching all distfiles required by opensc-0.22.0 for building
===>  Extracting for opensc-0.22.0
=> SHA256 Checksum OK for OpenSC-OpenSC-0.22.0_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for opensc-0.22.0
===>  Applying FreeBSD patches for opensc-0.22.0 from /usr/ports/security/opensc/files
<snip>
		--help --version -h -V ," \
	| sed "s,OPTSWITHARGS,\
		!*," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,opensc_asn1," \
	| sed "s,PROGRAM_NAME,opensc-asn1," \
	> opensc-asn1
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--card-driver --mf --reader -c -m -r -v -w ," \
	| sed "s,OPTSWITHARGS,\
		--card-driver|--mf|--reader|-c|-m|-r," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,opensc_explorer," \
	| sed "s,PROGRAM_NAME,opensc-explorer," \
	> opensc-explorer
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--help --message --notify-card-inserted --notify-card-removed --notify-pin-bad --notify-pin-good --title --version -B -G -h -I -m -R -t -V ," \
	| sed "s,OPTSWITHARGS,\
		--message|--title|-m|-t," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,opensc_notify," \
	| sed "s,PROGRAM_NAME,opensc-notify," \
	> opensc-notify
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--atr --card-driver --get-conf-entry --info --list-algorithms --list-drivers --list-files --list-readers --name --reader --reset --send-apdu --serial --set-conf-entry --verbose --version --wait -a -c -D -f -G -i -l -n -r -s -S -v -w ," \
	| sed "s,OPTSWITHARGS,\
		--card-driver|--get-conf-entry|--reader|--reset|--send-apdu|--set-conf-entry|-c|-G|-r|-s|-S," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,opensc_tool," \
	| sed "s,PROGRAM_NAME,opensc-tool," \
	> opensc-tool
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--admin --cert --compresscert --genkey --in --key-slots-discovery --name --object --out --reader --send-apdu --serial --verbose --wait -A -C -G -i -n -o -O -r -s -v -w -Z ," \
	| sed "s,OPTSWITHARGS,\
		--admin|--cert|--compresscert|--genkey|--in|--key-slots-discovery|--object|--out|--reader|--send-apdu|-A|-C|-G|-i|-o|-O|-r|-s|-Z," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,piv_tool," \
	| sed "s,PROGRAM_NAME,piv-tool," \
	> piv-tool
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--help --module --skip-chrome --skip-firefox --skip-seamonkey --skip-thunderbird --version -h -m -V ," \
	| sed "s,OPTSWITHARGS,\
		--module|-m," \
	| sed "s,FILEOPTS,\
		--module|-m,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,pkcs11_register," \
	| sed "s,PROGRAM_NAME,pkcs11-register," \
	> pkcs11-register
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--allow-sw --allowed-mechanisms --always-auth --application-id --application-label --attr-from --change-pin --decrypt --delete-object --derive --derive-pass-der --extractable --generate-random --hash --hash-algorithm --id --init-pin --init-token --input-file --issuer --key-type --keygen --keypairgen --label --list-interfaces --list-mechanisms --list-objects --list-slots --list-token-slots --login --login-type --mechanism --mgf --module --moz-cert --new-pin --object-index --output-file --pin --private --puk --read-object --salt-len --sensitive --set-id --show-info --sign --signature-file --signature-format --slot --slot-description --slot-index --so-pin --subject --test --test-ec --test-fork --test-hotplug --test-threads --token-label --type --unlock-pin --usage-decrypt --usage-derive --usage-sign --usage-wrap --use-locking --verify --write-object -a -b -c -d -e -h -i -I -k -l -L -m -M -o -O -p -r -s -t -T -v -w -y -z ," \
	| sed "s,OPTSWITHARGS,\
		--allowed-mechanisms|--application-id|--application-label|--attr-from|--generate-random|--hash-algorithm|--id|--input-file|--issuer|--key-type|--label|--mechanism|--mgf|--module|--moz-cert|--new-pin|--object-index|--output-file|--pin|--puk|--salt-len|--set-id|--signature-file|--signature-format|--slot|--slot-description|--slot-index|--so-pin|--subject|--test-threads|--token-label|--type|--write-object|-a|-d|-e|-i|-m|-o|-p|-w|-y|-z," \
	| sed "s,FILEOPTS,\
		--attr-from|--input-file|--moz-cert|--output-file|--signature-file|--write-object|-i|-o|-w|-z,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		--module," \
	| sed "s,FUNCTION_NAME,pkcs11_tool," \
	| sed "s,PROGRAM_NAME,pkcs11-tool," \
	> pkcs11-tool
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--aid --decipher --f --input --key --md5 --output --pin --pkcs1 --raw --reader --sha-1 --sha-224 --sha-256 --sha-384 --sha-512 --sign --signature-format --verbose --version --wait -c -i -k -o -p -r -R -s -v -w ," \
	| sed "s,OPTSWITHARGS,\
		--aid|--input|--key|--output|--pin|--reader|-i|-k|-o|-p|-r," \
	| sed "s,FILEOPTS,\
		!*,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,pkcs15_crypt," \
	| sed "s,PROGRAM_NAME,pkcs15-crypt," \
	> pkcs15-crypt
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--aid --application-id --application-name --authority --card-profile --cert-label --change-attributes --create-pkcs15 --delete-objects --erase-application --erase-card --extractable --finalize --format --generate-key --help --id --ignore-ca-certificates --insecure --key-usage --label --md-container-guid --no-so-pin --output-file --passphrase --pin --profile --public-key-label --puk --puk-id --puk-label --reader --sanity-check --secret-key-algorithm --serial --so-pin --so-puk --store-certificate --store-data --store-data-object --store-pin --store-private-key --store-public-key --store-secret-key --update-certificate --update-existing --update-last-update --use-default-transport-keys --use-pinpad --user-consent --verbose --verify-pin --version --wait -A -c -C -D -E -F -G -h -o -p -P -r -S -T -u -U -v -w -W -X ," \
	| sed "s,OPTSWITHARGS,\
		--aid|--application-name|--card-profile|--cert-label|--change-attributes|--delete-objects|--erase-application|--generate-key|--key-usage|--md-container-guid|--output-file|--passphrase|--pin|--profile|--public-key-label|--puk|--puk-id|--puk-label|--reader|--secret-key-algorithm|--serial|--so-pin|--so-puk|--store-certificate|--store-data|--store-private-key|--store-public-key|--store-secret-key|--update-certificate|--user-consent|-A|-c|-D|-G|-o|-p|-r|-S|-u|-U|-W|-X," \
	| sed "s,FILEOPTS,\
		--output-file|--store-certificate|--store-data|--store-private-key|--store-public-key|--store-secret-key|--update-certificate|-o|-S|-U|-W|-X,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,pkcs15_init," \
	| sed "s,PROGRAM_NAME,pkcs15-init," \
	> pkcs15-init
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--aid --auth-id --change-pin --clear-cache --dump --list-applications --list-certificates --list-data-objects --list-info --list-keys --list-pins --list-public-keys --list-secret-keys --new-pin --no-cache --output --pin --puk --raw --read-certificate --read-data-object --read-public-key --read-ssh-key --reader --rfc4716 --short --test-session-pin --test-update --unblock-pin --update --use-pinpad --verbose --verify-pin --version --wait -a -c -C -D -k -o -R -s -T -u -U -v -w ," \
	| sed "s,OPTSWITHARGS,\
		--aid|--auth-id|--new-pin|--output|--pin|--puk|--read-certificate|--read-data-object|--read-public-key|--read-ssh-key|--reader|-a|-o|-R," \
	| sed "s,FILEOPTS,\
		--output|-o,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,pkcs15_tool," \
	| sed "s,PROGRAM_NAME,pkcs15-tool," \
	> pkcs15-tool
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--bio-server1 --bio-server2 --create-dkek-share --dkek-shares --force --import-dkek-share --initialize --key-reference --label --password --pin --pin-retry --pwd-shares-threshold --pwd-shares-total --reader --so-pin --unwrap-key --verbose --wait --wrap-key -C -I -l -r -s -U -v -w -W -X ," \
	| sed "s,OPTSWITHARGS,\
		--bio-server1|--bio-server2|--create-dkek-share|--dkek-shares|--import-dkek-share|--label|--password|--pin|--pin-retry|--pwd-shares-threshold|--pwd-shares-total|--reader|--so-pin|--unwrap-key|--wrap-key|-C|-I|-l|-r|-s|-U|-W," \
	| sed "s,FILEOPTS,\
		--create-dkek-share|--import-dkek-share|--unwrap-key|--wrap-key|-C|-I|-U|-W,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,sc_hsm_tool," \
	| sed "s,PROGRAM_NAME,sc-hsm-tool," \
	> sc-hsm-tool
sed: 1: "s,.*<option>([^<]*)</op ...": RE error: trailing backslash (\)
cat ./completion-template \
	| sed "s,ALLOPTS,\
		--certificate --change-pin --finalize --generate-key --help --install-pin --key-length --overwrite-key --pin-value --puk-value --read-file --reader --unblock-pin --verbose --wait --write-file -f -g -h -i -j -k -l -n -o -r -t -u -v -w -x -y ," \
	| sed "s,OPTSWITHARGS,\
		--certificate|--key-length|--pin-value|--puk-value|--read-file|--reader|--write-file|-j|-k|-l|-r|-t|-x|-y," \
	| sed "s,FILEOPTS,\
		--read-file|--write-file|-j|-k,"  \
	| sed "s,PINOPTS,\
		!*,"  \
	| sed "s,MODULEOPTS,\
		!*," \
	| sed "s,FUNCTION_NAME,westcos_tool," \
	| sed "s,PROGRAM_NAME,westcos-tool," \
	> westcos-tool
gmake[4]: Leaving directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0/doc/tools'
Making all in files
gmake[4]: Entering directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0/doc/files'
sed -e 's|@pkgdatadir[@]|/usr/local/share/opensc|g' < pkcs15-profile.5.xml \
| /usr/local/bin/xsltproc --nonet --path "./..:/usr/local/share/xsl/docbook/manpages" --xinclude -o pkcs15-profile.5 man.xsl pkcs15-profile.5.xml 2>/dev/null
/usr/local/bin/xsltproc --nonet --path "./..:/usr/local/share/xsl/docbook/manpages" --xinclude -o opensc.conf.5 man.xsl opensc.conf.5.xml 2>/dev/null
/usr/local/bin/xsltproc --nonet --path "./..:/usr/local/share/xsl/docbook/manpages" --xinclude -o opensc.conf.5.xml man.xsl opensc.conf.5.xml 2>/dev/null
gmake[4]: *** [Makefile:655: opensc.conf.5] Error 6
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0/doc/files'
gmake[3]: *** [Makefile:465: all-recursive] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0/doc'
gmake[2]: *** [Makefile:609: all-recursive] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0'
gmake[1]: *** [Makefile:517: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/opensc/work/OpenSC-0.22.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/opensc