WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore-12.0beta1  (Read 10013 times)

Offline polikuo

  • Hero Member
  • *****
  • Posts: 665
Re: piCore-12.0beta1
« Reply #15 on: October 02, 2020, 09:50:19 AM »
getlocale, mirrors, submitqc and unifont copied to aarch64 repo

Sorry~~ :-[
I've already hacked around the submitqc script and I totally forgot about it.
To make this script works on this platform, it'll need some tinkering.

Please append a new option around line 185.
Quote
aarch64) BASELIBS="$BASELIBS ld-linux-aarch64.so.1 linux-vdso.1"; ARCH="aarch64";;

The result should looks like
Code: [Select]
case "$ARCH" in
   x86_64) BASELIBS="$BASELIBS ld-linux-x86-64.so.2 linux-vdso.so.1" ;;
   i686) BASELIBS="$BASELIBS ld-linux.so.2 linux-gate.so.1"; ARCH="x86" ;;
   x86) BASELIBS="$BASELIBS ld-linux.so.2 linux-gate.so.1" ;;         
   armv7l) BASELIBS="$BASELIBS ld-linux-armhf.so.3 linux-vdso.1"; ARCH="armv7";;
   aarch64) BASELIBS="$BASELIBS ld-linux-aarch64.so.1 linux-vdso.1"; ARCH="aarch64";;
   *) echo "$SCRIPT: Unrecognized architecture '$ARCH'. See --help." && exit 1 ;;
esac


BTW, I just finished compiling openbox and sent it to picoresubmit AT gmail DOT com
Working and Tested. (I'm using it right now  8))

Furthermore, the openbox-config.tcz on x86_64 can be copied without tweaks as well.
Please port it over.  ;)

Please use /usr/local/lib/appname for libexec so we know where the files came from.
Noted  :)
Code: [Select]
./configure --prefix=/usr/local --libexecdir=/usr/local/lib/openbox
Cheers  ;D

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #16 on: October 02, 2020, 10:02:16 AM »
Please submit the submitqc changes as a patch and any piCore extensions to the standard email address - nobody knows the password to the piCore email address..

Offline polikuo

  • Hero Member
  • *****
  • Posts: 665
Re: piCore-12.0beta1
« Reply #17 on: October 03, 2020, 06:50:31 AM »
Please submit the submitqc changes as a patch and any piCore extensions to the standard email address - nobody knows the password to the piCore email address..

Extensions re-emailed to tcesubmit AT gmail DOT com
Along with the submitqc patch file.

Many thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #18 on: October 04, 2020, 02:55:42 AM »
posted - thanks  :)

Offline polikuo

  • Hero Member
  • *****
  • Posts: 665
Re: piCore-12.0beta1
« Reply #19 on: October 04, 2020, 09:25:58 AM »
Hi, wrong dep file for util-linux-python.tcz

There's no python.tcz in this arch, only python2.7.tcz or python3.8.tcz

I believe it should be python2.7.tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #20 on: October 04, 2020, 09:40:51 AM »
From the contents of util-linux-python.tcz.list, it looks like it should be python3.8?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 665
Re: piCore-12.0beta1
« Reply #21 on: October 04, 2020, 10:01:54 AM »
From the contents of util-linux-python.tcz.list, it looks like it should be python3.8?

Code: [Select]
tc@box:~$ find /tmp/tcloop/util-linux-python -not -type d -exec file {} +
/tmp/tcloop/util-linux-python/usr/local/lib/python3.8/site-packages/libmount/__init__.py:                               Python script, ASCII text executable
/tmp/tcloop/util-linux-python/usr/local/lib/python3.8/site-packages/libmount/__pycache__/__init__.cpython-38.opt-1.pyc: python 3.8 byte-compiled
/tmp/tcloop/util-linux-python/usr/local/lib/python3.8/site-packages/libmount/__pycache__/__init__.cpython-38.pyc:       python 3.8 byte-compiled
/tmp/tcloop/util-linux-python/usr/local/lib/python3.8/site-packages/libmount/pylibmount.la:                             libtool library file, ASCII text
/tmp/tcloop/util-linux-python/usr/local/lib/python3.8/site-packages/libmount/pylibmount.so:                             ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, stripped

Yep, you're right.  :)

Furthermore, pylibmount.so depends on libmount.so.1
So the dep file should look like
Code: [Select]
python3.8.tcz
util-linux.tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #22 on: October 05, 2020, 02:16:13 AM »
dep file adjusted - thanks for reporting this.

Offline mortegai

  • Newbie
  • *
  • Posts: 33
Missing busybox groups
« Reply #23 on: October 06, 2020, 03:17:51 AM »
Missing applet busybox groups used in openssh.tcz extension.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #24 on: October 06, 2020, 06:11:31 AM »
I see that the openssh init.d script calls busybox groups, which is no longer present in piCore, but is it actually needed - openssh works for me without that command being present?

In piCore:
Code: [Select]
$ cat /tmp/tcloop/openssh/usr/local/etc/init.d/openssh
#!/bin/sh
# openssh sshd start script
[ $(id -u) = 0 ] || { echo "must be root" ; exit 1; }

start(){

        busybox groups sshd >/dev/null 2>&1
        [ $? -ne 0 ] && busybox addgroup -g 33 sshd
   busybox id sshd >/dev/null 2>&1
   [ $? -ne 0 ] && busybox adduser -D -H -G sshd -u 33 -s /dev/null sshd

   [ -d /var/empty ] || mkdir /var/empty

   [ -f /usr/local/etc/ssh ] || mkdir -p /usr/local/etc/ssh

   [ -f /usr/local/etc/ssh/sshd_config ] || cp /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config

..whereas in x86:
Code: [Select]
$ cat /tmp/tcloop/openssh/usr/local/etc/init.d/openssh
#!/bin/sh
# openssh sshd start script
[ $(id -u) = 0 ] || { echo "must be root" ; exit 1; }

start(){
   [ -f /usr/local/etc/ssh/sshd_config ] || { echo "config file /usr/local/etc/ssh/sshd_config not found"; exit 1; }

There shouldn't be a need for any groups apart from root and staff?

Offline mortegai

  • Newbie
  • *
  • Posts: 33
Re: piCore-12.0beta1
« Reply #25 on: October 06, 2020, 06:30:58 AM »
Yes, openssh works, but if you do backup (filetool.sh -b), in the next boots a message appears (not harmful) about user sshd already exists, because the addgroup is executed.
Perhaps the best would be to adapt the script to  x86 style.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: piCore-12.0beta1
« Reply #26 on: October 06, 2020, 06:37:05 AM »
Hi Juanito
... openssh works for me without that command being present? ...
It works because the  addgroup  command is probably present:
Code: [Select]
--- Snip ---
        # This fails with  "applet not found"
        busybox groups sshd >/dev/null 2>&1

        # This detects a failure and assumes group  sshd  does not exist, so it adds it.
        [ $? -ne 0 ] && busybox addgroup -g 33 sshd
 --- Snip ---

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13812
Re: piCore-12.0beta1
« Reply #27 on: October 06, 2020, 07:24:09 AM »
init.d adjusted

Offline mortegai

  • Newbie
  • *
  • Posts: 33
Re: piCore-12.0beta1
« Reply #28 on: October 06, 2020, 12:41:51 PM »
init.d adjusted
But now, if the sshd user does not exist (initial/pristine situation) occurs error:
Privilege separation user sshd not exist
and sshd does not run.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: piCore-12.0beta1
« Reply #29 on: October 06, 2020, 12:52:41 PM »
Hi Juanito
Another way to test if group  sshd  exists.

Change this:
Code: [Select]
        busybox groups sshd >/dev/null 2>&1
        [ $? -ne 0 ] && busybox addgroup -g 33 sshd

To this:
Code: [Select]
        touch /tmp/groups
        chown tc:sshd /tmp/groups >/dev/null 2>&1
        [ $? -ne 0 ] && busybox addgroup -g 33 sshd