Re: [Toybox] CPU% collation in top -H...

2019-03-08 Thread enh via Toybox
On Sat, Mar 2, 2019 at 2:06 PM Rob Landley wrote: > > On 2/26/19 11:57 AM, enh wrote: > > On Tue, Feb 26, 2019 at 1:08 AM Rob Landley wrote: > >>> i know, you list these every time this comes up :-) > >> > >> Hopefully not the same ones? I like to think I'm making _some_ progress... > > > > well,

[Toybox] [PATCH] find: add -context.

2019-03-08 Thread enh via Toybox
Tested manually on an Android device with: adb shell find /system -context u:object_r:wait_for_keymaster_exec:s0 adb shell find /system/bin -context '"*key*"' adb shell find /system/bin -context '"*tool*"' --- toys/posix/find.c | 16 +--- 1 file changed, 13 insertions(+), 3 dele

Re: [Toybox] NDK versions?

2019-03-08 Thread enh via Toybox
On Fri, Mar 8, 2019 at 12:34 PM Rob Landley wrote: > > On 3/8/19 1:06 PM, enh wrote: > > On Fri, Mar 8, 2019 at 10:47 AM Rob Landley wrote: > >> > >> On 3/5/19 6:23 PM, Rob Landley wrote: > >>> landley@halfbrick:~/toybox/clean$ > >>> CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains

Re: [Toybox] NDK versions?

2019-03-08 Thread enh via Toybox
On Fri, Mar 8, 2019 at 12:58 PM Josh Gao wrote: > > On Fri, Mar 8, 2019 at 12:34 PM Rob Landley wrote: > > > > What would be really really nice is if you had -cc and -c++ symlinks to the > > latest -clang and -clang++ versions in the zip file. Then I wouldn't have to > > create them, so I wouldn'

Re: [Toybox] NDK versions?

2019-03-08 Thread Josh Gao via Toybox
On Fri, Mar 8, 2019 at 12:34 PM Rob Landley wrote: > > What would be really really nice is if you had -cc and -c++ symlinks to the > latest -clang and -clang++ versions in the zip file. Then I wouldn't have to > create them, so I wouldn't have to work out which version is latest. (You > could > a

Re: [Toybox] NDK versions?

2019-03-08 Thread Rob Landley
On 3/8/19 1:06 PM, enh wrote: > On Fri, Mar 8, 2019 at 10:47 AM Rob Landley wrote: >> >> On 3/5/19 6:23 PM, Rob Landley wrote: >>> landley@halfbrick:~/toybox/clean$ >>> CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm- >>> LDFLAGS=--static make >>

Re: [Toybox] FYI

2019-03-08 Thread enh via Toybox
On Wed, Mar 6, 2019 at 10:26 AM Rob Landley wrote: > > Not 100% sure my explanation's right at the end there: > > https://github.com/landley/toybox/issues/122 pretty much. just the extra seccomp gotcha missing. > I should probably provide some prebuilt binaries built with the NDK along with >

Re: [Toybox] NDK versions?

2019-03-08 Thread enh via Toybox
On Fri, Mar 8, 2019 at 10:47 AM Rob Landley wrote: > > On 3/5/19 6:23 PM, Rob Landley wrote: > > landley@halfbrick:~/toybox/clean$ > > CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm- > > LDFLAGS=--static make > > It took some squinting (and rere

Re: [Toybox] NDK versions?

2019-03-08 Thread Rob Landley
On 3/5/19 6:23 PM, Rob Landley wrote: > landley@halfbrick:~/toybox/clean$ > CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm- > LDFLAGS=--static make It took some squinting (and rereading the instructions on the website multiple times... why does

[Toybox] [PATCH] file: add c-sky ELF machine.

2019-03-08 Thread enh via Toybox
It's in the Linux 5 kernel headers. If, like me, you'd never heard of it: https://www.phoronix.com/scan.php?page=news_item&px=C-SKY-Approved-Last-Arch --- toys/posix/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) From 4ca581948752feca0af5b88456de2692b64417f2 Mon Sep 17 00:00:00

[Toybox] [PATCH] su: it's _PATH_DEFPATH, not _PATH_DEFPATHS.

2019-03-08 Thread enh via Toybox
This still leaves some breakage: toys/lsb/su.c:68:3: error: implicit declaration of function 'loggit' loggit(name, 0); ^~ log2l toys/lsb/su.c:105:22: warning: too many arguments for format syslog(LOG_NOTICE, "No.", getusername(getuid()), name); ^ At