Re: [LEDE-DEV] [PATCH] treewide: set scripts executable

2018-03-30 Thread Yousong Zhou
On 30 March 2018 at 17:53, Koen Vandeputte wrote: > A lot of scripts are not set executable and thus will not run on invocation. > Fix this by setting appropriate rights. > > Currently, only files with extension .sh are targetted. > > A partial list of files on my imx6 after installing the latest

Re: [LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-03-02 Thread Yousong Zhou
On 2 March 2018 at 17:19, Felix Fietkau wrote: > On 2018-03-02 10:07, Yousong Zhou wrote: >> On 1 March 2018 at 17:36, Felix Fietkau wrote: >>> To give you a better example, I just took another look at our packages >>> and found one that would directly be affected by

Re: [LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-03-02 Thread Yousong Zhou
On 1 March 2018 at 17:36, Felix Fietkau wrote: > On 2018-03-01 03:48, Yousong Zhou wrote: >> On 28 February 2018 at 18:58, Felix Fietkau wrote: >>> On 2018-02-28 11:48, Yousong Zhou wrote: >>>> On 28 February 2018 at 16:13, Felix Fietkau wrote: >>>>

Re: [LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-02-28 Thread Yousong Zhou
On 28 February 2018 at 18:58, Felix Fietkau wrote: > On 2018-02-28 11:48, Yousong Zhou wrote: >> On 28 February 2018 at 16:13, Felix Fietkau wrote: >>> On 2018-02-28 06:07, Yousong Zhou wrote: >>>> This is intended to reduce build time for situations like the f

Re: [LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-02-28 Thread Yousong Zhou
On 28 February 2018 at 16:13, Felix Fietkau wrote: > On 2018-02-28 06:07, Yousong Zhou wrote: >> This is intended to reduce build time for situations like the following >> where python and python-six and their dependencies could still be built >> as long as any subpackage

[LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-02-27 Thread Yousong Zhou
-python ... DEPENDS:=+python +python-six endef Previously we work around this by specifying the dependency as +PACKAGE_openvswitch-python:python, which is unintuitive Signed-off-by: Yousong Zhou --- scripts/package-metadata.pl | 13 ++--- 1 file changed, 10 insertions(+), 3

Re: [LEDE-DEV] [PATCH v1 1/1] openssh: disable passwords for openssh server

2018-02-14 Thread Yousong Zhou
On 14 February 2018 at 11:53, Philip Prindeville wrote: > >> On Feb 11, 2018, at 3:54 AM, Yousong Zhou wrote: >> >> On 9 February 2018 at 08:28, Philip Prindeville >> wrote: >>> From: Philip Prindeville >>> >>> Allowing password login

[LEDE-DEV] [PATCH v2][procd 1/2] service: add func for string config change check

2018-02-11 Thread Yousong Zhou
To also prepare for following commits introducing more string value change detection Signed-off-by: Yousong Zhou --- service/instance.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/service/instance.c b/service/instance.c index 12c2efe..c3f8b56 100644 --- a

[LEDE-DEV] [PATCH v2][procd 2/2] service: initialize supplementary group ids

2018-02-11 Thread Yousong Zhou
We currently only call setgid() with user's primary group id for service instance processes. In the case of a user belong to multiple groups, it's natural to also explicitly initialize their supplementary group ids Fixes FS#988 Signed-off-by: Yousong Zhou --- service/insta

[LEDE-DEV] [PATCH 2/2] service: initialize supplementary group ids

2018-02-11 Thread Yousong Zhou
Fixes FS#988 Signed-off-by: Yousong Zhou --- service/instance.c | 13 - service/instance.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/service/instance.c b/service/instance.c index c3f8b56..76573f7 100644 --- a/service/instance.c +++ b/service/instance.c

[LEDE-DEV] [PATCH 1/2] service: add func for string config change check

2018-02-11 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/instance.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/service/instance.c b/service/instance.c index 12c2efe..c3f8b56 100644 --- a/service/instance.c +++ b/service/instance.c @@ -588,6 +588,11 @@ instance_restart

Re: [LEDE-DEV] [PATCH v1 1/1] openssh: disable passwords for openssh server

2018-02-11 Thread Yousong Zhou
On 9 February 2018 at 08:28, Philip Prindeville wrote: > From: Philip Prindeville > > Allowing password logins leaves you vulnerable to dictionary > attacks. We disable password-based authentication, limiting > authentication to keys only which are more secure. > > Note: You'll need to pre-popul

[LEDE-DEV] [PATCH v2] build: add config option KERNEL_MIPS_FPU_EMULATOR

2018-01-28 Thread Yousong Zhou
To make it more accessible for nodejs users to configure and run a build on mips target lacking hardware fpu Signed-off-by: Yousong Zhou --- v2 <- v1 Use TARGET_lantiq_ase instead of TARGET_lantiq config/Config-kernel.in| 5 + target/linux/lantiq/ase/config-defa

[LEDE-DEV] [PATCH] build: add config option KERNEL_MIPS_FPU_EMULATOR

2018-01-28 Thread Yousong Zhou
To make it more accessible for nodejs users to configure and run a build on mips target lacking hardware fpu Signed-off-by: Yousong Zhou --- config/Config-kernel.in| 5 + target/linux/lantiq/ase/config-default | 1 - target/linux/pistachio/config-4.9 | 1 - 3 files

Re: [LEDE-DEV] [PATCH] build: disable BUILD_PATENTED by default

2018-01-25 Thread Yousong Zhou
On 26 January 2018 at 10:23, Rosen Penev wrote: > On Thu, Jan 25, 2018 at 5:03 AM, Kevin Darbyshire-Bryant > wrote: >> >> >>> On 25 Jan 2018, at 12:58, Yousong Zhou wrote: >>> >>> On 25 January 2018 at 19:30, Kevin Darbyshire-Bryant >>> wr

Re: [LEDE-DEV] [PATCH] build: disable BUILD_PATENTED by default

2018-01-25 Thread Yousong Zhou
On 25 January 2018 at 19:30, Kevin Darbyshire-Bryant wrote: > > >> On 25 Jan 2018, at 02:42, Yousong Zhou wrote: >> >> Signed-off-by: Yousong Zhou >> --- >> config/Config-build.in | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >&g

[LEDE-DEV] [PATCH] build: disable BUILD_PATENTED by default

2018-01-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- config/Config-build.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Config-build.in b/config/Config-build.in index f9987fc..7ec7653 100644 --- a/config/Config-build.in +++ b/config/Config-build.in @@ -41,7 +41,7 @@ menu "Global

Re: [LEDE-DEV] [OpenWrt-Devel] Collecting issues on github

2018-01-12 Thread Yousong Zhou
On 13/01/2018, Ted Hess wrote: > Hi folks, > > I would like to propose we close the issues tab on the > github/openwrt/openwrt source repository as we did for the > lede-project/source repo. We can continue to re-direct people to our > bug-tracker for the mainline sources. > > The packages repo re

Re: [LEDE-DEV] [OpenWrt-Devel] [PATCH v4 2/8] merge: release/banner: drop release name and update banner

2017-11-07 Thread Yousong Zhou
On 7 November 2017 at 16:45, Zoltan HERPAI wrote: > Signed-off-by: Zoltan HERPAI > --- > include/version.mk | 12 ++-- > package/base-files/files/etc/banner | 18 -- > 2 files changed, 10 insertions(+), 20 deletions(-) > > diff --git a/include/version.mk

Re: [LEDE-DEV] Issues building libunwind for x86_32

2017-11-05 Thread Yousong Zhou
On 6 November 2017 at 06:28, Philip Prindeville wrote: > I’m seeing the following when trying to build a Geode image: > > > make[6]: Entering directory > '/home/philipp/bertram/lede3/build_dir/target-i386_pentium_musl/libunwind-1.2.1/src' > /bin/bash ../libtool --tag=CC --mode=link i486-openwr

Re: [LEDE-DEV] [PATCH] libubux: add 2 missing free calls and change a char to const char.

2017-10-31 Thread Yousong Zhou
On 31 October 2017 at 09:49, Rosen Penev wrote: > Reduces compiled size by 48 bytes. > > Signed-off-by: Rosen Penev > --- > jshn.c| 4 +++- > ustream.c | 1 + > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/jshn.c b/jshn.c > index 4989099..d47e98d 100644 > --- a/jshn.c > +

Re: [LEDE-DEV] [OpenWrt-Devel] [PATCH v2] merge: add OpenWrt branding

2017-10-29 Thread Yousong Zhou
On 28 October 2017 at 03:54, Florian Fainelli wrote: ... > > Quite frankly, if the goal is just to give Zoltan and Imre a hard time > and nitpick on everything possible just to delay (purposely or not) the > remerge, then you are doing a great job at it, but this goes against > rule #12. > No,

Re: [LEDE-DEV] [PATCH 2/2] download.mk: introduce a new variable SKIPHASH

2017-10-26 Thread Yousong Zhou
On 26 October 2017 at 17:50, Baptiste Jonglez wrote: > When calling a download target, hash verification is now completely > skipped if the SKIPHASH variable is set. > > This allows to easily bump package version: > > # Update PKG_VERSION in the package Makefile > $ make package//download

Re: [LEDE-DEV] [OpenWrt-Devel] [PATCH v2] merge: add OpenWrt branding

2017-10-26 Thread Yousong Zhou
On 27 October 2017 at 00:32, Imre Kaloz wrote: > Hi Paul, > > On 2017-10-26 18:16, p...@oranjevos.nl wrote: > > Please, could you add some info on what has changed with the new version of > the patch ? > And, it would be appreciated when the SOB would not use an openwrt.org mail > address (assumin

Re: [LEDE-DEV] Testing ARM images

2017-10-25 Thread Yousong Zhou
On 26 October 2017 at 08:08, Philip Prindeville wrote: > Hi. > > I was recently working on updating Perl 5.26.1 which required making > machine-specific parameters for cross-builds (because Perl doesn’t use > autoconf), and was able to test for x86_64 on KVM/libvirt, but have not tried > any ot

Re: [LEDE-DEV] [OpenWrt-Devel] merge: add OpenWrt branding

2017-10-24 Thread Yousong Zhou
On 24 October 2017 at 19:46, Zoltan HERPAI wrote: > Given that we've decided to sail under the same flag for > the benefit of the whole community, and acknowledge the > achievements of the LEDE project, let's start the final > steps of the merge. > > The git and other sources are untouched until t

Re: [LEDE-DEV] [PATCH 1/9] hwmon-coretemp: add thermal monitor for Core/Core2/Atom

2017-10-22 Thread Yousong Zhou
On 23 October 2017 at 04:21, Zoltan HERPAI wrote: > From: Philip Prindeville > > Signed-off-by: Philip Prindeville > --- > package/kernel/linux/modules/hwmon.mk | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/package/kernel/linux/modules/hwmon.mk > b/package/kernel/li

Re: [LEDE-DEV] is it feasible to use a recent linux distro & LEDE to build openwrt 15.05.1?

2017-09-14 Thread Yousong Zhou
On 14 September 2017 at 19:06, Robert P. J. Day wrote: > > here's hoping someone can give me a short answer on whether this is > possible, or whether it's just not worth the trouble. > > i was recently handed an existing openwrt-based project, which is > based on openwrt 15.05.1. the problem (

Re: [LEDE-DEV] [PATCH libubox 2/2] uloop: Enable utracing of multi-threaded programs

2017-09-13 Thread Yousong Zhou
On 12 September 2017 at 19:12, Michal Sojka wrote: > This is needed for Linux < 4.7 or < 4.4.13 to report ptrace events in > threads. > > Signed-off-by: Michal Sojka > --- > uloop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/uloop.c b/uloop.c > index 3813e18..e6d77d

Re: [LEDE-DEV] [PATCH libubox 1/2] uloop: Fix race condition in SIGCHLD handling

2017-09-13 Thread Yousong Zhou
loop_setup_signals() there. > This is what this commit does. > > Now, uloop_process_add() can be called any time after uloop_init() > without missing any event. > > Signed-off-by: Michal Sojka Acked-by: Yousong Zhou Thanks. yousong > --- > uloop.

Re: [LEDE-DEV] [PATCH ubox 2/3] kmodloader: lift restriction on module alias info

2017-08-31 Thread Yousong Zhou
On 31 August 2017 at 16:44, Hans Dedecker wrote: > On Wed, Aug 30, 2017 at 4:09 PM, Yousong Zhou wrote: >> On 30 August 2017 at 21:24, Hans Dedecker wrote: >>> kmodloader has a restriction of storing only 32 aliases for a given >>> module; as modules can have easily

Re: [LEDE-DEV] [PATCH ubox 2/3] kmodloader: lift restriction on module alias info

2017-08-30 Thread Yousong Zhou
On 30 August 2017 at 21:24, Hans Dedecker wrote: > kmodloader has a restriction of storing only 32 aliases for a given > module; as modules can have easily more than 32 aliases let's remove > the restriction by using a dynamic allocation mechanism when retrieving > the aliases. > > Signed-off-by:

Re: [LEDE-DEV] Running init in a chroot LEDE Image

2017-08-08 Thread Yousong Zhou
On 9 August 2017 at 13:44, Nicolas Pace wrote: > Thanks for replying! > > On Wed, 2017-08-09 at 10:09 +0800, Yousong Zhou wrote: >> On 9 August 2017 at 08:01, Mirko Parthey >> wrote: >> > On Tue, Aug 08, 2017 at 11:32:23PM +0300, Nicolas Pace wrote: >> > &g

Re: [LEDE-DEV] Running init in a chroot LEDE Image

2017-08-08 Thread Yousong Zhou
On 9 August 2017 at 08:01, Mirko Parthey wrote: > On Tue, Aug 08, 2017 at 11:32:23PM +0300, Nicolas Pace wrote: >> I'm trying to run a rootfs chroot on my desktop computer to easen the >> development of userspace applications, but as I'm using ubus I need a >> complete LEDE environment. >> Using c

Re: [LEDE-DEV] [PATCH 1/2] busybox: move traceroute applets to /bin

2017-07-19 Thread Yousong Zhou
On 20 July 2017 at 05:52, Daniel Golle wrote: > busybox currently installs traceroute and traceroute6 into /usr/bin > which prevents their 'full' iputils variants from being installed. > Move those applets to /bin so they can coexist with their iputils > siblings using the same PATH convention alr

Re: [LEDE-DEV] ARC770 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

2017-07-18 Thread Yousong Zhou
On 19 July 2017 at 04:51, Alexandru Gagniuc wrote: > Hi, I'm trying to get a new ASIC with an ARC770 core running with openwrt, > but I keep hitting the attempted to kill init problem, and have run out of > debugging ideas. I've tried building busybox statically linked. > > I'm building a kernel e

Re: [LEDE-DEV] [RFC 03/11] include: u-boot.mk: use one less reference in HOSTCPPFLAGS

2017-07-17 Thread Yousong Zhou
On 18 July 2017 at 06:10, Hauke Mehrtens wrote: > U-Boot 2017.07 complains if HOSTCPPFLAGS is referenced once too often. > > Signed-off-by: Hauke Mehrtens > --- > include/u-boot.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/u-boot.mk b/include/u-boot.mk > in

Re: [LEDE-DEV] [RFC 06/11] sunxi: split into cortex A8 and A7 subtarget

2017-07-17 Thread Yousong Zhou
On 18 July 2017 at 06:10, Hauke Mehrtens wrote: > Now we can activate some compiler optimizations for the cortex A7. > > Signed-off-by: Hauke Mehrtens > --- > package/boot/uboot-sunxi/Makefile | 17 + > target/linux/sunxi/Makefile | 3 +-- > target/linux/sunxi/cortexa7

Re: [LEDE-DEV] [RFC 04/11] uboot-sunxi: update to version 2017.07

2017-07-17 Thread Yousong Zhou
On 18 July 2017 at 06:10, Hauke Mehrtens wrote: > This needs swig and a host dtc install on the host now. > Currently we use dtc built from the kernel tree. Can we also make use of the fdtget there as a fallback of swig? Regards, yousong _

[LEDE-DEV] [PATCH] pkg_alternatives: pass if the desired symlink already exists

2017-07-11 Thread Yousong Zhou
ortex-a9+vfpv3_musl_eabi/root-mvebu/sbin/ip") = -1 EEXIST (File exists) ... While at it, "mkdir -p" dirname(path_in_dest) before symlink in case the following symlink call may fail with ENOENT Ref: https://github.com/openwrt/packages/issues/4567 Reported-by: Aner

Re: [LEDE-DEV] [PATCH ubox] kmodloader: Check module endian before loading

2017-07-02 Thread Yousong Zhou
On 1 July 2017 at 07:34, Florian Fainelli wrote: > If we manage to accidentally get a module installed that does not match > the system endianess (there is currently nothing preventing that in > OpenWrt/LEDE) we will hit a segmentation fault when doing this: > > sh = (Elf32_Shdr *) (map + e->e_sho

Re: [LEDE-DEV] [PATCH v2 1/2] base-files: allocate uid/gid starting from 65536

2017-06-16 Thread Yousong Zhou
On 16 June 2017 at 20:15, Karl Palsson wrote: > > Daniel Golle wrote: >> On Fri, Jun 16, 2017 at 10:30:14AM -, Karl Palsson wrote: >> > >> > >> > I fairly strong feel that this change brings no value to the >> > table. >> >> I disagree. For now, the two allocation schemes (hardcoded vs. >> dy

[LEDE-DEV] [PATCH v2 2/2] scripts/package-metadata.pl: parse and validate field Require-User

2017-06-15 Thread Yousong Zhou
: Yousong Zhou --- scripts/metadata.pm | 72 - scripts/package-metadata.pl | 12 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 8334f26d31..d446892e2b 100644 --- a/scripts

[LEDE-DEV] [PATCH v2 0/2] enhance UID/GID assignment

2017-06-15 Thread Yousong Zhou
eeds/packages/privoxy/Makefile group rpc 65533 package/feeds/packages/portmap/Makefile Yousong Zhou (2): base-files: allocate uid/gid starting from 65536 scripts/package-metadata.pl: parse and validate field Require-User package/base-files/Makefile | 2 +-

[LEDE-DEV] [PATCH v2 1/2] base-files: allocate uid/gid starting from 65536

2017-06-15 Thread Yousong Zhou
mmand checking existence of uid/gid Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- package/base-files/files/lib/functions.sh | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile

Re: [LEDE-DEV] [PATCH 2/3] base-files: allocate uid/gid starting from 65536

2017-06-15 Thread Yousong Zhou
imply to make sure dynamic assignment will not take up numbers in the range of those for static assignment. yousong > > Yousong Zhou wrote: >> There already exist static assignment of uid/gid 65533 in >> packages feed and we have nobody/nogroup taking 65534 as

Re: [LEDE-DEV] [PATCH 1/3] base-files: support multiple user:group tuples in Require-User

2017-06-15 Thread Yousong Zhou
On 15 June 2017 at 17:19, Jonas Gorski wrote: > Hi, > > On 14 June 2017 at 14:28, Yousong Zhou wrote: >> Signed-off-by: Yousong Zhou >> --- >> package/base-files/Makefile | 2 +- >> package/base-files/files/lib/functions.sh | 54 >>

Re: [LEDE-DEV] [PATCH 2/3] base-files: allocate uid/gid starting from 65536

2017-06-14 Thread Yousong Zhou
On 14 June 2017 at 20:34, Karl Palsson wrote: > > > Do you mean to have it count down now as well, instead of up from > 100? > No, the direction hasn't changed, just the starting number. yousong > Yousong Zhou wrote: >> There already exist static a

[LEDE-DEV] [PATCH 2/3] base-files: allocate uid/gid starting from 65536

2017-06-14 Thread Yousong Zhou
cking existence of uid/gid Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- package/base-files/files/lib/functions.sh | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 54c15

[LEDE-DEV] [PATCH 3/3] scripts/package-metadata.pl: parse and validate field Require-User

2017-06-14 Thread Yousong Zhou
: Yousong Zhou --- include/package-ipkg.mk | 2 +- scripts/metadata.pm | 72 - scripts/package-metadata.pl | 12 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index

[LEDE-DEV] [PATCH 0/3] enhance UID/GID assignment

2017-06-14 Thread Yousong Zhou
kage/feeds/packages/portmap/Makefile Yousong Zhou (3): base-files: support multiple user:group tuples in Require-User base-files: allocate uid/gid starting from 65536 scripts/package-metadata.pl: parse and validate field Require-User include/package-ipkg.mk | 2 +- package/

[LEDE-DEV] [PATCH 1/3] base-files: support multiple user:group tuples in Require-User

2017-06-14 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- package/base-files/files/lib/functions.sh | 54 +++ 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index

Re: [LEDE-DEV] Planning v17.01.2

2017-05-25 Thread Yousong Zhou
yousong On 25 May 2017 at 04:34, Jo-Philipp Wich wrote: > Hi, > > I'd like to start preparing the v17.01.2 release during the upcoming > weekend with the goal to release final binaries within the next week > (~May 29th till June 3rd). > > Changes that shall be part of 17.01.2 sho

[LEDE-DEV] [PATCH 1/2] backlight-pwm: fix module description

2017-05-25 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/video.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index a93c0b89f2..ecea009bd6 100644 --- a/package/kernel/linux/modules/video.mk

[LEDE-DEV] [PATCH 2/2] kernel: fix autoloading arch-specific modules

2017-05-25 Thread Yousong Zhou
Fixes FS#745 Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/crypto.mk | 14 +++--- package/kernel/linux/modules/sound.mk | 2 +- package/kernel/linux/modules/video.mk | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package/kernel/linux/modules

Re: [LEDE-DEV] Fwd: Re: convention on uid/gid for packages

2017-05-22 Thread Yousong Zhou
On 22 May 2017 at 19:52, Karl Palsson wrote: > > Yousong Zhou wrote: >> On 19 May 2017 at 18:44, Karl Palsson >> wrote: >> > Resending to the list properly as planned... >> > >> > >> > I've modified one of my packages (mosquitto) to use

Re: [LEDE-DEV] [PATCH] add --do-setup arg and default to squasfs

2017-05-22 Thread Yousong Zhou
Hi, Paul On 18 May 2017 at 03:40, Paul Spooren wrote: > scripts/qemustart > > the function do_setup is never used except if the script is changed > manually. It's used to easily setup bridges and traffic forwarding. > Adding the parameter --do-config simplifies the deployment. > I thought about

Re: [LEDE-DEV] Fwd: Re: convention on uid/gid for packages

2017-05-22 Thread Yousong Zhou
On 19 May 2017 at 18:44, Karl Palsson wrote: > Resending to the list properly as planned... > > > I've modified one of my packages (mosquitto) to use the > autoassignment style, as it never cared about the actual uid/gid. > > However, is this really the expected behaviour? > > # cat /etc/passwd >

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-17 Thread Yousong Zhou
On 16 May 2017 at 00:02, Val Kulkov wrote: > I agree that not depending on the manual cooperation across groups of > people would be ideal. However, updating 35+ packages to use the > auto-allocation mechanism is not an easy undertaking. Updating 35+ packages is easy with a few lines of shell scr

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 23:29, Val Kulkov wrote: > Yousong, perhaps I was not clear. What I am suggesting is to change > the auto-allocation to start from 1000 rather than from 100 (1000 is > just a suggestion, it could be anything else that is high enough), and > to have a convention to allocate the 1-

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 23:04, Val Kulkov wrote: > On 15 May 2017 at 10:59, Yousong Zhou wrote: >> On 15 May 2017 at 22:41, Val Kulkov wrote: >>> The auto-allocation of uid/gid emulates useradd/groupadd, picking the >>> first unused uid/gid starting from 100. This works qui

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 22:41, Val Kulkov wrote: > The auto-allocation of uid/gid emulates useradd/groupadd, picking the > first unused uid/gid starting from 100. This works quite well on its > own, but there are about three dozen packages in the packages repo > that come with hardcoded uid/gid's: > > f

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 21:07, Val Kulkov wrote: > On 15 May 2017 at 02:30, Alexandru Ardelean wrote: >> On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: >>> Hi Val, >>> >>> On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: Is there any convention on the use of uid and gid when crea

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Yousong Zhou
On 13 May 2017 at 19:51, Mauro Mozzarelli wrote: > Thanks Yousong, Merci Etienne, > > > I updated and rebuilt with the fix r4117 and I already communicated to > Etienne that this fixes MWAN Interface Systemlog (this now shows), but both > my interfaces remain marked as offline and red, when they a

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Yousong Zhou
On 13 May 2017 at 19:15, Mauro Mozzarelli wrote: > It looks like the problem extends also to other systems and might be traced > back to the relocation of > > /usr/bin/ip > > to > > /sbin/ip > For your information, fix for mwan3 has just been pushed to packages feed a while ago (https://github.co

Re: [LEDE-DEV] [OpenWrt-Devel] openwrt and lede - remerge proposal

2017-05-10 Thread Yousong Zhou
So many items to vote and work on. I would suggest we sort out those formal things first, e.g. project rules, umbrella project etc. I do not know much about the past history apart from those posts in the public mailing list. But if these formal things were the major cause of the split in the fir

Re: [LEDE-DEV] [RFC][17.01] ubox: bump to version 2017-03-10

2017-04-26 Thread Yousong Zhou
On 25 April 2017 at 21:16, Yousong Zhou wrote: > Changes since current version > > 16f7e16 syslog: remove unnecessary sizeof struct between messages > 21a4bd0 kmodloader: modprobe: return 0 for loaded modules > 3dc78a4 kmodloader: don't store aliases i

[LEDE-DEV] [RFC][17.01] ubox: bump to version 2017-03-10

2017-04-25 Thread Yousong Zhou
s Fixes FS#684 with commit 21a4bd0 Signed-off-by: Yousong Zhou --- Hi, I actually thought about opening a 17.01 branch for the ubox repo and cherry-picking only bugfix commits there. What do you think? package/system/ubox/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-

Re: [LEDE-DEV] FW: UDP throughput caused kernel panic if configured bridge mode in /etc/config/network

2017-04-24 Thread Yousong Zhou
On 24 April 2017 at 15:39, Y.B. Lu wrote: > Hi John, > > Thank you very much. > > But I still feel it's strange the crash didn't happen if used brctl to > configure instead of /etc/config/network. > Much memory(about 700MB) was consumed in UDP throughput test only when used > /etc/config/network

Re: [LEDE-DEV] [PATCH 3/3] scripts/qemustart: initial version

2017-04-22 Thread Yousong Zhou
On 19 April 2017 at 18:27, Yousong Zhou wrote: > The script can be used to quickly spin up QEMU virtual machines with lan > and wan network. Please read the initial part of the script for > instructions about how to configure host machine > > Signed-off-by: Yousong Zhou I j

[LEDE-DEV] [PATCH 2/3] armvirt: merge arm64 as subtarget 64

2017-04-19 Thread Yousong Zhou
arget") - pl011, uart - pl031, rtc - pl061, gpio - pci-host-generic - virtio_{mmio,pci,net,blk,scsi,9p,console,balloon} - smp with NR_CPUS=4 - cpu-hotplug - ext4 - DEBUG_BUGVERBOSE for debug purposes Signed-off-by: Yousong Zhou --- target/linux/arm64/Makefile

[LEDE-DEV] [PATCH 3/3] scripts/qemustart: initial version

2017-04-19 Thread Yousong Zhou
The script can be used to quickly spin up QEMU virtual machines with lan and wan network. Please read the initial part of the script for instructions about how to configure host machine Signed-off-by: Yousong Zhou --- scripts/qemustart | 287

[LEDE-DEV] [PATCH 1/3] build: fix aarch64 default cpu selection

2017-04-19 Thread Yousong Zhou
cpu `armv8-a' Error: unrecognized option -mcpu=armv8-a /home/yousong/git-repo/lede-project/lede/build_dir/toolchain-aarch64_armv8-a_gcc-5.4.0_musl/gcc-5.4.0/libgcc/libgcc2.c:1:0: error: unknown value 'armv8-a' for -mcpu Signed-off-by: Yousong Zhou --- include/target.mk |

Re: [LEDE-DEV] Removing package overlay functionality

2017-04-16 Thread Yousong Zhou
On 17 April 2017 at 10:38, Philip Prindeville wrote: > commit b044bd5921e9644c9df9655bef10cee0af730724 > Author: Felix Fietkau > Date: Mon Apr 3 12:36:35 2017 +0200 > > build: remove package makefile overlay functionality > > Recent attempts to use it have shown that it does not work pr

Re: [LEDE-DEV] dnsmasq sometimes fails to start on 17.01.0

2017-03-29 Thread Yousong Zhou
> automatically by the mailing list software. > > > -- Forwarded message -- > From: Gui Iribarren > To: Yousong Zhou > Cc: lede-dev@lists.infradead.org > Bcc: > Date: Thu, 23 Mar 2017 16:10:06 -0300 > Subject: Re: [LEDE-DEV] dnsmasq sometimes fails to s

Re: [LEDE-DEV] [PATCH] build: Fix unpacking of overlaid packages

2017-03-23 Thread Yousong Zhou
On 23 March 2017 at 15:40, Michal Sojka wrote: > Hi Yousong, > > On Thu, Mar 23 2017, Yousong Zhou wrote: >> On 18 March 2017 at 06:54, Michal Sojka wrote: >>> On Fri, Mar 17 2017, Michal Sojka wrote: >>>> Since commit 5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071

Re: [LEDE-DEV] [PATCH] build: Fix unpacking of overlaid packages

2017-03-22 Thread Yousong Zhou
On 18 March 2017 at 06:54, Michal Sojka wrote: > On Fri, Mar 17 2017, Michal Sojka wrote: >> Since commit 5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071d, LEDE's build >> system contains overlay functionality, which allows to locally amend >> properties of packages. When one wants to overlay certain prop

Re: [LEDE-DEV] dnsmasq sometimes fails to start on 17.01.0

2017-03-22 Thread Yousong Zhou
>From the log, there are at least 4 runs of /etc/init.d/dnsmasq This is "/e/c/dnsmasq boot" and returns immediately because the script skips this phase and the dnsmasq service is expected to be brought up by interface trigger events root@coco:~# logread | grep dns Wed Mar 22 18:25

Re: [LEDE-DEV] [PATCH] libubox: Fix -Wsign-compare and sign conversion warnings

2017-03-21 Thread Yousong Zhou
On 29 January 2017 at 09:11, Rosen Penev wrote: > While at it, also add -Wextra and -Wno-unused-parameter to the > CFLAGS. Compile tested on 32 and 64-bit x86. > > Signed-off by: Rosen Penev Sorry for the delay, but I just also compile-tested this ;) With gcc 4.7.2, the following further chang

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-21 Thread Yousong Zhou
On 21 March 2017 at 03:54, Russell Senior wrote: > The new ip-tiny ipk is 20k bigger than the old version (~79k vs ~100k). > There may be some additional pruning possible to get it back down to a > similar size. It will be really nice if the size can be squeezed for at least the ip-tiny package.

[LEDE-DEV] [PATCH uci 2/2] file: remove redundant NULL check on return value of uci_realloc()

2017-03-20 Thread Yousong Zhou
Because the check will be done by uci_realloc itself. Signed-off-by: Yousong Zhou --- file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/file.c b/file.c index 5a8c6cb..494c649 100644 --- a/file.c +++ b/file.c @@ -70,8 +70,6 @@ __private void uci_getln(struct uci_context *ctx, int

[LEDE-DEV] [PATCH uci 1/2] build: fix BUILD_STATIC

2017-03-20 Thread Yousong Zhou
- Build libuci.a in addition to libuci.so - Build uci cli utitlity statically if BUILD_STATIC is enabled Signed-off-by: Yousong Zhou --- CMakeLists.txt | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a900a15

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Yousong Zhou
On 19 March 2017 at 20:38, Russell Senior wrote: > > Thanks to Syrone Wong for the pointer to UAPI > fixes. This builds now, at least on x86/geode. It would be nice to > have some testing. > > Signed-off-by: Russell Senior > --- Tested-by: Yousong Zhou CC jogo,

[LEDE-DEV] [PATCH v2 4/4] iproute2: add ip-tiny, ip-full as alternatives of /sbin/ip

2017-03-20 Thread Yousong Zhou
They will not be in conflict anymore ;) Signed-off-by: Yousong Zhou --- package/network/utils/iproute2/Makefile | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile

[LEDE-DEV] [PATCH v2 3/4] busybox: add as an alternative of /sbin/ip

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/utils/busybox/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 0937ef9..28a6e89 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox

[LEDE-DEV] [PATCH v2 0/4] alternatives support

2017-03-20 Thread Yousong Zhou
t;- v1 - opkg now plays a central role in the support without depending on host uci and update-alternatives shell script Yousong Zhou (4): build: cleanup tmp/ dir of target rootfs build: ipkg: new field Alternatives busybox: add as an alternative of /sbin/ip iproute2: add ip-tiny, ip-fu

[LEDE-DEV] [PATCH v2 2/4] build: ipkg: new field Alternatives

2017-03-20 Thread Yousong Zhou
It's a list of specs of the following form seprated by commas to describe alternatives provided by this package :: will be a symbolic link to of the highest Signed-off-by: Yousong Zhou --- include/package-ipkg.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pa

[LEDE-DEV] [PATCH v2 1/4] build: cleanup tmp/ dir of target rootfs

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/rootfs.mk | 1 + package/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rootfs.mk b/include/rootfs.mk index c014b1d..74785cb 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -80,6 +80,7 @@ define

[LEDE-DEV] [PATCH libubox] md5: add "const" qualifier to the "file" argument

2017-03-20 Thread Yousong Zhou
: Yousong Zhou --- md5.c | 2 +- md5.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/md5.c b/md5.c index 781dbd1..3f8ad28 100644 --- a/md5.c +++ b/md5.c @@ -308,7 +308,7 @@ void md5_end(void *resbuf, md5_ctx_t *ctx) memset(ctx, 0, sizeof(*ctx)); } -int md5sum(char

[LEDE-DEV] [PATCH opkg-lede 2/2] pkg: alternatives support

2017-03-20 Thread Yousong Zhou
120 128 +8 opkg_remove_pkg 10791087 +8 -- (add/remove: 2/0 grow/shrink: 8/0 up/down: 1483/0) Total: 1497 bytes Signed-off-by: Yousong Zhou --- li

[LEDE-DEV] [PATCH opkg-lede 1/2] libbb: xreadlink: fix memory leak on failure case

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- libbb/xreadlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index 596a763..29949d1 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c @@ -25,6 +25,7 @@ extern char *xreadlink(const char *path

Re: [LEDE-DEV] [PATCH] iproute2: fix ip monitor can't work when NET_NS is not enabled

2017-03-19 Thread Yousong Zhou
On 19 March 2017 at 14:19, Russell Senior wrote: >>>>>> "Yousong" == Yousong Zhou writes: > > Florian> On 03/17/2017 09:51 PM, Yousong Zhou wrote: >>>>> The bug appeared in v4.1.0 and was fixed since v4.8.0 >>>>> >>>>

Re: [LEDE-DEV] [PATCH] iproute2: fix ip monitor can't work when NET_NS is not enabled

2017-03-18 Thread Yousong Zhou
On 19 March 2017 at 07:41, Russell Senior wrote: >>>>>> "Florian" == Florian Fainelli writes: > > Florian> On 03/17/2017 09:51 PM, Yousong Zhou wrote: >>> The bug appeared in v4.1.0 and was fixed since v4.8.0 >>> >>> Fixes FS#

[LEDE-DEV] [PATCH] iproute2: fix ip monitor can't work when NET_NS is not enabled

2017-03-17 Thread Yousong Zhou
The bug appeared in v4.1.0 and was fixed since v4.8.0 Fixes FS#620 Signed-off-by: Yousong Zhou --- I am also going to backport this to lede-17.01 branch package/network/utils/iproute2/Makefile| 2 +- ...ix-ip-monitor-can-t-work-when-NET_NS-is-n.patch | 40

Re: [LEDE-DEV] [PATCH 00/12] alternatives support

2017-03-07 Thread Yousong Zhou
On 8 March 2017 at 08:52, Philip Prindeville wrote: > >> On Mar 5, 2017, at 8:06 AM, Matthias Schiffer >> wrote: >> >> This could also avoid adding host UCI support to the build system, making >> the whole patchset a lot smaller. > > > Host support for UCI is useful to have anyway, for other re

Re: [LEDE-DEV] [PATCH 00/12] alternatives support

2017-03-06 Thread Yousong Zhou
On 5 March 2017 at 23:06, Matthias Schiffer wrote: > On 03/05/2017 10:31 AM, Yousong Zhou wrote: >> This patch set tries to make it possible that files serving the same purpose >> and installed to different locations can be available under the same name >> through a symboli

[LEDE-DEV] [PATCH 12/12] iproute2: add ip-tiny, ip-full as alternatives of /sbin/ip

2017-03-05 Thread Yousong Zhou
They will not be in conflict anymore ;) Signed-off-by: Yousong Zhou --- package/network/utils/iproute2/Makefile | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile

[LEDE-DEV] [PATCH 11/12] busybox: add as an alternative of /sbin/ip

2017-03-05 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/utils/busybox/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 0937ef9..28a6e89 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox

[LEDE-DEV] [PATCH 10/12] base-files: add update-alternatives call to default_{postinst, prerm}

2017-03-05 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- package/base-files/files/lib/functions.sh | 18 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 99a10ff..7dde9e1

[LEDE-DEV] [PATCH 09/12] base-files: enable presence of uci when IPKG_INSTROOT is set

2017-03-05 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index b68db6b..de3fa96 100755 --- a/package/base-files/files/lib

  1   2   3   >