Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apparmor: add package #15643

Merged
merged 1 commit into from
Jun 10, 2021
Merged

apparmor: add package #15643

merged 1 commit into from
Jun 10, 2021

Conversation

oskarirauta
Copy link
Contributor

@oskarirauta oskarirauta commented May 17, 2021

Signed-off-by: Oskari Rauta [email protected]

Maintainer: Oskari Rauta / @oskarirauta
Compile tested: x86_64, server, recent snapshot
Run tested: x86_64, server, recent snapshot, tested, works

Description:
AppArmor userland libraries and utilities.

Replaces #15481

@oskarirauta
Copy link
Contributor Author

Sorry. While refreshing tree to current, I managed to break my commits and was not able to undo the damage, so that's why another pr....

This is same as before, except this is v3.0.1 when old was 3.0.0

utils/apparmor/Makefile Outdated Show resolved Hide resolved
@oskarirauta
Copy link
Contributor Author

I'll provide update after I have tested this against new python readline module. Still takes sometime to build. Should be all done by tomorrow evening.. (of local time in Finland)

@oskarirauta
Copy link
Contributor Author

@CodeFetch and @PolynomialDivision

Review changes please.

Copy link
Contributor

@CodeFetch CodeFetch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the building process can be simplified for some of the packages with OpenWrt's automake functions. But I'm not the right one to judge that as I'm not so experienced with OpenWrt's package build system. The rest looks good to me.

utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
utils/apparmor/Makefile Outdated Show resolved Hide resolved
Copy link
Contributor Author

@oskarirauta oskarirauta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CodeFetch

All requests except BUILDONLY:=1 have been fulfilled.
It should be there to avoid calling make install.

depend on python's readline module has been merged, so all depends are now available.

utils/apparmor/Makefile Outdated Show resolved Hide resolved
@PolynomialDivision
Copy link
Member

looks good to me. @CodeFetch ?

@CodeFetch
Copy link
Contributor

CodeFetch commented Jun 7, 2021

@oskarirauta Build fails with clean OpenWrt master with your patches...
Unfortunately output is truncated.
Dependency for python3-readline could not be satisfied.

(...)
configure: WARNING: unrecognized options: --disable-nls
(...)
configure: error: swig is required when enabling python bindings
(...)

@CodeFetch
Copy link
Contributor

Here it is:

WARNING: Makefile 'package/feeds/packages/apparmor/Makefile' has a dependency on 'python3-readline', which does not exist
make[1]: Entering directory '/home/codefetch/openwrtapparmor'
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
rm -rf /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1
rm -f /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/stamp/.apparmor_installed
rm -f /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/packages/apparmor.list
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
time: package/feeds/packages/apparmor/clean#0.11#0.05#0.16
make[1]: Leaving directory '/home/codefetch/openwrtapparmor'
WARNING: Makefile 'package/feeds/packages/apparmor/Makefile' has a dependency on 'python3-readline', which does not exist
make[1]: Entering directory '/home/codefetch/openwrtapparmor'
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.apparmor-3.0.1.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "apparmor-3.0.1.tar.xz" "303ceca041ad8023fa44cdda366448d60b6299790266834b4078d30b70ad27f9" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/codefetch/openwrtapparmor/tmp/dl && cd /home/codefetch/openwrtapparmor/tmp/dl && rm -rf apparmor-3.0.1 && [ \! -d apparmor-3.0.1 ] && git clone  https://gitlab.com/apparmor/apparmor.git apparmor-3.0.1 && (cd apparmor-3.0.1 && git checkout 0325ba06da6eeb5acf3e568063a08136fd0913e0 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd apparmor-3.0.1 && git log -1 --format='\''@%ct'\''` && rm -rf apparmor-3.0.1/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c apparmor-3.0.1 | 	xz -zc -7e > /home/codefetch/openwrtapparmor/tmp/dl/apparmor-3.0.1.tar.xz && mv /home/codefetch/openwrtapparmor/tmp/dl/apparmor-3.0.1.tar.xz /home/codefetch/openwrtapparmor/dl/ && rm -rf apparmor-3.0.1;  )    '
touch /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/.prepared_e36e878ae28c5299f008945f291753c8_6664517399ebbbc92a37c5bb081b5c53_check
. /home/codefetch/openwrtapparmor/include/shell.sh; xzcat /home/codefetch/openwrtapparmor/dl/apparmor-3.0.1.tar.xz | tar -C /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1

Applying ./patches/010-autoconf-libapparmor.patch using plaintext: 
patching file libraries/libapparmor/Makefile

Applying ./patches/020-fix-ss-path.patch using plaintext: 
patching file utils/aa-unconfined

Applying ./patches/030-remove-pynotify2-dep.patch using plaintext: 
patching file utils/aa-notify

Applying ./patches/040-remove-bash-dep.patch using plaintext: 
patching file utils/aa-decode
touch /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/.prepared_e36e878ae28c5299f008945f291753c8_6664517399ebbbc92a37c5bb081b5c53
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
time: package/feeds/packages/apparmor/prepare#0.35#0.11#0.43
make[1]: Leaving directory '/home/codefetch/openwrtapparmor'
WARNING: Makefile 'package/feeds/packages/apparmor/Makefile' has a dependency on 'python3-readline', which does not exist
make[1]: Entering directory '/home/codefetch/openwrtapparmor'
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/toolchain'
echo "libc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/toolchain'
time: package/libs/toolchain/compile#0.16#0.03#0.18
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/findutils'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.findutils-4.8.0.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "findutils-4.8.0.tar.xz" "57127b7e97d91282c6ace556378d5455a9509898297e46e10443016ea1387164" "" "@GNU/findutils"    '
echo "findutils-xargs" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/findutils.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/findutils'
time: package/feeds/packages/findutils/compile#0.19#0.03#0.19
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/zlib'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.zlib-1.2.11.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "zlib-1.2.11.tar.xz" "4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066" "" "@SF/libpng" "http://www.zlib.net"    '
echo "zlib" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/zlib.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/zlib'
time: package/libs/zlib/compile#0.16#0.03#0.17
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/gettext'
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/gettext'
time: package/libs/gettext/compile#0.34#0.04#0.37
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/libiconv'
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/libiconv'
time: package/libs/libiconv/compile#0.33#0.06#0.39
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libxml2'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.libxml2-2.9.10.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "libxml2-2.9.10.tar.gz" "aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f" "" "http://xmlsoft.org/sources/"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libxml2'
time: package/feeds/packages/libxml2/compile#0.22#0.06#0.23
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/db47'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.db-4.7.25.NC.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "db-4.7.25.NC.tar.gz" "cd39c711023ff44c01d3c8ff0323eef7318660772b24f287556e6bf676a12535" "" "http://download.oracle.com/berkeley-db/"    '
echo "libdb47" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/db47.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/db47'
time: package/feeds/packages/db47/compile#0.26#0.05#0.27
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/gdbm'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.gdbm-1.19.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "gdbm-1.19.tar.gz" "37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc" "" "@GNU/gdbm"    '
echo "libgdbm" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/gdbm.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/gdbm'
time: package/feeds/packages/gdbm/compile#0.17#0.03#0.18
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libffi'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.libffi-3.3.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "libffi-3.3.tar.gz" "72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056" "" "https://sourceware.org/pub/libffi/"    '
echo "libffi" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/libffi.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libffi'
time: package/feeds/packages/libffi/compile#0.20#0.02#0.20
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python-pip-conf'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python-pip-conf'
time: package/feeds/packages/python-pip-conf/compile#0.09#0.02#0.10
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/devel/ninja'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.ninja-1.10.2.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "ninja-1.10.2.tar.gz" "ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed" "" "https://codeload.github.com/ninja-build/ninja/tar.gz/v1.10.2?"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/devel/ninja'
time: package/feeds/packages/ninja/host-compile#0.17#0.04#0.18
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/expat'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.expat-2.2.10.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "expat-2.2.10.tar.xz" "5dfe538f8b5b63f03e98edac520d7d9a6a4d22e482e5c96d4d06fcc5485c25f2" "" "@SF/expat"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/expat'
time: package/feeds/packages/expat/host-compile#0.17#0.03#0.17
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libffi'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.libffi-3.3.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "libffi-3.3.tar.gz" "72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056" "" "https://sourceware.org/pub/libffi/"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/libffi'
time: package/feeds/packages/libffi/host-compile#0.18#0.02#0.18
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/utils/bzip2'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.bzip2-1.0.8.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "bzip2-1.0.8.tar.gz" "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269" "" "https://sourceware.org/pub/bzip2"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/utils/bzip2'
time: package/utils/bzip2/host-compile#0.24#0.06#0.27
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python3'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.Python-3.9.5.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "Python-3.9.5.tar.xz" "0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" "" "https://www.python.org/ftp/python/3.9.5"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python3'
time: package/feeds/packages/python3/host-compile#0.35#0.06#0.35
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/sqlite3'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.sqlite-autoconf-3330000.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "sqlite-autoconf-3330000.tar.gz" "106a2c48c7f75a298a7557bcc0d5f4f454e5b43811cc738b7ca294d6956bbb15" "" "https://www.sqlite.org/2020/"    '
echo "libsqlite3" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/sqlite3.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/libs/sqlite3'
time: package/feeds/packages/sqlite3/compile#0.16#0.04#0.23
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/xz'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.xz-5.2.5.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "xz-5.2.5.tar.xz" "3e1e518ffc912f86608a8cb35e4bd41ad1aec210df2a47aaa1f95e7f5576ef56" "" "@SF/lzmautils"    '
echo "liblzma" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/xz.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/xz'
time: package/feeds/packages/xz/compile#0.17#0.02#0.18
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/ncurses'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.ncurses-6.2.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "ncurses-6.2.tar.gz" "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d" "" "@GNU/ncurses"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/ncurses'
time: package/libs/ncurses/host-compile#0.21#0.04#0.22
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/ncurses'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.ncurses-6.2.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "ncurses-6.2.tar.gz" "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d" "" "@GNU/ncurses"    '
echo "terminfo" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/ncurses.default.install
echo "libncurses" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/ncurses.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/ncurses'
time: package/libs/ncurses/compile#0.23#0.03#0.23
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/openssl'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.openssl-1.1.1k.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "openssl-1.1.1k.tar.gz" "892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" "" "http://www.openssl.org/source/" "http://www.openssl.org/source/old/1.1.1/" "http://ftp.fi.muni.cz/pub/openssl/source/" "http://ftp.fi.muni.cz/pub/openssl/source/old/1.1.1/" "ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/" "ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/old/1.1.1/"    '
echo "libopenssl" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/openssl.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/openssl'
time: package/libs/openssl/compile#0.20#0.06#0.23
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/utils/bzip2'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.bzip2-1.0.8.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "bzip2-1.0.8.tar.gz" "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269" "" "https://sourceware.org/pub/bzip2"    '
echo "libbz2" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/bzip2.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/utils/bzip2'
time: package/utils/bzip2/compile#0.26#0.04#0.32
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/utils/util-linux'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.util-linux-2.36.1.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "util-linux-2.36.1.tar.xz" "09fac242172cd8ec27f0739d8d192402c69417617091d8c6e974841568f37eed" "" "@KERNEL/linux/utils/util-linux/v2.36"    '
echo "libuuid" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/util-linux.default.install
echo "libblkid" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/util-linux.default.install
echo "libsmartcols" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/util-linux.default.install
echo "partx-utils" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/util-linux.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/utils/util-linux'
time: package/utils/util-linux/compile#0.24#0.05#0.26
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/system/ca-certificates'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.ca-certificates_20210119.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "ca-certificates_20210119.tar.xz" "daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665" "" "@DEBIAN/pool/main/c/ca-certificates"    '
echo "ca-bundle" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/system/ca-certificates'
time: package/system/ca-certificates/compile#0.16#0.02#0.17
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python3'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.Python-3.9.5.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "Python-3.9.5.tar.xz" "0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" "" "https://www.python.org/ftp/python/3.9.5"    '
echo "python3-asyncio" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-cgi" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-cgitb" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-codecs" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-ctypes" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-dbm" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-decimal" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-distutils" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-email" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-gdbm" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-logging" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-lzma" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-multiprocessing" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-ncurses" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-openssl" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-pydoc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-sqlite3" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-unittest" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-urllib" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-xml" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "libpython3" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-base" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3-light" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
echo "python3" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python3.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python3'
time: package/feeds/packages/python3/compile#0.37#0.11#0.44
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python-psutil'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.psutil-5.8.0.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "psutil-5.8.0.tar.gz" "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6" "" "https://files.pythonhosted.org/packages/source/p/psutil"    '
echo "python3-psutil" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/python-psutil.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/lang/python/python-psutil'
time: package/feeds/packages/python-psutil/compile#0.16#0.02#0.17
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/firmware/linux-firmware'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.linux-firmware-20201118.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "linux-firmware-20201118.tar.xz" "863d5a31da725b856a917280d1e3014929b3bc3d4e6e5faecf530c13afb7e2b9" "" "@KERNEL/linux/kernel/firmware"    '
echo "bnx2-firmware" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux-firmware.default.install
echo "r8169-firmware" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux-firmware.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.82#0.31#0.93
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/firmware/prism54-firmware'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/firmware/prism54-firmware'
time: package/firmware/prism54-firmware/compile#0.31#0.03#0.33
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/kernel/linux'
echo "kernel" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-crypto-crc32c" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-crypto-hash" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-fs-vfat" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-hwmon-core" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-i2c-core" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-i2c-algo-bit" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-input-core" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-lib-crc-ccitt" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-lib-crc32c" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-libphy" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
WARNING: kmod-mii is not available in the kernel config - generating empty package
echo "kmod-mii" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-phy-realtek" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-r8169" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-e1000" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-e1000e" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-igb" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ixgbe" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-forcedeth" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-bnx2" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-reject" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-reject6" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-ipt" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-ipt6" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ipt-core" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack6" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-nat" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nf-flow" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ipt-conntrack" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ipt-offload" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ipt-nat" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ip6tables" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-slhc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ppp" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-pppox" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-pppoe" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-mdio" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-netlink-diag" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nls-base" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nls-cp437" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nls-iso8859-1" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-nls-utf8" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-pps" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-ptp" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-amazon-ena" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
echo "kmod-amd-xgbe" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/kernel/linux'
time: package/kernel/linux/compile#1.73#0.07#1.81
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/libmnl'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.libmnl-1.0.4.tar.bz2.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "libmnl-1.0.4.tar.bz2" "171f89699f286a5854b72b91d06e8f8e3683064c5901fb09d954a9ab6f551f81" "" "http://www.netfilter.org/projects/libmnl/files" "ftp://ftp.netfilter.org/pub/libmnl"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/libmnl'
time: package/libs/libmnl/compile#0.24#0.05#0.32
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/libnl-tiny'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.libnl-tiny-2020-08-05-c291088f.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "libnl-tiny-2020-08-05-c291088f.tar.xz" "99bcce12701bb34dadb39689d95c2c5cf1e27719d0ecfd645d3957a8947025ac" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/codefetch/openwrtapparmor/tmp/dl && cd /home/codefetch/openwrtapparmor/tmp/dl && rm -rf libnl-tiny-2020-08-05-c291088f && [ \! -d libnl-tiny-2020-08-05-c291088f ] && git clone  https://git.openwrt.org/project/libnl-tiny.git libnl-tiny-2020-08-05-c291088f && (cd libnl-tiny-2020-08-05-c291088f && git checkout c291088f631d1694f7ba0444b59677b194348da8 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd libnl-tiny-2020-08-05-c291088f && git log -1 --format='\''@%ct'\''` && rm -rf libnl-tiny-2020-08-05-c291088f/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c libnl-tiny-2020-08-05-c291088f | 	xz -zc -7e > /home/codefetch/openwrtapparmor/tmp/dl/libnl-tiny-2020-08-05-c291088f.tar.xz && mv /home/codefetch/openwrtapparmor/tmp/dl/libnl-tiny-2020-08-05-c291088f.tar.xz /home/codefetch/openwrtapparmor/dl/ && rm -rf libnl-tiny-2020-08-05-c291088f;  )    '
echo "libnl-tiny" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/libnl-tiny.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/libnl-tiny'
time: package/libs/libnl-tiny/compile#0.18#0.02#0.19
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/devel/binutils'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.binutils-2.35.2.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "binutils-2.35.2.tar.xz" "dcd5b0416e7b0a9b24bed76cd8c6c132526805761863150a26d016415b8bdc7b" "" "@GNU/binutils"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/devel/binutils'
time: package/devel/binutils/compile#0.40#0.11#0.38
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/argp-standalone'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.argp-standalone-1.3.tar.gz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "argp-standalone-1.3.tar.gz" "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be" "" "http://www.lysator.liu.se/~nisse/misc/"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/argp-standalone'
time: package/libs/argp-standalone/compile#0.20#0.03#0.23
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/libs/elfutils'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.elfutils-0.180.tar.bz2.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "elfutils-0.180.tar.bz2" "b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d" "" "https://sourceware.org/elfutils/ftp/0.180"    '
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/libs/elfutils'
time: package/libs/elfutils/compile#0.19#0.07#0.22
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/network/utils/bpftools'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/network/utils/bpftools'
time: package/network/utils/bpftools/minimal/compile#0.10#0.02#0.11
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/network/utils/iptables'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.iptables-1.8.7.tar.bz2.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "iptables-1.8.7.tar.bz2" "c109c96bb04998cd44156622d36f8e04b140701ec60531a10668cfdff5e8d8f0" "" "https://netfilter.org/projects/iptables/files"    '
echo "libxtables" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iptables.default.install
echo "libip4tc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iptables.default.install
echo "libip6tc" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iptables.default.install
echo "iptables" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iptables.default.install
echo "ip6tables" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iptables.default.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/network/utils/iptables'
time: package/network/utils/iptables/compile#0.18#0.04#0.25
make[2]: Entering directory '/home/codefetch/openwrtapparmor/package/network/utils/iproute2'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.iproute2-5.11.0.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "iproute2-5.11.0.tar.xz" "c5e2ea108212b3445051b35953ec267f9f3469e1d5c67ac034ab559849505c54" "" "@KERNEL/linux/utils/net/iproute2"    '
echo "ss" >> /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/pkginfo/iproute2.tctiny.install
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/package/network/utils/iproute2'
time: package/network/utils/iproute2/tctiny/compile#0.19#0.04#0.21
make[2]: Entering directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
mkdir -p /home/codefetch/openwrtapparmor/dl
SHELL= flock /home/codefetch/openwrtapparmor/tmp/.apparmor-3.0.1.tar.xz.flock -c '  	/home/codefetch/openwrtapparmor/scripts/download.pl "/home/codefetch/openwrtapparmor/dl" "apparmor-3.0.1.tar.xz" "303ceca041ad8023fa44cdda366448d60b6299790266834b4078d30b70ad27f9" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/codefetch/openwrtapparmor/tmp/dl && cd /home/codefetch/openwrtapparmor/tmp/dl && rm -rf apparmor-3.0.1 && [ \! -d apparmor-3.0.1 ] && git clone  https://gitlab.com/apparmor/apparmor.git apparmor-3.0.1 && (cd apparmor-3.0.1 && git checkout 0325ba06da6eeb5acf3e568063a08136fd0913e0 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd apparmor-3.0.1 && git log -1 --format='\''@%ct'\''` && rm -rf apparmor-3.0.1/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c apparmor-3.0.1 | 	xz -zc -7e > /home/codefetch/openwrtapparmor/tmp/dl/apparmor-3.0.1.tar.xz && mv /home/codefetch/openwrtapparmor/tmp/dl/apparmor-3.0.1.tar.xz /home/codefetch/openwrtapparmor/dl/ && rm -rf apparmor-3.0.1;  )    '
rm -f /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/.configured_*
rm -f /home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/stamp/.apparmor_installed
make -C /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor configure
make[3]: Entering directory '/home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor'
/home/codefetch/openwrtapparmor/staging_dir/host/bin/aclocal
/home/codefetch/openwrtapparmor/staging_dir/host/bin/autoconf --force
/home/codefetch/openwrtapparmor/staging_dir/host/bin/libtoolize --automake -c --force
/home/codefetch/openwrtapparmor/staging_dir/host/bin/automake -ac
configure.ac:8: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:8: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:10: installing './compile'
configure.ac:88: installing './config.guess'
configure.ac:88: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
doc/Makefile.am:10: warning: subst .2,.pod,$(man_MANS: non-POSIX variable name
doc/Makefile.am:10: (probably a GNU make extension)
doc/Makefile.am:10: warning: subst .3,.pod,$(man_MANS: non-POSIX variable name
doc/Makefile.am:10: (probably a GNU make extension)
doc/Makefile.am:17: warning: '%'-style pattern rules are a GNU make extension
doc/Makefile.am:26: warning: '%'-style pattern rules are a GNU make extension
src/Makefile.am:63: warning: '%'-style pattern rules are a GNU make extension
src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
parallel-tests: installing './test-driver'
testsuite/Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
make[3]: Leaving directory '/home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor'
rm -f /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor/Makefile
/home/codefetch/openwrtapparmor/staging_dir/host/bin/sed -i -e 's#ac_cv_path_PYTHON_CONFIG=#ac_cv_path_X_PYTHON_CONFIG=#g' /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor/configure
(cd /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/libraries/libapparmor/; if [ -x ./configure ]; then find /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/ -name config.guess | xargs -r chmod u+w; find /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/ -name config.guess | xargs -r -n1 cp --remove-destination /home/codefetch/openwrtapparmor/scripts/config.guess; find /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/ -name config.sub | xargs -r chmod u+w; find /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/ -name config.sub | xargs -r -n1 cp --remove-destination /home/codefetch/openwrtapparmor/scripts/config.sub; AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include " CPPFLAGS="-I/home/codefetch/openwrtapparmor/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/codefetch/openwrtapparmor/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/codefetch/openwrtapparmor/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include " LDFLAGS="-L/home/codefetch/openwrtapparmor/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/codefetch/openwrtapparmor/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro -L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib "  SHELL= PYTHON_VERSION=3.9 PYTHON_VERSIONS=python3.9 PYTHON=python3.9 PYTHON_CPPFLAGS="-I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/include/python3.9" PYTHON_LDFLAGS="-I/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/include/python3.9 -L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib -L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/python3.9" PYTHON_EXTRA_LDFLAGS="-L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib -L/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/usr/lib/python3.9/config-3.9 -lpthread -ldl -lm -lz -lpython3.9" ac_cv_path_PYTHON_CONFIG=/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl/root-x86/usr/bin/python3.9-config   ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  _python_sysroot="/home/codefetch/openwrtapparmor/staging_dir/target-x86_64_musl" _python_prefix="/usr" _python_exec_prefix="/usr" --with-python --without-perl --without-ruby --disable-man-pages ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/codefetch/openwrtapparmor/include/site/x86_64
checking for a BSD-compatible install... /home/codefetch/openwrtapparmor/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-openwrt-linux-strip... x86_64-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for x86_64-openwrt-linux-gcc... x86_64-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-openwrt-linux-musl-gcc accepts -g... yes
checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether x86_64-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of x86_64-openwrt-linux-musl-gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
checking for a sed that does not truncate output... /home/codefetch/openwrtapparmor/staging_dir/host/bin/sed
checking pkg-config is at least version 0.9.0... yes
checking for swig... no
checking whether the libapparmor debug output should be enabled... no
checking whether the libapparmor man pages should be generated... no
checking whether python bindings are enabled... yes
configure: error: swig is required when enabling python bindings
make[2]: *** [Makefile:214: /home/codefetch/openwrtapparmor/build_dir/target-x86_64_musl/apparmor-3.0.1/.configured_a17fb5ef857664f03cd0ce37cc5ea591] Error 1
make[2]: Leaving directory '/home/codefetch/openwrtapparmor/feeds/packages/utils/apparmor'
time: package/feeds/packages/apparmor/compile#3.99#0.33#4.28
    ERROR: package/feeds/packages/apparmor failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/apparmor/compile] Error 1
make[1]: Leaving directory '/home/codefetch/openwrtapparmor'
make: *** [/home/codefetch/openwrtapparmor/include/toplevel.mk:230: package/apparmor/compile] Fehler 2

@oskarirauta
Copy link
Contributor Author

@oskarirauta Build fails with clean OpenWrt master with your patches...
Unfortunately output is truncated.
Dependency for python3-readline could not be satisfied.

(...)
configure: WARNING: unrecognized options: --disable-nls
(...)
configure: error: swig is required when enabling python bindings
(...)

python3-readline should be satisfied. It's here:
49faf5d

and it's merged.

@CodeFetch
Copy link
Contributor

@oskarirauta I've used your branch for building. It needs a rebase.

@oskarirauta
Copy link
Contributor Author

@oskarirauta I've used your branch for building. It needs a rebase.

It is already re-based. swig/host dependancy added. Try again.

@CodeFetch
Copy link
Contributor

@oskarirauta Can you please rebase so that I do not need to fork and rebase first?

@CodeFetch
Copy link
Contributor

@oskarirauta Github says This branch is 1 commit ahead, 164 commits behind openwrt:master.

@oskarirauta
Copy link
Contributor Author

@oskarirauta Build fails with clean OpenWrt master with your patches...
Unfortunately output is truncated.
Dependency for python3-readline could not be satisfied.

(...)
configure: WARNING: unrecognized options: --disable-nls
(...)
configure: error: swig is required when enabling python bindings
(...)

You also need to use packages master branch.. python3-readline is in master..

@CodeFetch
Copy link
Contributor

@oskarirauta I know, but if I change it in feeds I'd get a conflict. Thus I'd need to make a fork of your branch and rebase it. It's easier when you rebase it.

@oskarirauta
Copy link
Contributor Author

@oskarirauta Github says This branch is 1 commit ahead, 164 commits behind openwrt:master.

Sorry, I don't know how to successfully do that. Last time I tried, I ended up messing it so badly that I had re-create my PR from fresh- and now it's already 164 commits behind.. But nevermind my tree, just use the patch.. Or you can guide me to re-base my build branch successfully..

@PolynomialDivision
Copy link
Member

@CodeFetch you can also just do

curl https://patch-diff.githubusercontent.com/raw/openwrt/packages/pull/15643.patch | git am 

in feeds/packages/ and recompile. :)

@CodeFetch
Copy link
Contributor

I think you can just click fetch upstream in Github or https://gist.github.com/CristinaSolana/1885435...
But now that my build is totally messed up. I need to look how to fix that first...

@oskarirauta
Copy link
Contributor Author

I think you can just click fetch upstream in Github or https://gist.github.com/CristinaSolana/1885435...
But now that my build is totally messed up. I need to look how to fix that first...

That's what I did last time and suddenly my PR contained all the changes since original checkout used when I created my branch, so that definitely is not it..

@PolynomialDivision
Copy link
Member

@oskarirauta

You typically do something lilke

git remote add upstream https://github.com/openwrt/packages.git

git fetch upstream

git rebase upstream/master

@oskarirauta
Copy link
Contributor Author

oskarirauta commented Jun 7, 2021

Let's take a look if I broke it..
Doesn't seem like I did.. Now it's only 140 commits behind ;)

@CodeFetch
Copy link
Contributor

@oskarirauta That looks good! Thanks!

@oskarirauta
Copy link
Contributor Author

That looks good! Thanks!

Now it looks even better, thanks to assist by @PolynomialDivision

@PolynomialDivision
Copy link
Member

Just ping me then you finished testing.

@oskarirauta
Copy link
Contributor Author

@PolynomialDivision, @CodeFetch

Try now, should be fixed. Seems that for some reason, python3.9-config's location has changed.

@CodeFetch
Copy link
Contributor

Great, builds now!

@oskarirauta
Copy link
Contributor Author

Yes, I also started fresh and have a verified "fresh" build new. Confirmed.

@oskarirauta
Copy link
Contributor Author

oskarirauta commented Jun 9, 2021

@PolynomialDivision patch refreshed. Tabs replaced back to spaces.
Try now.

@PolynomialDivision
Copy link
Member

@PolynomialDivision patch refreshed. Tabs replaced back to spaces.

Thanks. That makes the patch and ongoing development easier. Let me also compile it again and then I will merge. I think @CodeFetch also approved.

@PolynomialDivision
Copy link
Member

PolynomialDivision commented Jun 9, 2021

Nope, does not compile for me. xD

@PolynomialDivision
Copy link
Member

# Building binutils
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include  -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/include -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include/fortify -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include  -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/include -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include/fortify -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include " LDFLAGS="-L/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/lib -L/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/lib -znow -zrelro -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/python3.9 " PYTHON= CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include -I/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/libraries/libapparmor/include" CPPFLAGS="-I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/include -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include/fortify -I/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include -I/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/libraries/libapparmor/include" LDFLAGS="-L/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/lib -L/home/nick/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/lib -znow -zrelro -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -L/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/python3.9 -L/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/libraries/libapparmor/src/.libs" USE_SYSTEM=0 make -j1 -C /home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/binutils AR="arm-openwrt-linux-muslgnueabi-gcc-ar" AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1=apparmor-3.0.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/home/nick/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include" LD=arm-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-gcc-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm"
make[3]: Entering directory '/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/binutils'
/usr/bin/pod2man aa-exec.pod --release="AppArmor 3.0.0" --center=AppArmor --stderr --section=1 > aa-exec.1
/bin/sh: line 1: /usr/bin/pod2man: No such file or directory
make[3]: *** [../common//Make.rules:112: aa-exec.1] Error 127
make[3]: Leaving directory '/home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/binutils'
make[2]: *** [Makefile:221: /home/nick/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/apparmor-3.0.1/.built] Error 2
make[2]: Leaving directory '/home/nick/openwrt/feeds/packages/utils/apparmor'
time: package/apparmor/compile#0.77#0.24#0.99
    ERROR: package/apparmor failed to build.
make[1]: *** [package/Makefile:116: package/apparmor/compile] Error 1
make[1]: Leaving directory '/home/nick/openwrt'
make: *** [/home/nick/openwrt/include/toplevel.mk:230: package/apparmor/compile] Error 2

@oskarirauta
Copy link
Contributor Author

Argh! Your build host lacks pod2man, mine is archlinux, so it's included by default with development packages, so I missed this one.. Back to drawing table..

@oskarirauta
Copy link
Contributor Author

@PolynomialDivision - try now. I patched makefiles to skip docs. I also added another patch which patches profile for dnsmasq to work "out-of-the-box" in openwrt. Profile as default was suitable for Ubuntu and such...

@oskarirauta
Copy link
Contributor Author

apparmor

Usage testing in production environment works nicely. After patching that dnsmasq profile, everything that belongs to standard install (and even some more) works without issues or confinement that would block normal use. Ofcourse there are packages that require creation of profile, but this wouldn't be useful at all, if it would allow everything. Crucial security parts of system, including firewall for example, work in unconfined state which is of course desired way. Firewall wouldn't be very good intrusion stopper, if it would had been blocked..

Signed-off-by: Oskari Rauta <[email protected]>
@PolynomialDivision
Copy link
Member

@PolynomialDivision - try now. I patched makefiles to skip docs. I also added another patch which patches profile for dnsmasq to work "out-of-the-box" in openwrt. Profile as default was suitable for Ubuntu and such...

Compiles! :) I will merge. Thanks for your contribution! :)

@PolynomialDivision PolynomialDivision merged commit 3ba2a34 into openwrt:master Jun 10, 2021
@PolynomialDivision
Copy link
Member

@oskarirauta Maybe you now also update the wikipedia entry ;)
https://en.wikipedia.org/wiki/AppArmor

@oskarirauta
Copy link
Contributor Author

@oskarirauta Maybe you now also update the wikipedia entry ;)
https://en.wikipedia.org/wiki/AppArmor

@PolynomialDivision You mean by adding openwrt as apparmor supported os? We are not quite there yet. On the openwrt's core tree, there is another pr of mine, that needs to be merged as well, since this package only has support and management software which isn't really useful unless kernel has this enabled.

PR is available here: openwrt/openwrt#4101

@oskarirauta oskarirauta deleted the feature_apparmor branch June 10, 2021 19:38
@oskarirauta
Copy link
Contributor Author

@PolynomialDivision

I have also thought about another project that more or less, links to AppArmor..
I have some initial plans to re-create python tools from this package with c++, so python depency would be optional (only required when used official utils) - but that's just a thought for now, as I am working on something else at the moment, mostly suitable for my own personal use (it's what is used in the screenshot above to show cpu utilisation more user-friendly and list enabled security enhancements and then some..) and there's quite a lot of work there, so let's first see how AppArmor is welcomed..

Idea similar to acme vs. uacme (where one listed last is of course my personal favourite solution).

@PolynomialDivision
Copy link
Member

@oskarirauta Maybe you now also update the wikipedia entry ;)
https://en.wikipedia.org/wiki/AppArmor

@PolynomialDivision You mean by adding openwrt as apparmor supported os? We are not quite there yet. On the openwrt's core tree, there is another pr of mine, that needs to be merged as well, since this package only has support and management software which isn't really useful unless kernel has this enabled.

PR is available here: openwrt/openwrt#4101

Could you maybe give me a quick howto? I compile openwrt with enabled flags and this packages and then? ;) I'm not used to apparmor.

@neheb
Copy link
Contributor

neheb commented Jun 11, 2021

This package doesn't even install properly. How did this pass CI?

@PolynomialDivision
Copy link
Member

This package doesn't even install properly. How did this pass CI?

I compiled an image with it? Sxtsq 5 AC ipq40xx.

@CodeFetch
Copy link
Contributor

Me too... Works on x86-64. Maybe the problem is a specific target like MIPS? I think MIPS is not supported.

@neheb
Copy link
Contributor

neheb commented Jun 11, 2021

@CodeFetch
Copy link
Contributor

Indeed... Strangely it is even missing in my rootfs if I remove the BUILDONLY flag, but it doesn't show me an error. Maybe my tree is in a dirty state. I think there is something missing for opkg to do a proper clean. Maybe this also affects CI?! Will try to start building from scratch.

@CodeFetch
Copy link
Contributor

@neheb @oskarirauta I've tested it with a clean build. The BUILDONLY definitely needs to be removed, but I can't reproduce the error from neheb on x86-64 and I think there might be some packaging statement for clean missing.

@aparcar
Copy link
Member

aparcar commented Jun 18, 2021

apparmor

Usage testing in production environment works nicely. After patching that dnsmasq profile, everything that belongs to standard install (and even some more) works without issues or confinement that would block normal use. Ofcourse there are packages that require creation of profile, but this wouldn't be useful at all, if it would allow everything. Crucial security parts of system, including firewall for example, work in unconfined state which is of course desired way. Firewall wouldn't be very good intrusion stopper, if it would had been blocked..

Fancy interface, is there a patch pending as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants