[PATCH] treewide: use CDN for downloads

2021-01-30 Thread Paul Spooren
Use CDN for opkg repositories. Signed-off-by: Paul Spooren --- Tested with browser and opkg running on router. HTTP works only for specific user-agents and `ipk` files, this is a *limitation* (or security precaution) of the origin server not influenced by the CDN. include/version.mk

Re: [PATCHv3 2/2] tools/zstd: compile with cmake

2021-01-30 Thread Paul Spooren
On Wed Jan 20, 2021 at 6:54 PM HST, Rosen Penev wrote: > It's faster and more reliable. > > Removed ccache cmake build dependency as it's now implicit. > > Signed-off-by: Rosen Penev > --- > v3: converted to use CMake > tools/Makefile | 3 ++- > tools/zstd/Makefile | 9 +++-- > 2 files changed,

Re: [PATCHv3 1/2] tools/zstd: update to 1.4.8

2021-01-30 Thread Paul Spooren
On Wed Jan 20, 2021 at 6:54 PM HST, Rosen Penev wrote: > Switch to the normal tarball instead of the codeload generated one. The > latter has the potential to change hashes based on changes in the repo. > > Signed-off-by: Rosen Penev > --- Currently zstd fails to compile, is this meant s a fix or

Re: [PATCH] treewide: unify OpenWrt hosted source URL

2021-01-31 Thread Paul Spooren
On Sun, Jan 31, 2021 at 10:08, Hannu Nyman wrote: Paul Spooren kirjoitti 30.1.2021 klo 23.54: Multiple sources are hosted on OpenWrts source server only. The source URLs to point to the server vary based on different epochs in OpenWrts history. Unify them to use always the new source CDN

[PATCH v2] treewide: unify OpenWrt hosted source via @OPENWRT

2021-01-31 Thread Paul Spooren
g. Signed-off-by: Paul Spooren --- include/download.mk | 2 +- package/boot/fconfig/Makefile | 2 +- package/firmware/b43legacy-firmware/Makefile | 2 +- package/firmware/lantiq/dsl-vrx200-firmware-xdsl/Makefile | 2 +

Re: Backporting opkg fixes to 19.07

2021-02-01 Thread Paul Spooren
On Sun, Jan 31, 2021 at 19:10, Baptiste Jonglez wrote: Hi, I've just pushed this to my (brand new) staging tree: https://git.openwrt.org/?p=openwrt/staging/zorun.git;a=shortlog;h=refs/heads/openwrt-19.07 If there are no objections, I will merge that in a couple of days. Thanks for t

RE: 20.xx: state of the DSA

2021-02-02 Thread Paul Spooren
20 at 16:39, Adrian Schmutzler wrote: Hi, -Original Message- From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] On Behalf Of Paul Spooren Sent: Freitag, 20. November 2020 01:36 To: openwrt-devel@lists.openwrt.org Subject: 20.xx: state of the DSA Hi all,

[PATCH v2 2/3] scripts,ipkg-build: use realpath for pkg_dir

2021-02-04 Thread Paul Spooren
This allows manual execution of the ipkg-build script even with releative path. Signed-off-by: Paul Spooren --- scripts/ipkg-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 8533c97fcc..c112270a2b 100755 --- a/scripts/ipkg

[PATCH v2 3/3] scripts,ipkg-build: format code with shfmt

2021-02-04 Thread Paul Spooren
The script improves readability by using an automatic code formatter. Signed-off-by: Paul Spooren --- scripts/ipkg-build | 71 -- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index c112270a2b

[PATCH v2 1/3] scripts,ipkg-build: apply shellcheck

2021-02-04 Thread Paul Spooren
Signed-off-by: Paul Spooren --- scripts/ipkg-build | 81 +++--- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 343aab6caf..8533c97fcc 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build

Re: [PATCH] acx-mac80211: replace dead URLs with OpenWrt CDN

2021-02-05 Thread Paul Spooren
On Thu Feb 4, 2021 at 5:24 PM HST, Ilya Lipnitskiy wrote: > Signed-off-by: Ilya Lipnitskiy > --- Please use URL:=@OPENWRT instead of the full URL, added via: https://git.openwrt.org/8286f3a3d3a7d65d36ee312c6fd3828d4e4fd048 Also please provide a commit message, e.g. "erley.org does no longer exis

Re: [PATCH v2] acx-mac80211: replace dead URLs with OpenWrt CDN

2021-02-07 Thread Paul Spooren
Hi Ilya, thanks for the quick fixup! One comment below. On Fri Feb 5, 2021 at 7:11 PM HST, Ilya Lipnitskiy wrote: > erley.org no longer exists; attempting to connect to it during package > download results in lengthy timeouts. Use the new OpenWrt CDN alias to > download from reliable OpenWrt mirr

Re: [PATCH] openpgm: Add Pragmatic General Multicast library

2021-02-07 Thread Paul Spooren
On Sun, Jan 3, 2021 at 19:42, yehol...@outlook.com wrote: From: Ye Holmes Signed-off-by: Ye Holmes --- Can't this package go to packages.git? libs/openpgm/Makefile | 64 +++ .../0001-Rename-openpgm-5.2.pc.in.patch | 22 +++ ...hecksum.

Re: [PATCH v2] acx-mac80211: replace dead URLs with OpenWrt CDN

2021-02-07 Thread Paul Spooren
On Sun Feb 7, 2021 at 9:53 AM HST, Ilya Lipnitskiy wrote: > Hi Paul, > > > > define Download/tiacx111c16_1 > > > FILE:=tiacx111c16_1.2.1_34 > > > - URL:=http://sites.google.com/site/atorkhov/files/ > > > + URL:=@OPENWRT > > > > This file is still available, does the download fail as well? > > > Thi

Re: Initial flashing over "OEM-OpenWrt"

2021-02-08 Thread Paul Spooren
Feb 8, 2021 5:06:28 AM Piotr Dymacz : Hi Adrian, On 06.02.2021 17:42, Adrian Schmutzler wrote: Hi, when reviewing device-support PRs, I frequently encounter the case that initial flashing means sysupgrading from an OEM-modified OpenWrt. This obviously means that the config of this OEM-Open

Re: [PATCH 3/3] COPYING: add COPYING file to specify project licenses

2021-02-12 Thread Paul Spooren
On Fri, Feb 12, 2021 at 13:53, Adrian Schmutzler wrote: Since multiple licenses are provided now in the LICENSES folder, add a COPYING file to specify the project license. Signed-off-by: Adrian Schmutzler --- Acked-by: Paul Spooren COPYING | 12 1 file changed, 12

Re: [PATCH 2/2] generic: enable netlink ethtool interface

2021-03-04 Thread Paul Spooren
What's the size change? -- Mar 4, 2021 12:59:22 PM David Bauer : The virtual cable tester depends on the netlink interface for ethtool. Thus, enable it in the generic kernel configuration. Signed-off-by: David Bauer --- target/linux/generic/config-5.10 | 2 +- 1 file changed, 1 insertion(+),

[PATCH 1/2] package: store SourceName in Packages index

2021-03-07 Thread Paul Spooren
available on device. Signed-off-by: Paul Spooren --- package/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Makefile b/package/Makefile index a89a6068fa..802100838c 100644 --- a/package/Makefile +++ b/package/Makefile @@ -87,7 +87,7 @@ $(curdir)/index: FORCE

[PATCH 2/2] include: store ABIVersion in Packages index

2021-03-07 Thread Paul Spooren
s adds the `ABIVersion` field again. Knowing both the combined (SourceName + ABIVersion) and the `ABIVersion` it is possible to calculate the package `SourceName` without storing it in the on-device package list. Signed-off-by: Paul Spooren --- include/package-ipkg.mk | 1 + 1 file changed, 1

[PATCH 0/2] determineable package name with ABIVersions

2021-03-07 Thread Paul Spooren
d the logic of rpcd/sys.c. Paul Spooren (2): package: store SourceName in Packages index include: store ABIVersion in Packages index include/package-ipkg.mk | 1 + package/Makefile| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2

[PATCH] treewide: extend DEFAULT_PACKAGES before target.mk

2021-03-08 Thread Paul Spooren
-mod-pppoe Signed-off-by: Paul Spooren --- This behaviour also results in duplicates in produced JSON files: https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/profiles.json The package kmod-gpio-button-hotplug is added twice to the default_packages array. target/linux/apm821xx

Re: [PATCH v2 3/3] scripts,ipkg-build: format code with shfmt

2021-03-14 Thread Paul Spooren
vdan/sh [2]: https://github.com/mvdan/sh/issues/377 On Tue, Feb 9, 2021 at 13:36, Paul Oranje wrote: Op 5 feb. 2021, om 00:59 heeft Paul Spooren het volgende geschreven: The script improves readability by using an automatic code formatter. The decreases of the switch case indentation l

[PATCH v3] scripts,ipkg-build: format code with shfmt

2021-03-15 Thread Paul Spooren
The script improves readability by using an automatic code formatter. Signed-off-by: Paul Spooren --- scripts/ipkg-build | 62 -- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index c112270a2b

[PATCH] build,ib: add STRIP_ABI option for manifest

2021-03-15 Thread Paul Spooren
function accessible for the ImageBuilder by adding a `STRIP_ABI` variable. Signed-off-by: Paul Spooren --- target/imagebuilder/files/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index

Re: compiling only packages that have patented functionality

2021-03-17 Thread Paul Spooren
Mar 17, 2021 12:37:26 AM Alberto Bursi : I'm investigating about making an unofficial third party repository with OpenWrt (non-kmod) packages where patented functionality is enabled. For example ffmpeg from packages is missing some functionality in its "non-patented" form and most end users

Re: [PATCH] procd: Adding support to detect Pantavisor Container Platform

2021-03-20 Thread Paul Spooren
On Sat, Mar 20, 2021 at 20:16, Gaurav Pathak wrote: Added a new file pv_platform.h having function is_pantavisor() to detect the pantavisor container platform, as it runs a custom modified version of LXC, so detecting LXC using is_container() is not returning expected result. pv_platform.

[PATCH] build,json: fix duplicates in default_packages

2021-03-21 Thread Paul Spooren
ects using the generated JSON files. While at it, apply `black` style to Python script. Signed-off-by: Paul Spooren --- scripts/json_overview_image_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/json_overview_image_info.py b/scripts/json_overview_image_inf

Re: [PATCH] build: artifacts add dependency for builded images

2021-03-21 Thread Paul Spooren
On Sat Mar 20, 2021 at 10:58 PM HST, Oskari Lemmela wrote: > Add possibility to use images and initramfs in artifacts. > > Signed-off-by: Oskari Lemmela > --- Hi, could you please elaborate on your use-case? > include/image.mk | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff

Re: [PATCH] mwlwifi: remove target dependency

2021-03-22 Thread Paul Spooren
On Di, Mär 23, 2021 at 00:17, Daniel Golle wrote: On Mon, Mar 22, 2021 at 11:14:39PM +0100, Hauke Mehrtens wrote: On 3/21/21 10:17 PM, Daniel Golle wrote: > Users complained that building images for various mvebu Linksys devices > fails when using the ImageBuilder, it complains about t

[PATCH] build,json: 3rd fixup of default_packages

2021-03-25 Thread Paul Spooren
t the list of default packages. Signed-off-by: Paul Spooren --- scripts/json_overview_image_info.py | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/scripts/json_overview_image_info.py b/scripts/json_overview_image_info.py index cd814a19c0..8dbd24af2d 1

[PATCH] build: remove GCC7 support

2021-03-26 Thread Paul Spooren
Since we recently branched a new release which already ships with GCC7, version 6 could be considered obsolete. Signed-off-by: Paul Spooren --- toolchain/gcc/Config.in | 4 - toolchain/gcc/Config.version | 10 - toolchain/gcc/common.mk

Re: [PATCH] build: remove GCC7 support

2021-03-26 Thread Paul Spooren
On Fr, Mär 26, 2021 at 02:28, Rosen Penev wrote: On Fri, Mar 26, 2021 at 1:49 AM Paul Spooren wrote: Since we recently branched a new release which already ships with GCC7, version 6 could be considered obsolete. version 6? Subject is right, body is wrong. So it's about rem

[PATCH 2/2] ncurses: add screen-256color terminfo

2021-03-29 Thread Paul Spooren
The terminfo is required by the popular terminal multiplexer screen and tmux, offer it by default as the size impact is minimal with 885 Bytes. Signed-off-by: Paul Spooren --- package/libs/ncurses/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/libs

[PATCH 1/2] ncurses: split long line of supported terminfo

2021-03-29 Thread Paul Spooren
The terminfo files were all in one row which is terrible to read. Split them over multiple lines to improve readability. Signed-off-by: Paul Spooren --- package/libs/ncurses/Makefile | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/package/libs/ncurses/Makefile

[PATCH keyring] usign: drop personal + outdated keys except 21.02

2021-03-30 Thread Paul Spooren
key, which is later renamed to the next release name (e.g. 21.08). This approach should allow secure upgrade between releases. Signed-off-by: Paul Spooren --- This commit should be merged into a `openwrt-21.02` branch which is then selected by the 21.02 release. usign/0b26f36ae0f4106d | 2

Re: Requiring 2FA on OpenWrt GitHub organization

2021-04-11 Thread Paul Spooren
I did so a week ago and asked everyone with direct emails to turn on 2FA. Everyone who didn't respond after 3 weeks and multiple mails lost their commit access. If there's someone with commit access and no 2FA, it was added afterwards. -- Apr 11, 2021 4:52:22 AM Etienne Champetier : Hi

[OpenWrt-Devel] RFC: procd patch to run as container/lxd

2019-03-20 Thread Paul Spooren
Hi, procd causes trouble when running in a LXD container, however would be nice to use OpenWrt as small VMs. There are patches [0] "fixing" the issue, but they're not really upstream ready (for obvious reasons). Would it be possible to add a detection to procd if it's running in an "unprivileged

[OpenWrt-Devel] RFC: check signatures of sysupgrades via ucert

2019-04-23 Thread Paul Spooren
Hi all, to improve security of the router sysupgrade process, it's sane to check firmware images for signatures of trusted parties. While this should always be optional (aka no vendor locking), it helps *basic* users to easily verify that they are installing the image they intended. It is already

[OpenWrt-Devel] [PATCH] procd: add SIGPWR as signal

2019-04-26 Thread Paul Spooren
to use procd in LXC containers they have to support SIGPWR to shutdown. Signed-off-by: Paul Spooren --- initd/init.c | 1 + signal.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/initd/init.c b/initd/init.c index 0349e6e..29eee50 100644 --- a/initd/init.c +++ b/initd/init.c

[OpenWrt-Devel] [PATCH] procd: detect lxc container and behave accordingly

2019-04-27 Thread Paul Spooren
github.com/containercraft/openwrt-lxd/blob/master/patches/procd-openwrt-18.06/001_lxd_no_mounts.patch Signed-off-by: Paul Spooren --- initd/early.c | 19 +++ initd/zram.c| 10 ++ plug/coldplug.c | 13 - procd.c | 7 ++- 4 files changed, 31 inserti

[OpenWrt-Devel] RFC: add metadata to buildroot

2019-05-04 Thread Paul Spooren
Hi all, from my point of view the current OpenWrt device documentation lacks some unity, meaning the table of hardware is partly incomplete or inconsistent. Also documentations are often rewritten with different precision and "tongue". To unify things I created a *PoC*[0], mostly based on the off

[OpenWrt-Devel] [PATCH v2] procd: detect lxc container and behave accordingly

2019-05-04 Thread Paul Spooren
he cleanup. [0]: https://github.com/containercraft/openwrt-lxd/blob/master/patches/procd-openwrt-18.06/001_lxd_no_mounts.patch Signed-off-by: Paul Spooren --- container.h | 22 ++ initd/early.c | 20 initd/zram.c| 11 +++ plug/coldp

[OpenWrt-Devel] [PATCH v3] procd: detect lxc container and behave accordingly

2019-05-05 Thread Paul Spooren
he cleanup. [0]: https://github.com/containercraft/openwrt-lxd/blob/master/patches/procd-openwrt-18.06/001_lxd_no_mounts.patch Signed-off-by: Paul Spooren --- container.h | 22 ++ initd/early.c | 20 initd/zram.c| 11 +++ plug/coldp

[OpenWrt-Devel] [PATCH 1/2] add clang-format kernel style

2019-05-10 Thread Paul Spooren
copied from the official kernel style: https://github.com/torvalds/linux/blob/master/.clang-format Signed-off-by: Paul Spooren --- .clang-format | 118 ++ 1 file changed, 118 insertions(+) create mode 100644 .clang-format diff --git a/.clang

[OpenWrt-Devel] [PATCH 1/2] procd: add clang-format kernel style

2019-05-10 Thread Paul Spooren
copied from the official kernel style: https://github.com/torvalds/linux/blob/master/.clang-format also modify gitignore to unignore the style file Signed-off-by: Paul Spooren --- .clang-format | 117 ++ .gitignore| 1 + 2 files changed

[OpenWrt-Devel] [PATCH 2/2] procd: apply official kernel clang-format style

2019-05-10 Thread Paul Spooren
Currently some files use a mixture of spaces and tabs within a single file, instead of fixing style manually, a tool could do the job. Signed-off-by: Paul Spooren --- container.h | 3 +- inittab.c | 109 +++- libc-compat.h | 5 +- log.h | 12

[OpenWrt-Devel] [PATCH][RFC] opkg: add License to info command

2019-05-11 Thread Paul Spooren
show license in `opkg info `. Signed-off-by: Paul Spooren --- This patch isn't complete yet. It show the license info as long as the package isn't installed. Once it's installed it seems to forget the information. I can't figure out why. Also printing `opkg list` doesn't

Re: [OpenWrt-Devel] RFC: add metadata to buildroot

2019-05-14 Thread Paul Spooren
to the Cc loop] > > Paul Spooren [2019-05-04 17:48:03]: > > Hi, > >> from my point of view the current OpenWrt device documentation lacks >> some unity, meaning the table of hardware is partly incomplete or >> inconsistent. Also documentations are often rewritten wit

Re: [OpenWrt-Devel] [PATCH 2/2] procd: apply official kernel clang-format style

2019-05-14 Thread Paul Spooren
On 5/14/19 4:08 PM, Petr Štetiar wrote: > Paul Spooren [2019-05-10 17:36:21]: > > Hi, > >> Currently some files use a mixture of spaces and tabs within a single >> file, instead of fixing style manually, a tool could do the job. > I find consistent coding style impo

[OpenWrt-Devel] [PATCH v2 2/2] procd: apply official kernel clang-format style

2019-05-14 Thread Paul Spooren
using clang-format-9 Signed-off-by: Paul Spooren --- container.h | 5 +- inittab.c | 108 + libc-compat.h | 5 +- log.h | 12 ++-- preload.h | 49 ++- procd.c | 16 ++--- rcS.c | 18 +++--- signal.c | 22

[OpenWrt-Devel] [PATCH v2 1/2] procd: add clang-format kernel style

2019-05-14 Thread Paul Spooren
copied from the official kernel style: https://github.com/torvalds/linux/blob/master/.clang-format also modify gitignore to unignore the style file Signed-off-by: Paul Spooren --- Added a single OpenWrt specific ForEachMacro rule .clang-format | 496

Re: [OpenWrt-Devel] [PATCH v2 2/2] procd: apply official kernel clang-format style

2019-05-14 Thread Paul Spooren
On 5/14/19 6:24 PM, Daniel Golle wrote: > I don't think adding formatter-information into the code makes sense > at this stage, as this is meant for exeptions from an otherwise applied > style. Here, obviously clang-format defintions don't reflect the > current style. They don't, they reflect th

[OpenWrt-Devel] [PATCH 2/2] iptables.c: lock the xtables.lock

2019-05-17 Thread Paul Spooren
ned-off-by: Alexander Couzens [fixed waiting for unlock and commit message] Signed-off-by: Paul Spooren --- iptables.c | 9 + 1 file changed, 9 insertions(+) diff --git a/iptables.c b/iptables.c index a095621..559fe7d 100644 --- a/iptables.c +++ b/iptables.c @@ -55,6 +55,8 @@ #include &

[OpenWrt-Devel] [PATCH 1/2] utils: implement fw3_lock_path() & fw3_unlock_path()

2019-05-17 Thread Paul Spooren
From: Alexander Couzens To lock a second lock file at the same time, introduce fw3_{un,}lock_path. fw3_lock_path support the path as parameter in difference to fw3_lock which only locks the fw3 lock file (/var/run/fw3.lock) Signed-off-by: Alexander Couzens --- utils.c | 34

[OpenWrt-Devel] [PATCH 1/2] procd: add docker support

2019-05-22 Thread Paul Spooren
-openwrt/blob/master/patches/procd-master/0003-docker-fix-problem-stopping-container.patch Signed-off-by: Paul Spooren --- container.h | 4 +++- state.c | 4 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/container.h b/container.h index d33fa32..04d63ed 100644 --- a

[OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-22 Thread Paul Spooren
Signed-off-by: Paul Spooren --- state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.c b/state.c index ff1734f..9f196ee 100644 --- a/state.c +++ b/state.c @@ -101,6 +101,9 @@ static void state_enter(void) switch (state) { case STATE_EARLY: LOG

Re: [OpenWrt-Devel] [PATCH 1/2] procd: add docker support

2019-05-23 Thread Paul Spooren
Hi, On 5/23/19 12:30 PM, Petr Štetiar wrote: > I'm wondering if this Docker related changes shouldn't be included as a part > of a patch series which would add complete Docker support to OpenWrt (do you > plan to do this?), so it could be tested together. > > Or is it now possible to just download

Re: [OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-23 Thread Paul Spooren
On 5/23/19 10:42 AM, Petr Štetiar wrote: > Paul Spooren [2019-05-22 19:24:19]: > >> Signed-off-by: Paul Spooren >> --- >> state.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/state.c b/state.c >> index ff1734f..9f196ee 10064

Re: [OpenWrt-Devel] [PATCH 1/2] procd: add docker support

2019-05-23 Thread Paul Spooren
On 5/23/19 2:16 PM, Petr Štetiar wrote: > Paul Spooren [2019-05-23 13:36:37]: > >> No, thanks for the link. Seems that Docker now uses LXC anyway which > No more[1] :-) > > Remove LXC support. > > The LXC driver was deprecated in Docker 1.8. Following the deprecatio

[OpenWrt-Devel] [PATCH v2] procd: add docker support

2019-05-27 Thread Paul Spooren
detects if running in a docker container, which then requires special treatment of mounts. OpenWrt within Docker is useful for CI testing. Signed-off-by: Paul Spooren --- container.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/container.h b/container.h index d33fa32

[OpenWrt-Devel] [PATCH v2] opkg: add License info

2019-05-27 Thread Paul Spooren
show license in `opkg info `. CC: Jo-Philipp Wich Signed-off-by: Paul Spooren --- libopkg/opkg_cmd.c | 3 +++ libopkg/pkg.c | 10 ++ libopkg/pkg.h | 1 + libopkg/pkg_parse.c | 5 + libopkg/pkg_parse.h | 1 + 5 files changed, 20 insertions(+) diff --git a/libopkg

[OpenWrt-Devel] [PATCH] procd: fixup double negative docker detection

2019-05-30 Thread Paul Spooren
Double `!!` results in false positives, making the snapshot unusable as procd won't mount essential things on *non virtial machines*. Signed-off-by: Paul Spooren --- container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.h b/container.h index dd2e432..3c

[OpenWrt-Devel] [RFC] additional Docker images and CI testing

2019-06-01 Thread Paul Spooren
Hi all, currently OpenWrt only offers a very basic Docker image[0] for testing of the packages.git repo. The image is not directly usable as the CI does most of the work, like setting up the SDK and adding feeds[1]. I'd like to propose two additional images and added CI test examples for illustrat

[OpenWrt-Devel] [PATCH] opkg: add --license arg for installed packages

2019-06-12 Thread Paul Spooren
- 1.8.2-3 - GPL-2.0 iptables - 1.8.2-3 - GPL-2.0 jshn - 2019-02-27-eeef7b50-1 - ISC jsonfilter - 2018-02-04-c7e938d6-1 - ISC ... CC: Jo-Philipp Wich Signed-off-by: Paul Spooren --- libopkg/opkg_cmd.c | 3 +++ libopkg/opkg_conf.c | 1 + libopkg/opkg_conf.h | 1 + libopkg/pkg.c | 11

Re: [OpenWrt-Devel] [RFC] additional Docker images and CI testing

2019-06-12 Thread Paul Spooren
Hi Ted, > This sounds like a good idea - would giving you commit access to our > docker hub [0] repo be of any help? Is there anything else I could > help with? I'd be happy with commit access to the docker hub (not to mistake with git commit access). Please find here a reworked version with a RE

[OpenWrt-Devel] [PATCH v2] opkg: add --license arg for installed packages

2019-06-13 Thread Paul Spooren
- 1.8.2-3 - GPL-2.0 iptables - 1.8.2-3 - GPL-2.0 jshn - 2019-02-27-eeef7b50-1 - ISC jsonfilter - 2018-02-04-c7e938d6-1 - ISC ... CC: Jo-Philipp Wich Signed-off-by: Paul Spooren --- v2 <- v1 ignore license via PFM_LICENSE in opkg_cmd.c when not actually needed libopkg/opkg_cmd.c |

[OpenWrt-Devel] [RFC]split DEVICE_TITLE in multiple variables

2019-07-02 Thread Paul Spooren
Hi all, some days ago I wrote this proposal[0] to split DEVICE_TITLE in DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT (holding revisions and storage sizes if applicable). I extended the image.mk to to use the newly introduced variables if DEVICE_TITLE is empty, meaning it can be used as a drop i

Re: [OpenWrt-Devel] [RFC]split DEVICE_TITLE in multiple variables

2019-07-03 Thread Paul Spooren
On 7/3/19 1:02 PM, Henrique de Moraes Holschuh wrote: > Em 02/07/2019 14:01, Paul Spooren escreveu: >> some days ago I wrote this proposal[0] to split DEVICE_TITLE in >> DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT (holding revisions and >> storage sizes if applicable).

Re: [OpenWrt-Devel] [RFC]split DEVICE_TITLE in multiple variables

2019-07-05 Thread Paul Spooren
The PR was accepted, I'd be happy if newly ported devices could follow this style! I'll do some work on reorganizing existing targets. Best, Paul > [0]: https://github.com/openwrt/openwrt/pull/2124 > [1]: https://sudhanshu16.github.io/openwrt-firmware-selector/ > > > > __

[OpenWrt-Devel] [RFC]merge routing repository to packages

2019-07-05 Thread Paul Spooren
Hi all, just as a notification as I don't want to spread the discussion to all kinds of platforms: I proposed (actually jow in 2017) to merge openwrt-routing/packages into openwrt/packages subfolder net. Please find the current discussion at GitHub[0]. This is intended to be a transfer, not a f

Re: [OpenWrt-Devel] [RFC]merge routing repository to packages

2019-07-07 Thread Paul Spooren
se share your thoughts of this transfer! Thanks for your time, Paul > or we fall back in the > past problematic situation. > > Cheers! > Gio > > On Friday, 5 July 2019 14:26:31 CEST Paul Spooren wrote: >> Hi all, >> >> just as a notification as I don't w

[OpenWrt-Devel] [PATCH] procd: add daemon mode and remove pid 1 check

2019-08-02 Thread Paul Spooren
when started via terminal. Before it would only try to connect to an existing ubus instance. The -D arg handling was kindly created (with < 60 seconds RTT) by John, I just created the patch and removed pid checking. CC: John Crispin Signed-off-by: Paul Spooren --- procd.c | 10 +- 1 f

Re: [OpenWrt-Devel] [PATCH v2] build: include BUILD_VARIANT in PKG_BUILD_DIR

2019-08-02 Thread Paul Spooren
Hey, on commit 5e928acf22cdc956eabe6e4b2327b34eb0ee66da applying fails: error: patch failed: package/libs/ustream-ssl/Makefile:10 error: package/libs/ustream-ssl/Makefile: patch does not apply However removing the ustream-ssl part of the patch results in a working version for (at least) all thre

[OpenWrt-Devel] [PATCH v2] procd: add daemon mode and remove pid 1 check

2019-08-02 Thread Paul Spooren
when started via terminal. Before it would only try to connect to an existing ubus instance. The -D arg handling was kindly created (with < 60 seconds RTT) by John, I just created the patch and removed pid checking. CC: John Crispin Signed-off-by: Paul Spooren --- v2: added usage/help mess

[OpenWrt-Devel] [PATCH] procd: fix shutdown when running in a container

2019-08-05 Thread Paul Spooren
-fix-problem-stopping-container.patch Signed-off-by: Paul Spooren --- state.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/state.c b/state.c index ccf4104..b7cba88 100644 --- a/state.c +++ b/state.c @@ -20,6 +20,7 @@ #include #include

[OpenWrt-Devel] [PATCH] image.mk: remove device_ from manifest filename

2019-08-12 Thread Paul Spooren
2.manifest Signed-off-by: Paul Spooren --- include/image.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/image.mk b/include/image.mk index e55ac22d0d..cc333052a2 100644 --- a/include/image.mk +++ b/include/image.mk @@ -106,7 +106,7 @@ define add_jffs2_mark

[OpenWrt-Devel] [PATCH v2] image.mk: remove device_ from manifest filename

2019-08-12 Thread Paul Spooren
2.manifest Signed-off-by: Paul Spooren --- v2: removed senseless newline - sorry include/image.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/image.mk b/include/image.mk index e55ac22d0d..c6a6ab7993 100644 --- a/include/image.mk +++ b/include/image.mk @@ -10

[OpenWrt-Devel] [PATCH] ipqx0xx: add Generic subtarget

2019-08-21 Thread Paul Spooren
: Paul Spooren --- target/linux/ipq40xx/Makefile | 1 + target/linux/ipq40xx/generic/target.mk | 1 + target/linux/ipq806x/Makefile | 1 + target/linux/ipq806x/generic/target.mk | 1 + 4 files changed, 4 insertions(+) create mode 100644 target/linux/ipq40xx/generic/target.mk

Re: [OpenWrt-Devel] [PATCH] ipqx0xx: add Generic subtarget

2019-08-21 Thread Paul Spooren
Hi John, This commit adds the Generic subtarget resulting in consistent naming. and already uses `x/generic/` as subfolder as if the subtarget would exist. I'm very much in favor of consistent names[0][1][2] as it reduces the hassle when trying automate things, like building images via an

Re: [OpenWrt-Devel] [PATCH] ipqx0xx: add Generic subtarget

2019-08-22 Thread Paul Spooren
On 22.08.19 00:11, John Crispin wrote: On 22/08/2019 08:47, Paul Spooren wrote: Hi John, This commit adds the Generic subtarget resulting in consistent naming. and already uses `x/generic/` as subfolder as if the subtarget would exist. I'm very much in favor of consistent names

[OpenWrt-Devel] [PATCH] bcm53xx: add generic subtarget

2019-08-23 Thread Paul Spooren
Same game as for 853e4dd3062df7cb5704b15d6af6730e3194b571. Add generic to the filenames. CC: Hauke Mehrtens Signed-off-by: Paul Spooren --- target/linux/bcm53xx/Makefile | 1 + target/linux/bcm53xx/generic/target.mk | 1 + 2 files changed, 2 insertions(+) create mode 100644 target

[OpenWrt-Devel] [PATCH] treewide: add Generic subtarget if missing

2019-08-23 Thread Paul Spooren
Perkov CC: Roman Yeryomin CC: Sergey Ryazanov CC: Tim Harvey CC: Tomasz Maciej Nowak Signed-off-by: Paul Spooren --- target/linux/ath25/Makefile | 1 + target/linux/ath25/generic/target.mk | 1 + target/linux/cns3xxx/Makefile| 1 + target/linux/cns3xxx/generic

[OpenWrt-Devel] [RFC]remove outdated targets from snapshots

2019-08-23 Thread Paul Spooren
Hi, various targets at OpenWrt/snapshots[0] are no longer build and cause (at least for me) from time to time some trouble. Would it be possible to add a cron job removing all files from snapshots/ which are older than, a week? The folder is not intented as an archive, right? Sunshine,     P

[OpenWrt-Devel] [RFC] use Debian like release channel identifiers?

2019-08-25 Thread Paul Spooren
Hi all, as 19.07 is *just around the corner* I was wondering if there's a better way of distinguishing between versions. Right now, I see 4 different *channels* which somewhat match the Debian style, therefore a possible mapping: 18.06.N -> stable 19.07-rcN -> testing 19.07-SNAPSHOT -> unst

Re: [OpenWrt-Devel] [RFC] use Debian like release channel identifiers?

2019-08-26 Thread Paul Spooren
On 25.08.19 22:08, Bjørn Mork wrote: Paul Spooren writes: as 19.07 is *just around the corner* I was wondering if there's a better way of distinguishing between versions. Right now, I see 4 different *channels* which somewhat match the Debian style, therefore a possible mapping: 18

[OpenWrt-Devel] [PATCH] procd: allow running with pid != 1

2019-09-03 Thread Paul Spooren
Allow to run procd from a bash script and still let it fire up system services. This is handy when running from within a container that does not start any init command on pid 1, like on GitLab CI. Signed-off-by: Paul Spooren --- procd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions

[OpenWrt-Devel] ar71xx: OM2P ImageBuilder no firmware when BIN_DIR used

2019-02-01 Thread Paul Spooren
Hi all, thanks to this[0] bug report I found that the ar71xx/generic ImageBuilder doesn't create any firmware images for profile OM2P when used with BIN_DIR. My first guess is that it's somewhat related to a hard coded destination which doesn't handle BIN_DIR. At the very end of an "successful" b

[OpenWrt-Devel] mapping metadata supported_devices to profile

2019-02-02 Thread Paul Spooren
Hi, I couldn't find a mapping between the profiles and the "supported_devices" in the resulting firmware metadata. With a script I extracted the metadata and created a mapping, maybe it is useful for someone. https://chef.libremesh.org/download/openwrt/18.06.1/mapping.txt It only contains entrie

[OpenWrt-Devel] buildbots: offer zsync support for snapshots

2019-02-05 Thread Paul Spooren
Hi, tl;dr: please run zsyncmake[0] on created snapshot SDK and IB archives I'm offering a web service to download custom firmware images via an API[1], this includes snapshot images. To stay up to date, all snapshot ImageBuilders are daily re-downloaded. While being convenient for some developers

[OpenWrt-Devel] [PATCH] phase1: run prepare instead of diffconfig

2019-09-03 Thread Paul Spooren
This will not only create config.buildinfo as before, but also version.buildinfo and feeds.buidinfo. CC: Jo-Philipp Wich Signed-off-by: Paul Spooren --- phase1/master.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phase1/master.cfg b/phase1/master.cfg index

Re: [OpenWrt-Devel] [PATCH] treewide: add Generic subtarget if missing

2019-09-12 Thread Paul Spooren
I posted this a while ago could somebody please apply this? On 22.08.19 23:02, Paul Spooren wrote: As in 853e4dd OpenWrt should follow a unified structure, where every device has a target/subtarget combination, if there is only one subtarget, call it "Generic". This introduces p

Re: [OpenWrt-Devel] [PATCH] treewide: add Generic subtarget if missing

2019-09-15 Thread Paul Spooren
What you suggest is about what we have right now. This kind of creates a misleading situation where for some targets subtargets are present, while for others paths and image names are "fixed" in several places to include a "generic". The reason for Paul's patch was to get rid of the fixes at in

Re: [OpenWrt-Devel] [PATCH] treewide: add Generic subtarget if missing

2019-09-20 Thread Paul Spooren
On 17.09.19 00:25, Jonas Gorski wrote: On Sun, 15 Sep 2019 at 12:49, Paul Spooren wrote: What you suggest is about what we have right now. This kind of creates a misleading situation where for some targets subtargets are present, while for others paths and image names are "fixed"

Re: [OpenWrt-Devel] [Suggestions] Streamline localization by using Weblate for the project, use LiberaPay or OpenCollective to enable people to donate

2019-09-24 Thread Paul Spooren
Hi Scott, On 23.09.19 16:15, Scott via openwrt-devel wrote: First and foremost, as a user of OpenWrt and LuCI by way of TurrisOS thanks for everyone who has contributed to OpenWrt. As someone who's seeking to give back to the project via localization I noticed that while OpenWrt has relatively

[OpenWrt-Devel] [PATCH] buildbot: store key-build.pub as 0644

2019-09-24 Thread Paul Spooren
All other keys are stored as 0644, the only reason this key is 0600 is as the key-build should be hidden from others. Changing the public key it to 0644 it is in line with all other keys in /etc/opkg/keys. Signed-off-by: Paul Spooren --- phase1/master.cfg | 2 +- 1 file changed, 1 insertion

[OpenWrt-Devel] [PATCH 1/2] build: separate signing logic

2019-09-24 Thread Paul Spooren
buildbot.git contains some hacks to create images that have signature verification capabilities while not storing private keys on buildbot slaves. This commit allows to disable these steps for the buildbots and only perform signing on the master. Signed-off-by: Paul Spooren --- config/Config-build.in

[OpenWrt-Devel] [PATCH 2/2] build: add script to sign packages

2019-09-24 Thread Paul Spooren
env vars: * TOP_DIR where to search for sysupgrade.bin images * BUILD_KEY place of key-build{,.pub,.ucert} * REMOVE_OTHER_SIGNATURES removes signatures added by e.g. buildbots Only sysupgrade.bin files are touched as factory.bin signatures wouldn't be evaluated on stock from. Signed-off-by:

[OpenWrt-Devel] [PATCH] toolchain/gcc: switch to version 8 by default

2019-09-28 Thread Paul Spooren
Main motivation for this commit is the introduction of `-ffile-prefix-map=` which alows reproducible build path. Compiling tested without errors on the following targets: * ath79 * brcm2708 * brcm63xx * ixp4xx * ramips * sunxi * x86 Signed-off-by: Paul Spooren --- Please let me know if I

[OpenWrt-Devel] [PATCH] rules: allow arbitrary log destination

2019-09-28 Thread Paul Spooren
Add option BUILD_LOG_DIR to menuconfig to change log destination. The mix-up of *DIR* and *FOLDER* is confusing however. Signed-off-by: Paul Spooren --- config/Config-devel.in | 7 +++ rules.mk | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config

[OpenWrt-Devel] [PATCH] kernel-defaults: ensure SOURCE_DATE_EPOCH on /init

2019-09-29 Thread Paul Spooren
This is a follow up of 8cb13f4e6d which sets the right timestamp for the /init file in initramfs. The previous patch doesn't cover it as the files appear to come from a later step during compilation. CC: Alexander Couzens Signed-off-by: Paul Spooren --- include/kernel-defaults.mk | 1

<    1   2   3   4   5   6   7   >