WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0  (Read 414 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 128
Follow-up on During startup, while extensions are loaded I see a few warnings regarding chown

found (I think) the last chown command causing the following message

Quote
chown: warning: '.' should be ':': 'tc.staff'


Code: [Select]
$ grep -rn chown /usr/local/bin/*.sh
/usr/local/bin/wbar_setup.sh:16:sudo chown root:staff "$TCEWBAR"
/usr/local/bin/wbar_setup.sh:22:        chown "$USER":staff "$XWBAR"
/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession

So it is line 103 in /usr/local/bin/xsetup.sh which still has a '.' (dot) i.s.o. a ':'.

I have problems using the 'P' option to locate the originating extension providing this file:
Code: [Select]
$ tce-ab
tce-ab - Tiny Core Extension: Application Browser

S)earch P)rovides K)eywords or Q)uit: P
Enter search term, e.g. iwconfig: xsetup.sh
awk: /etc/sysconfig/tcedir/provides.db: No such file or directory
S)earch P)rovides K)eywords or Q)uit:

Seen on both CL-16.0 and CP64-16.0

Code: [Select]
$ uname -a
Linux testapps 6.12.11-tinycore #1 SMP Sun Jan 26 18:37:07 UTC 2025 i686 GNU/Linux

Code: [Select]
$ version
16.0

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12131
Hi rhermsen
...
Code: [Select]
$ grep -rn chown /usr/local/bin/*.sh
 ----- Snip -----
/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession
...
It is provided by Xlibs.

Since the file is linked into the file system, this also displays that information:
Code: [Select]
tc@E310:~$ ls -l /usr/local/bin/xsetup.sh
lrwxrwxrwx 1 root root 41 May 22 04:12 /usr/local/bin/xsetup.sh -> /tmp/tcloop/Xlibs/usr/local/bin/xsetup.sh

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12131
Hi rhermsen
In addition ...
TC16 aarch64:
Code: [Select]
pkg/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession
pkg/usr/local/tce.installed/Xlibs:7:sudo chown -R root.staff /usr/local/tce.installed 2>/dev/null

TC16 armhf:
Code: [Select]
pkg/usr/local/tce.installed/Xlibs:7:chown -R "$USER".staff /home/"$USER" 2>/dev/null
pkg/usr/local/tce.installed/Xlibs:9:sudo chown -R root.staff /usr/local/tce.installed 2>/dev/null
I also noticed xsetup.sh for armhf is a lot different:
Code: [Select]
rich@tcbox:~$ cat pkg/usr/bin/xsetup.sh
#!/bin/sh

#######################################
# Modified by bmarkus for piCore
#
# October 2, 2016
#######################################

busybox cp -f /etc/skel/.xsession $HOME/.xsession

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15177
Xlibs adjusted in the 16.x repos

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 128
@Juanito

Thanks for resolving the Xlibs script.

I still see the message with a reboot (but maybe less often?)

Did some more searching and found the following two:

Code: [Select]
$ grep -Irn chown /usr/local/bin/* | grep "\.staff"
/usr/local/bin/flwm_topside_ondemand:19:chown ${USER}.staff -R /home/${USER}/.wmx
/usr/local/bin/wbar_mv_icon:16:   sudo chown root.staff ${FROMFILE}


flwm_topside_ondemand > flwm_topside.tcz
/usr/local/bin/wbar_mv_icon > wbar.tcz




Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15177
flwm, flwm_topside and wbar adjusted in CorePure64-16.x repo - I'll do the other repos as I get round to it.