==> Synchronizing chroot copy [/home/leming/armv8/root] -> [leming]...done
==> Making package: tuntox 0.0.10.1-2 (Fri Dec 22 11:32:58 2023)
==> Retrieving sources...
  -> Cloning tuntox git repo...
Cloning into bare repository '/home/leming/work/tuntox/tuntox'...
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    tuntox ... Skipped
==> Making package: tuntox 0.0.10.1-2 (Fri Dec 22 11:33:06 2023)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (14) argon2-20190702-5  cryptsetup-2.6.1-3  dbus-1.14.10-1
              device-mapper-2.03.22-2  hwdata-0.377-1  kbd-2.6.4-1  kmod-31-1
              libconfig-1.7.3-2  libseccomp-2.5.4-2  libsodium-1.0.19-2
              libvpx-1.13.1-1  opus-1.4-1  systemd-255.1-1  toxcore-1:0.2.18-3

Total Download Size:   12.72 MiB
Total Installed Size:  54.44 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 systemd-255.1-1-aarch64 downloading...
 hwdata-0.377-1-any downloading...
 kbd-2.6.4-1-aarch64 downloading...
 libvpx-1.13.1-1-aarch64 downloading...
 cryptsetup-2.6.1-3-aarch64 downloading...
 dbus-1.14.10-1-aarch64 downloading...
 device-mapper-2.03.22-2-aarch64 downloading...
 toxcore-1:0.2.18-3-aarch64 downloading...
 opus-1.4-1-aarch64 downloading...
 libsodium-1.0.19-2-aarch64 downloading...
 kmod-31-1-aarch64 downloading...
 libconfig-1.7.3-2-aarch64 downloading...
 libseccomp-2.5.4-2-aarch64 downloading...
 argon2-20190702-5-aarch64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing device-mapper...
installing argon2...
installing cryptsetup...
installing dbus...
installing kbd...
installing kmod...
installing hwdata...
installing libseccomp...
installing systemd...
warning: directory permissions differ on /var/log/journal/
filesystem: 755  package: 2755
Creating group 'sys' with GID 3.
Creating group 'mem' with GID 8.
Creating group 'ftp' with GID 11.
Creating group 'mail' with GID 12.
Creating group 'log' with GID 19.
Creating group 'smmsp' with GID 25.
Creating group 'proc' with GID 26.
Creating group 'games' with GID 50.
Creating group 'lock' with GID 54.
Creating group 'network' with GID 90.
Creating group 'floppy' with GID 94.
Creating group 'scanner' with GID 96.
Creating group 'power' with GID 98.
Creating group 'nobody' with GID 65534.
Creating group 'adm' with GID 999.
Creating group 'wheel' with GID 998.
Creating group 'utmp' with GID 997.
Creating group 'audio' with GID 996.
Creating group 'disk' with GID 995.
Creating group 'input' with GID 994.
Creating group 'kmem' with GID 993.
Creating group 'kvm' with GID 992.
Creating group 'lp' with GID 991.
Creating group 'optical' with GID 990.
Creating group 'render' with GID 989.
Creating group 'sgx' with GID 988.
Creating group 'storage' with GID 987.
Creating group 'tty' with GID 5.
Creating group 'uucp' with GID 986.
Creating group 'video' with GID 985.
Creating group 'users' with GID 984.
Creating group 'distcc' with GID 983.
Creating group 'groups' with GID 982.
Creating group 'systemd-journal' with GID 981.
Creating group 'rfkill' with GID 980.
Creating group 'bin' with GID 1.
Creating user 'bin' (n/a) with UID 1 and GID 1.
Creating group 'daemon' with GID 2.
Creating user 'daemon' (n/a) with UID 2 and GID 2.
Creating user 'mail' (n/a) with UID 8 and GID 12.
Creating user 'ftp' (n/a) with UID 14 and GID 11.
Creating group 'http' with GID 33.
Creating user 'http' (n/a) with UID 33 and GID 33.
Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534.
Creating group 'dbus' with GID 81.
Creating user 'dbus' (System Message Bus) with UID 81 and GID 81.
Creating user 'distcc' (distcc user) with UID 983 and GID 983.
Creating group 'systemd-coredump' with GID 979.
Creating user 'systemd-coredump' (systemd Core Dumper) with UID 979 and GID 979.
Creating group 'systemd-network' with GID 978.
Creating user 'systemd-network' (systemd Network Management) with UID 978 and GID 978.
Creating group 'systemd-oom' with GID 977.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 977 and GID 977.
Creating group 'systemd-journal-remote' with GID 976.
Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 976 and GID 976.
Creating group 'systemd-resolve' with GID 975.
Creating user 'systemd-resolve' (systemd Resolver) with UID 975 and GID 975.
Creating group 'systemd-timesync' with GID 974.
Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 974 and GID 974.
Creating group 'tss' with GID 973.
Creating user 'tss' (tss user for tpm2) with UID 973 and GID 973.
Creating group 'uuidd' with GID 68.
Creating user 'uuidd' (n/a) with UID 68 and GID 68.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
    polkit: allow administration as unprivileged user
    curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
    gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed]
    qrencode: show QR codes
    iptables: firewall features
    libbpf: support BPF programs
    libpwquality: check password quality
    libfido2: unlocking LUKS2 volumes with FIDO2 token
    libp11-kit: support PKCS#11 [installed]
    tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed]
installing libconfig...
installing libsodium...
installing libvpx...
installing opus...
installing toxcore...
:: Running post-transaction hooks...
( 1/11) Creating system user accounts...
Creating group 'tox-bootstrapd' with GID 199.
Creating user 'tox-bootstrapd' (Tox bootstrapd) with UID 199 and GID 199.
( 2/11) Updating journal message catalog...
( 3/11) Reloading system manager configuration...
  Skipped: Current root is not booted.
( 4/11) Reloading user manager configuration...
  Skipped: Current root is not booted.
( 5/11) Updating udev hardware database...
( 6/11) Applying kernel sysctl settings...
  Skipped: Current root is not booted.
( 7/11) Creating temporary files...
( 8/11) Reloading device manager configuration...
  Skipped: Device manager is not running.
( 9/11) Arming ConditionNeedsUpdate...
(10/11) Reloading system bus configuration...
  Skipped: Current root is not booted.
(11/11) Updating the info directory file...
[?25h==> Checking buildtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (5) perl-error-0.17029-5  perl-mailtools-2.21-7  perl-timedate-2.33-5
             git-2.43.0-1  libnsl-2.0.1-1

Total Download Size:    6.57 MiB
Total Installed Size:  42.02 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 git-2.43.0-1-aarch64 downloading...
 perl-mailtools-2.21-7-any downloading...
 perl-timedate-2.33-5-any downloading...
 perl-error-0.17029-5-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    openssh: ssh transport and crypto
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing libnsl...
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 972.
Creating user 'git' (git daemon user) with UID 972 and GID 972.
(2/4) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Warn about old perl modules
[?25h==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of tuntox git repo...
Cloning into 'tuntox'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
SOURCES = $(wildcard *.c)
DEPS=toxcore
CC=gcc
CFLAGS += $(shell pkg-config --cflags $(DEPS))
LDFLAGS += $(shell pkg-config --static --libs $(DEPS))
DSO_LDFLAGS=$(LDFLAGS)
DSO_LDFLAGS += $(shell pkg-config --libs $(DEPS))
OBJECTS=$(SOURCES:.c=.o)
INCLUDES = $(wildcard *.h)
PYTHON = /usr/bin/env python3
INSTALL = install -C
INSTALL_MKDIR = $(INSTALL) -d -m 755

prefix ?= /usr
bindir ?= $(prefix)/bin

# Targets
all: tuntox tuntox_nostatic

gitversion.h: FORCE
	@if [ -f .git/HEAD ] ; then echo "  GEN   $@"; echo "#define GITVERSION \"$(shell git rev-parse HEAD)\"" > $@; fi

FORCE:

tox_bootstrap.h: 
	$(PYTHON) generate_tox_bootstrap.py 

%.o: %.c $(INCLUDES) gitversion.h tox_bootstrap.h
	@echo "  CC    $@"
	@$(CC) -c $(CFLAGS) $< -o $@

tuntox: $(OBJECTS) $(INCLUDES)
	$(CC) -o $@ $(OBJECTS) -lpthread $(LDFLAGS) 

tuntox_nostatic: $(OBJECTS) $(INCLUDES)
	$(CC) -o $@ $(OBJECTS) -lpthread $(DSO_LDFLAGS) 

cscope.out:
	@echo "  GEN   $@"
	@cscope -bv ./*.[ch] &> /dev/null

clean:
	rm -f *.o tuntox cscope.out gitversion.h tox_bootstrap.h

install: tuntox_nostatic
	$(INSTALL_MKDIR) -d $(DESTDIR)$(bindir)
	cp tuntox_nostatic $(DESTDIR)$(bindir)/tuntox

.PHONY: all clean tuntox
==> Starting build()...
  GEN   gitversion.h
  CC    cJSON.o
  CC    client.o
  CC    gitversion.o
  CC    log.o
  CC    main.o
  CC    tox_bootstrap_json.o
  CC    util.o
tox_bootstrap_json.c: In function 'do_bootstrap_file':
tox_bootstrap_json.c:30:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
main.c: In function 'do_daemonize':
main.c:1121:13: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result]
main.c:1131:17: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result]
main.c:1201:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
main.c:1202:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
main.c:1203:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
gcc -o tuntox_nostatic cJSON.o client.o gitversion.o log.o main.o tox_bootstrap_json.o util.o -lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/usr/lib -ltoxcore -lnsl -lrt -lsodium -lpthread -pthread -lopus -lvpx -lm -lm -lpthread -L/usr/usr/lib -ltoxcore 
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "tuntox"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: tuntox 0.0.10.1-2 (Fri Dec 22 11:33:15 2023)
==> Cleaning up...