Re: Build openwrt with clang

2021-03-06 Thread Rosen Penev
On Sat, Mar 6, 2021 at 12:19 AM Michael Fuckner wrote: > > Hi, > > I'm not exactly sure if this is trivial or totally insane- I have the idea to > compile the whole openwrt with clang instead of gcc. I could not get a point > to start at. Can you help me? I don't think LLVM supports all the targ

[PATCH] binutils: fix compilation with ccache

2021-03-06 Thread Rosen Penev
For some reason, one of the configure checks results in some infinite loop and ends up spawning endless gcc processes, causing OOM. Just pass a configure var to avoid it. Signed-off-by: Rosen Penev --- toolchain/binutils/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolchain/b

[PATCH] gettext-full: disable nameless locale define

2021-03-06 Thread Rosen Penev
It seems some packages like transmission and json-glib fail with it enabled. Signed-off-by: Rosen Penev --- package/libs/gettext-full/Makefile | 2 +- package/libs/gettext-full/patches/010-m4.patch | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/l

[PATCH 5/6 v4] secilc: update to version 3.2

2021-03-06 Thread Dominick Grift
49ff851c secilc: fixes cil_role_statements.md example 03881703 secilc/docs: add custom color theme 4c8d6094 secilc/docs: add syntax highlighting for secil 057d72af secilc/docs: use fenced code blocks for cil examples e8bcdb84 cil_network_labeling_statements: fixes nodecon examples eefa5511 cil_acce

[PATCH 6/6 V4] checkpolicy: update to version 3.2

2021-03-06 Thread Dominick Grift
521e6a2f libsepol/cil: fix signed overflow caused by using (1 << 31) - 1 42ae834a libsepol,checkpolicy: optimize storage of filename transitions Signed-off-by: Dominick Grift --- Changes in V4: none package/utils/checkpolicy/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 3/6 V4] libsemanage: update to version 3.2

2021-03-06 Thread Dominick Grift
c35919a7 libsemanage: sync filesystem with sandbox 5b05e829 Revert "libsemanage/genhomedircon: check usepasswd" edae9275 libsemanage: Free contents of modkey in semanage_direct_remove ce46daab libsemanage/genhomedircon: check usepasswd 6ebb35d2 libsemanage: Bump libsemanage.so version c08b73d7 libs

[PATCH 2/6 V4] libselinux: update to version 3.2

2021-03-06 Thread Dominick Grift
142826a3 libselinux: fix segfault in add_xattr_entry() 398d2cee libselinux: rename gettid() to something which never conflicts with the libc 8f0f0a28 selinux(8,5): Describe fcontext regular expressions 9cc6b5cf libselinux/getconlist: report failures 156dd0de libselinux: update getseuser e2dca5df l

[PATCH 1/6 V4] libsepol: update to version 3.2

2021-03-06 Thread Dominick Grift
a9e0004f libsepol: invalidate the pointer to the policydb if policydb_init fails 6238e025 libsepol/cil: fix NULL pointer dereference in cil_fill_ipaddr b69d77bc libsepol/cil: handle SID without assigned context when writing policy.conf 0861c659 libsepol: Validate policydb values when reading binar

[PATCH 4/6 V4] policycoreutils: update to version 3.2

2021-03-06 Thread Dominick Grift
d464187c policycoreutils: sestatus belongs to bin not sbin d59932a7 policycoreutils: Resolve path in restorecon_xattr 5682c0d5 policycoreutils/fixfiles.8: add missing file systems and merge check and verify 57dd1f65 policycoreutils/setfiles: Drop unused nerr variable be7f54cb setfiles: drop ABORT_

[PATCH 0/6 V4] selinux: update to version 3.2

2021-03-06 Thread Dominick Grift
Tested on: OPENWRT_BOARD="mvebu/cortexa9" OPENWRT_RELEASE="OpenWrt SNAPSHOT r16130+5-9397b22df1" OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16" OPENWRT_TAINTS="no-all" Linux OpenWrt 5.10.20 #0 SMP Sat Mar 6 15:31:22 2021 armv7l GNU/Linux Dominick Grift (6): libsepol: update to version 3.2 libselinux:

[PATCH v2] bcm63xx: AD1018-nor: add NAND flash

2021-03-06 Thread Daniel González Cabanelas
The Sercomm AD1018 has a NAND flash. We recently added support for NANDs in this target. Use the internal NAND as additional storage. Signed-off-by: Daniel González Cabanelas --- Changes in V2: - Deleted pointless #xxx-cells - Spelling .../dts/bcm6328-sercomm-ad1018-nor.dts| 24 +++

[PATCH 5/6 V3] secilc: update to version 3.2

2021-03-06 Thread Dominick Grift
49ff851c secilc: fixes cil_role_statements.md example 03881703 secilc/docs: add custom color theme 4c8d6094 secilc/docs: add syntax highlighting for secil 057d72af secilc/docs: use fenced code blocks for cil examples e8bcdb84 cil_network_labeling_statements: fixes nodecon examples eefa5511 cil_acce

[PATCH 6/6 V3] checkpolicy: update to version 3.2

2021-03-06 Thread Dominick Grift
521e6a2f libsepol/cil: fix signed overflow caused by using (1 << 31) - 1 42ae834a libsepol,checkpolicy: optimize storage of filename transitions Signed-off-by: Dominick Grift --- Changes in V3: split from secilc update to version 3.2 package/utils/checkpolicy/Makefile | 6 +++--- 1 file changed

[PATCH 4/6 V3] policycoreutils: update to version 3.2

2021-03-06 Thread Dominick Grift
d464187c policycoreutils: sestatus belongs to bin not sbin d59932a7 policycoreutils: Resolve path in restorecon_xattr 5682c0d5 policycoreutils/fixfiles.8: add missing file systems and merge check and verify 57dd1f65 policycoreutils/setfiles: Drop unused nerr variable be7f54cb setfiles: drop ABORT_

[PATCH 0/6 V3] selinux: update to version 3.2

2021-03-06 Thread Dominick Grift
Tested on: OPENWRT_BOARD="mvebu/cortexa9" OPENWRT_RELEASE="OpenWrt SNAPSHOT r16130+5-9397b22df1" OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16" OPENWRT_TAINTS="no-all" Linux OpenWrt 5.10.20 #0 SMP Sat Mar 6 15:31:22 2021 armv7l GNU/Linux Dominick Grift (6): libsepol: update to version 3.2 libselinux:

[PATCH 1/6 V3] libsepol: update to version 3.2

2021-03-06 Thread Dominick Grift
a9e0004f libsepol: invalidate the pointer to the policydb if policydb_init fails 6238e025 libsepol/cil: fix NULL pointer dereference in cil_fill_ipaddr b69d77bc libsepol/cil: handle SID without assigned context when writing policy.conf 0861c659 libsepol: Validate policydb values when reading binar

[PATCH 2/6 V3] libselinux: update to version 3.2

2021-03-06 Thread Dominick Grift
142826a3 libselinux: fix segfault in add_xattr_entry() 398d2cee libselinux: rename gettid() to something which never conflicts with the libc 8f0f0a28 selinux(8,5): Describe fcontext regular expressions 9cc6b5cf libselinux/getconlist: report failures 156dd0de libselinux: update getseuser e2dca5df l

[PATCH 3/6 V3] libsemanage: update to version 3.2

2021-03-06 Thread Dominick Grift
c35919a7 libsemanage: sync filesystem with sandbox 5b05e829 Revert "libsemanage/genhomedircon: check usepasswd" edae9275 libsemanage: Free contents of modkey in semanage_direct_remove ce46daab libsemanage/genhomedircon: check usepasswd 6ebb35d2 libsemanage: Bump libsemanage.so version c08b73d7 libs

[PATCH 5/5 V2] secilc: update to version 3.2

2021-03-06 Thread Dominick Grift
49ff851c secilc: fixes cil_role_statements.md example 03881703 secilc/docs: add custom color theme 4c8d6094 secilc/docs: add syntax highlighting for secil 057d72af secilc/docs: use fenced code blocks for cil examples e8bcdb84 cil_network_labeling_statements: fixes nodecon examples eefa5511 cil_acce

[PATCH 1/5 V2] libsepol: update to version 3.2

2021-03-06 Thread Dominick Grift
a9e0004f libsepol: invalidate the pointer to the policydb if policydb_init fails 6238e025 libsepol/cil: fix NULL pointer dereference in cil_fill_ipaddr b69d77bc libsepol/cil: handle SID without assigned context when writing policy.conf 0861c659 libsepol: Validate policydb values when reading binar

[PATCH 3/5 V2] libsemanage: update to version 3.2

2021-03-06 Thread Dominick Grift
c35919a7 libsemanage: sync filesystem with sandbox 5b05e829 Revert "libsemanage/genhomedircon: check usepasswd" edae9275 libsemanage: Free contents of modkey in semanage_direct_remove ce46daab libsemanage/genhomedircon: check usepasswd 6ebb35d2 libsemanage: Bump libsemanage.so version c08b73d7 libs

[PATCH 0/5 V2] selinux: update to version 3.2

2021-03-06 Thread Dominick Grift
Tested on: OPENWRT_BOARD="mvebu/cortexa9" OPENWRT_RELEASE="OpenWrt SNAPSHOT r16130+5-9397b22df1" OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16" OPENWRT_TAINTS="no-all" Linux OpenWrt 5.10.20 #0 SMP Sat Mar 6 15:31:22 2021 armv7l GNU/Linux Dominick Grift (5): libsepol: update to version 3.2 libselinux:

[PATCH 4/5 V2] policycoreutils: update to version 3.2

2021-03-06 Thread Dominick Grift
d464187c policycoreutils: sestatus belongs to bin not sbin d59932a7 policycoreutils: Resolve path in restorecon_xattr 5682c0d5 policycoreutils/fixfiles.8: add missing file systems and merge check and verify 57dd1f65 policycoreutils/setfiles: Drop unused nerr variable be7f54cb setfiles: drop ABORT_

[PATCH 2/5 V2] libselinux: update to version 3.2

2021-03-06 Thread Dominick Grift
142826a3 libselinux: fix segfault in add_xattr_entry() 398d2cee libselinux: rename gettid() to something which never conflicts with the libc 8f0f0a28 selinux(8,5): Describe fcontext regular expressions 9cc6b5cf libselinux/getconlist: report failures 156dd0de libselinux: update getseuser e2dca5df l

RE: [PATCH 0/5] selinux: update to version 3.2

2021-03-06 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Dominick Grift > Sent: Samstag, 6. März 2021 18:10 > To: openwrt-devel@lists.openwrt.org > Cc: Dominick Grift > Subject: [PATCH 0/5] selinux: update to version 3.2 Commit messag

[PATCH 4/5] policycoreutils: update to version 3.2

2021-03-06 Thread Dominick Grift
Signed-off-by: Dominick Grift --- package/utils/policycoreutils/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/utils/policycoreutils/Makefile b/package/utils/policycoreutils/Makefile index ec55a3d8ee..da4976457c 100644 --- a/package/utils/policycoreu

[PATCH 0/5] selinux: update to version 3.2

2021-03-06 Thread Dominick Grift
Tested on: OPENWRT_BOARD="mvebu/cortexa9" OPENWRT_RELEASE="OpenWrt SNAPSHOT r16130+5-9397b22df1" OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16" OPENWRT_TAINTS="no-all" Linux OpenWrt 5.10.20 #0 SMP Sat Mar 6 15:31:22 2021 armv7l GNU/Linux Dominick Grift (5): libsepol: update to version 3.2 libselinux:

[PATCH 1/5] libsepol: update to version 3.2

2021-03-06 Thread Dominick Grift
Signed-off-by: Dominick Grift --- package/libs/libsepol/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/libs/libsepol/Makefile b/package/libs/libsepol/Makefile index 8ceb7164a7..c7950a9ba0 100644 --- a/package/libs/libsepol/Makefile +++ b/package/libs/li

[PATCH 3/5] libsemanage: update to version 3.2

2021-03-06 Thread Dominick Grift
Signed-off-by: Dominick Grift --- package/libs/libsemanage/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/libs/libsemanage/Makefile b/package/libs/libsemanage/Makefile index 79b492d0d3..ff1519f14e 100644 --- a/package/libs/libsemanage/Makefile +++ b/pa

[PATCH 5/5] secilc: update to version 3.2

2021-03-06 Thread Dominick Grift
Signed-off-by: Dominick Grift --- package/utils/checkpolicy/Makefile | 6 +++--- package/utils/secilc/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package/utils/checkpolicy/Makefile b/package/utils/checkpolicy/Makefile index 8def9ea65d..206bf201c0 1006

[PATCH 2/5] libselinux: update to version 3.2

2021-03-06 Thread Dominick Grift
Signed-off-by: Dominick Grift --- package/libs/libselinux/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/libs/libselinux/Makefile b/package/libs/libselinux/Makefile index 5fe745d004..0c5f9baceb 100644 --- a/package/libs/libselinux/Makefile +++ b/packa

Re: Build openwrt with clang

2021-03-06 Thread Alexandru Ardelean
On Sat, Mar 6, 2021 at 10:17 AM Michael Fuckner wrote: > > Hi, > > I'm not exactly sure if this is trivial or totally insane- I have the idea to > compile the whole openwrt with clang instead of gcc. I could not get a point > to start at. Can you help me? > It isn't trivial. And "insane" depend

[PATCH v1 2/2] libubox: tests: add more blobmsg/json test cases

2021-03-06 Thread Peter Seiderer
* add mixed int/double tests * add blobmsg_cast_u64/blobmsg_cast_s64 tests Signed-off-by: Peter Seiderer --- tests/cram/test_blobmsg_types.t | 82 +++ tests/test-blobmsg-types.c | 371 2 files changed, 453 insertions(+) create mode 100644 tests/cram/

[PATCH v1 1/2] libubox: fix test_base64.t for bash

2021-03-06 Thread Peter Seiderer
On my system 'make test' fails like the following: $ make test Running tests... Test project .../build_libubox Start 1: cram 1/2 Test #1: cram .***Failed 38.05 sec Start 2: shunit2 2/2 Test #2: shunit2 .. Passed0.21

RE: [PATCH v2 2/2] apm821xx, mt7621, oxnas, rockchip, zynq: remove PLUGIN_HOSTCC

2021-03-06 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Ilya Lipnitskiy > Sent: Samstag, 6. März 2021 03:29 > To: openwrt-devel@lists.openwrt.org > Cc: Ilya Lipnitskiy > Subject: [PATCH v2 2/2] apm821xx, mt7621, oxnas, rockchip, zynq:

RE: [PATCH v2 1/2] kernel: generic: filter out CONFIG_PLUGIN_HOSTCC

2021-03-06 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Ilya Lipnitskiy > Sent: Samstag, 6. März 2021 03:29 > To: openwrt-devel@lists.openwrt.org > Cc: Ilya Lipnitskiy ; Adrian Schmutzler > ; Felix Fietkau > Subject: [PATCH v2 1/2] ke

Build openwrt with clang

2021-03-06 Thread Michael Fuckner
Hi, I'm not exactly sure if this is trivial or totally insane- I have the idea to compile the whole openwrt with clang instead of gcc. I could not get a point to start at. Can you help me? Any hints? Regards, Michael! ___ openwrt-devel mailing list