Build of gsm with musl toolchain

The build took 00h 01m 11s and was SUCCESSFUL.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
6,237 ansic
277 makefile
6,514 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: gsm 1.0.14-1 (Wed Apr 5 00:52:09 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file Makefile
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/add.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/code.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/debug.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/decode.c
# In file included from src/code.c:9:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# src/debug.c:52:26: warning: format specifies type 'int' but the argument has type 'longword' (aka 'long') [-Wformat]
# fprintf(stderr, "%d ", ptr[ from ] );
# ~~ ^~~~~~~~~~~
# %ld
# src/debug.c:66:36: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
# fprintf(stderr, "%s: %d\n", name, (long)value );
# ~~ ^~~~~~~~~~~
# %ld
# src/debug.c:73:36: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
# fprintf(stderr, "%s: %d\n", name, (long)value);
# ~~ ^~~~~~~~~~~
# %ld
# 3 warnings generated.
# 6 warnings generated.
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/long_term.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/lpc.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/preprocess.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/rpe.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_destroy.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_decode.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_encode.c
# In file included from src/gsm_destroy.c:10:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# 6 warnings generated.
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_explode.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_implode.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_create.c
# In file included from src/gsm_create.c:9:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_print.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/gsm_option.c
# 6 warnings generated.
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/short_term.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/table.c
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/toast.c
# src/short_term.c:63:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
# STEP( -2560, -16, 13107 );
# ^ ~~~~~
# src/short_term.c:56:32: note: expanded from macro 'STEP'
# temp1 = GSM_SUB( temp1, B << 1 ); \
# ~ ^
# ./inc/private.h:122:38: note: expanded from macro 'GSM_SUB'
# ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
# ^
# src/short_term.c:66:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
# STEP( -1792, -8, 17476 );
# ^ ~~~~~
# src/short_term.c:56:32: note: expanded from macro 'STEP'
# temp1 = GSM_SUB( temp1, B << 1 ); \
# ~ ^
# ./inc/private.h:122:38: note: expanded from macro 'GSM_SUB'
# ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
# ^
# src/short_term.c:67:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
# STEP( -341, -4, 31454 );
# ^ ~~~~
# src/short_term.c:56:32: note: expanded from macro 'STEP'
# temp1 = GSM_SUB( temp1, B << 1 ); \
# ~ ^
# ./inc/private.h:122:38: note: expanded from macro 'GSM_SUB'
# ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
# ^
# src/short_term.c:68:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
# STEP( -1144, -4, 29708 );
# ^ ~~~~~
# src/short_term.c:56:32: note: expanded from macro 'STEP'
# temp1 = GSM_SUB( temp1, B << 1 ); \
# ~ ^
# ./inc/private.h:122:38: note: expanded from macro 'GSM_SUB'
# ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
# ^
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/toast_lin.c
# In file included from src/toast.c:9:
# In file included from ./inc/toast.h:12:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# src/toast.c:255:14: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
# progname, len);
# ^~~
# In file included from src/toast_lin.c:9:
# In file included from ./inc/toast.h:12:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# src/toast.c:273:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h: if (s = suffix(p, cut)) strcpy(s, want);13
# : ~~^~~~~~~~~~~~~~~~28
# : warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.hsrc/toast.c:28::27326::8 :warning : note'/*' within block comment [-Wcomment]:
# place parentheses around the assignment to silence this warning
# if (s = suffix(p, cut)) strcpy(s, want);/*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
#
# ^ ^
#
# ( )
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# src/toast.c:273:8: note: use '==' to turn this assignment into an equality comparison
# if (s = suffix(p, cut)) strcpy(s, want);/*efine HAS_UTIMES 1 /* use utimes() syscall instead */
#
# ^ ^
#
# ==
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# 4 warnings generated.
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/toast_ulaw.c
# src/toast.c:420:39: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
# progname,name,st->st_nlink - 1,"s" + (st->st_nlink<=2));
# ~~~~^~~~~~~~~~~~~~~~~~~
# src/toast.c:420:39: note: use array indexing to silence this warning
# progname,name,st->st_nlink - 1,"s" + (st->st_nlink<=2));
# ^
# & [ ]
# src/toast.c:420:18: warning: format specifies type 'char *' but the argument has type 'unsigned long' [-Wformat]
# progname,name,st->st_nlink - 1,"s" + (st->st_nlink<=2));
# ^~~~~~~~~~~~~~~~
# src/toast.c:510:8: warning: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct _IO_FILE *') from 'int' [-Wint-conversion]
# out = fdopen(outfd, WRITE);
# ^ ~~~~~~~~~~~~~~~~~~~~
# src/toast.c:590:10: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
# "s" + (sizeof(s) - cc == 1),
# ~~~~^~~~~~~~~~~~~~~~~~~~~~~
# src/toast.c:590:10: note: use array indexing to silence this warning
# "s" + (sizeof(s) - cc == 1),
# ^
# & [ ]
# src/toast.c:589:16: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
# progname, sizeof(s) - cc,
# ^~~~~~~~~~~~~~
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/toast_alaw.c
# 6 warnings generated.
# In file included from src/toast_ulaw.c:9:
# In file included from ./inc/toast.h:12:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# gcc -ansi -pedantic -c -fPIC -DSASR -DWAV49 -I./inc src/toast_audio.c
# In file included from src/toast_alaw.c:9:
# In file included from ./inc/toast.h:12:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# 13 warnings generated.
# In file included from src/toast_audio.c:9:
# In file included from ./inc/toast.h:12:
# ./inc/config.h:12:28: warning: '/*' within block comment [-Wcomment]
# /*efine SIGHANDLER_T int /* signal handlers are void */
# ^
# ./inc/config.h:13:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
# ^
# ./inc/config.h:25:27: warning: '/*' within block comment [-Wcomment]
# /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */
# ^
# ./inc/config.h:28:26: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
# ^
# ./inc/config.h:32:23: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMES 1 /* use utimes() syscall instead */
# ^
# ./inc/config.h:35:28: warning: '/*' within block comment [-Wcomment]
# /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
# ^
# gcc -ansi -pedantic -shared -Wl,-soname,libgsm.so.1 -o lib/libgsm.so.1.0.13 ./src/add.o ./src/code.o ./src/debug.o ./src/decode.o ./src/long_term.o ./src/lpc.o ./src/preprocess.o ./src/rpe.o ./src/gsm_destroy.o ./src/gsm_decode.o ./src/gsm_encode.o ./src/gsm_explode.o ./src/gsm_implode.o ./src/gsm_create.o ./src/gsm_print.o ./src/gsm_option.o ./src/short_term.o ./src/table.o
# clang-3.8: warning: argument unused during compilation: '-ansi'
# 6 warnings generated.
# 6 warnings generated.
# 6 warnings generated.
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so.1
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so
# gcc -ansi -pedantic -o ./bin/toast ./src/toast.o ./src/toast_lin.o ./src/toast_ulaw.o ./src/toast_alaw.o ./src/toast_audio.o ./lib/libgsm.so
# clang-3.8: warning: argument unused during compilation: '-ansi'
# rm -f ./bin/tcat
# rm -f ./bin/untoast
# ln -s -f toast ./bin/tcat
# ln -s -f toast ./bin/untoast
# .: Done.
# ==> Entering fakeroot environment...
# ==> Starting package()...
# if [ x"/tmp/gsm/pkg/gsm/usr" != x ]; then \
# make /tmp/gsm/pkg/gsm/usr/bin/toast /tmp/gsm/pkg/gsm/usr/bin/tcat /tmp/gsm/pkg/gsm/usr/bin/untoast /tmp/gsm/pkg/gsm/usr/share/man/man1/toast.1; \
# fi
# make[1]: Entering directory '/tmp/gsm/src/gsm-1.0-pl14'
# gcc -ansi -pedantic -shared -Wl,-soname,libgsm.so.1 -o lib/libgsm.so.1.0.13 ./src/add.o ./src/code.o ./src/debug.o ./src/decode.o ./src/long_term.o ./src/lpc.o ./src/preprocess.o ./src/rpe.o ./src/gsm_destroy.o ./src/gsm_decode.o ./src/gsm_encode.o ./src/gsm_explode.o ./src/gsm_implode.o ./src/gsm_create.o ./src/gsm_print.o ./src/gsm_option.o ./src/short_term.o ./src/table.o
# clang-3.8: warning: argument unused during compilation: '-ansi'
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so.1
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so
# gcc -ansi -pedantic -o ./bin/toast ./src/toast.o ./src/toast_lin.o ./src/toast_ulaw.o ./src/toast_alaw.o ./src/toast_audio.o ./lib/libgsm.so
# clang-3.8: warning: argument unused during compilation: '-ansi'
# rm -f /tmp/gsm/pkg/gsm/usr/bin/toast
# cp ./bin/toast /tmp/gsm/pkg/gsm/usr/bin/toast
# chmod 755 /tmp/gsm/pkg/gsm/usr/bin/toast
# rm -f /tmp/gsm/pkg/gsm/usr/bin/tcat
# ln -s -f toast /tmp/gsm/pkg/gsm/usr/bin/tcat
# rm -f /tmp/gsm/pkg/gsm/usr/bin/untoast
# ln -s -f toast /tmp/gsm/pkg/gsm/usr/bin/untoast
# rm -f /tmp/gsm/pkg/gsm/usr/share/man/man1/toast.1
# cp man/toast.1 /tmp/gsm/pkg/gsm/usr/share/man/man1/toast.1
# chmod 444 /tmp/gsm/pkg/gsm/usr/share/man/man1/toast.1
# make[1]: Leaving directory '/tmp/gsm/src/gsm-1.0-pl14'
# if [ x"/tmp/gsm/pkg/gsm/usr" != x ] ; then \
# make /tmp/gsm/pkg/gsm/usr/lib/libgsm.so /tmp/gsm/pkg/gsm/usr/include/gsm/gsm.h /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_explode.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_option.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_print.3 ; \
# fi
# make[1]: Entering directory '/tmp/gsm/src/gsm-1.0-pl14'
# gcc -ansi -pedantic -shared -Wl,-soname,libgsm.so.1 -o lib/libgsm.so.1.0.13 ./src/add.o ./src/code.o ./src/debug.o ./src/decode.o ./src/long_term.o ./src/lpc.o ./src/preprocess.o ./src/rpe.o ./src/gsm_destroy.o ./src/gsm_decode.o ./src/gsm_encode.o ./src/gsm_explode.o ./src/gsm_implode.o ./src/gsm_create.o ./src/gsm_print.o ./src/gsm_option.o ./src/short_term.o ./src/table.o
# clang-3.8: warning: argument unused during compilation: '-ansi'
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so.1
# ln -s -f libgsm.so.1.0.13 ./lib/libgsm.so
# rm -f /tmp/gsm/pkg/gsm/usr/lib/libgsm.so /tmp/gsm/pkg/gsm/usr/lib/libgsm.so.1 /tmp/gsm/pkg/gsm/usr/lib/libgsm.so.1.0.13
# cp lib/libgsm.so.1.0.13 /tmp/gsm/pkg/gsm/usr/lib/libgsm.so.1.0.13
# chmod 755 /tmp/gsm/pkg/gsm/usr/lib/libgsm.so.1.0.13
# ln -s -f libgsm.so.1.0.13 /tmp/gsm/pkg/gsm/usr/lib/libgsm.so
# ln -s -f libgsm.so.1.0.13 /tmp/gsm/pkg/gsm/usr/lib/libgsm.so.1
# rm -f /tmp/gsm/pkg/gsm/usr/include/gsm/gsm.h
# cp inc/gsm.h /tmp/gsm/pkg/gsm/usr/include/gsm/gsm.h
# chmod 444 /tmp/gsm/pkg/gsm/usr/include/gsm/gsm.h
# rm -f /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm.3
# cp man/gsm.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm.3
# chmod 444 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm.3
# rm -f /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_explode.3
# cp man/gsm_explode.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_explode.3
# chmod 444 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_explode.3
# rm -f /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_option.3
# cp man/gsm_option.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_option.3
# chmod 444 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_option.3
# rm -f /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_print.3
# cp man/gsm_print.3 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_print.3
# chmod 444 /tmp/gsm/pkg/gsm/usr/share/man/man3/gsm_print.3
# make[1]: Leaving directory '/tmp/gsm/src/gsm-1.0-pl14'
# install: Done.
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "gsm"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: gsm 1.0.14-1 (Wed Apr 5 00:52:12 UTC 2017)

CMD: pacman --query --file gsm-1.0.14-1-x86_64.pkg.tar.xz
# gsm 1.0.14-1

Creating hybrid package for 'gsm'

Trying to find vanilla package 'gsm'...

CMD: pacman --query --file /mirror/gsmartcontrol-0.8.7-7.pkg.tar.xz
# gsmartcontrol 0.8.7-7

CMD: pacman --query --file /mirror/perl-device-gsm-1.60-2.pkg.tar.xz
# perl-device-gsm 1.60-2

CMD: pacman --query --file /mirror/gsm-1.0.14-1.pkg.tar.xz
# gsm 1.0.14-1

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/tcat
# /usr/bin/untoast
# /usr/bin/toast
# /usr/lib/libgsm.so
# /usr/lib/libgsm.so.1
# /usr/lib/libgsm.so.1.0.13
# /usr/include/gsm/gsm.h
# /usr/share/licenses/gsm/license.txt
# /usr/share/man/man1/toast.1.gz
# /usr/share/man/man3/gsm.3.gz
# /usr/share/man/man3/gsm_explode.3.gz
# /usr/share/man/man3/gsm_option.3.gz
# /usr/share/man/man3/gsm_print.3.gz
# /sysroot/usr/lib/libgsm.so.1.0.13
# /sysroot/usr/lib/libgsm.so
# /sysroot/usr/lib/libgsm.so.1
# /sysroot/usr/include/gsm/gsm.h

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO usr sysroot

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO usr sysroot .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO usr sysroot .MTREE | xz -c -z

CMD: bsdtar -tqf gsm.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/gsm.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/gsm.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/gsm.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'