Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 12 Nov 2019, 14:33
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
TazPuppy Beta 36
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 24 of 66 [986 Posts]   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, ..., 64, 65, 66 Next
Author Message
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Tue 29 May 2018, 10:06    Post subject:  

mistfire wrote:
@s243a shutdown scripts work even sh is symlinked to bash.

right now Im trying to a tazbuilder which fetch iso, download additional package from slitaz repo online and process it as tazpup. Only a puppy iso is needed. This is only a working theory and I cant test if it works due to extremely low bandwidth


I tried running snapmerge directly

Code:

set -xv
snapmergepuppy

I get the error
Code:

readlink: invalid option -- 'm'

Command line: readlink -n -m /initrd/pup_r01

Busybox v1.27.2


I think we need to install the full version of readlink...but I don't see this package in the package manager.

P.S. I'm still wondering if there are any shutdown logs.

Edit: I found out that readlink is part of coreutils, which is available in the package manager. We could trim it if we don't want everytying, but I'm cool with everything.

Edit 2 Ugh, readlink isn't in the list of packages for coreutils, in stalitz.

Edit 3 I see that there are multiple coreutil packages. Maybe readlink is in one of these other coreutil packages.

Edit 3 Yes readlink was in one of these coreutil packages but it creates a symbolic link to a coreutils binary. I'm now getting the error when I run snapmergepuppy
Code:

tail: cannon open '+2' for reading: No such file or directory
ash: 12341234: out of range
...

I get multiple out of range errors, I didn't type the exact number above following ash.
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Tue 29 May 2018, 13:06    Post subject:  

@s243a

Quote:
tail: cannon open '+2' for reading: No such file or directory

This is when sh > bash, right ?
Probably changing to this in snapmergepuppy works (untested): EDIT: Tested now and works.
Code:
busybox tail +2


EDIT: When I changed the shebang to #!/bin/bash in snapmergepuppy, the out of range messages are gone.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Tue 29 May 2018, 14:27    Post subject:  

mistfire wrote:
I tried to change the interpreter of all scripts of tazpkg (located at /usr/libexec/tazpkg, tazpkg script was in /usr/bin) . It still works even on tazpanel. I wonder if can install packages including dependencies. I cant test it because I have a very limited bandwidth to do it.


Unfortunately not. First symlinked sh to bash, changed shebang of all scripts in /usr/libexec/tazpkg and /usr/bin/tazpkg to #!/bin/ash, the package manager indeed runs, but doesn't find the dependencies, pity !

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Tue 29 May 2018, 14:52    Post subject:  

fredx181 wrote:
mistfire wrote:
I tried to change the interpreter of all scripts of tazpkg (located at /usr/libexec/tazpkg, tazpkg script was in /usr/bin) . It still works even on tazpanel. I wonder if can install packages including dependencies. I cant test it because I have a very limited bandwidth to do it.


Unfortunately not. First symlinked sh to bash, changed shebang of all scripts in /usr/libexec/tazpkg and /usr/bin/tazpkg to #!/bin/ash, the package manager indeed runs, but doesn't find the dependencies, pity !

Fred


Did you try traceing the output with
Code:

set -xv

Prior to running tazpkg

Or if you are brave enougj maybe strace, which is in the package manager.
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Tue 29 May 2018, 16:27    Post subject:  

s243a wrote:
Did you try traceing the output with
Code:

set -xv

Prior to running tazpkg

Or if you are brave enougj maybe strace, which is in the package manager.


OK, will try tomorrow, but I'm not sure if it's tazpkg to trace, the Exec=... command in the Package Manager's .desktop launcher is:
Code:
sh -c 'tazweb root:$$@127.0.0.1:82/user/pkgs.cgi'

It's not clear to me how things work, so many scripts.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 1248
Location: PH

PostPosted: Tue 29 May 2018, 21:04    Post subject:  

@fredx181

Just start tracing on /usr/bin/tazpkg and /usr/libexec/tazpkg/


pkgs.cgi is just a frontend script of tazpkg
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Wed 30 May 2018, 02:29    Post subject:  

fredx181 wrote:
@s243a

Quote:
tail: cannon open '+2' for reading: No such file or directory

This is when sh > bash, right ?
Probably changing to this in snapmergepuppy works (untested): EDIT: Tested now and works.
Code:
busybox tail +2


EDIT: When I changed the shebang to #!/bin/bash in snapmergepuppy, the out of range messages are gone.

Fred


That works or if one installs coreutils then one must use:
Code:

tail -n +2


instead. Adding the -n is more portable because it works with both busybox and coreutils. The line in question is from (line 137) of snapmergepuppy:

Code:

#110224 BK revert, leave save of /dev in for now, just take out some subdirs... 110503 added dev/snd
find . -mount -type d | tail +2 | sed -e 's/\.\///' | grep -v -E '^mnt|^media|^initrd|^proc|^sys|^tmp|^root/tmp|^\.wh\.|/\.wh\.|^dev/\.|^dev/fd|^dev/pts|^dev/shm|^dev/snd|^var/tmp' |


so I recomend including the -n in this line

Edit: My snapmerge is now working and saved successfully to the save folder. To Recap:
1. sh is linked to bash
2. the shebang of snapmergepuppy is set to bash
3. I'm using the coreutils version of readlink.
4. I modified the tail statement shown above to be "tail -n +2" since this syntax works with both coreutils and busybox.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Wed 30 May 2018, 03:26    Post subject:  

So I got around to boot, from a flash drive. I've been booting from a CD/DVD up until now, but I was getting tired of having to pull the USB out before startup and put it back in once I got to the menu.

I think I originally created this USB stick for Xenial using Unetbootin, but I don't really use Xenial. The usb is formatted in a linux file system format (maybe ext4). I modified the syslinux.cfg file to add TazPup at the bottom

Code:

default puppy
display boot.msg
prompt 1
timeout 500

F1 boot.msg
F2 help.msg
F3 help2.msg

label Xenial
kernel vmlinuz
append initrd=initrd.gz pmedia=usbflash

label TazPup
kernel /TazBoot/vmlinuz
append initrd=/TazBoot/initrd.xz



To get to the menu during boot I pressed F2 when I saw the Xenial splash screen come up. This took me to a syslinux prompt. I typed menu and pressed enter to get to the menu and then I selected TazPup. I'm not even sure why it's defaulting to Xenial because I don't have Xenial set as the default.

Anway, I copied the kernal and initrd.xz to the folder TazBoot, from the CD/DVD. The other files are in the root of the flash drive partition, they were put there when I created the save file.
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 5370
Location: Ontario

PostPosted: Wed 30 May 2018, 13:57    Post subject:  

I've been working on Bulldog Finder 3.8 which finds files from
start menu or a right click utility.

After installation I have to re login as root to use the right click utility,
but it seems to work properly as root user.


bulldog-finder-3.8.tazpkg
Size: 16k

https://drive.google.com/open?id=1RlHQMeMQ2Y3RxZrTFVs--7nMuZNw0Xhj
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Wed 30 May 2018, 14:45    Post subject:  

s243a wrote:
Did you try traceing the output with
Code:

set -xv

Prior to running tazpkg

Or if you are brave enougj maybe strace, which is in the package manager.


OK, did some digging, used tazpkg from commandline and found (in case sh > bash) tazpkg get stuck at executing /usr/libexec/tazpkg/install
Added "set -xv" on top of that, see attached set-xv_install
Last line (where it stopped) is:
Code:
busybox cpio --quiet -i receipt

I think that corresponds with these lines in the install script, line 389:
Code:
tmp_dir=$(mktemp -d); cd "$tmp_dir"
cpio --quiet -i receipt >/dev/null 2>&1
. receipt; echo $PACKAGE

With a properly working tazpkg (sh > busybox-pup) there is a receipt file in the "$tmp_dir" (I checked that), so it seems that the script cannot continue because of the missing receipt (and maybe more, don't know).

That's all I can say and I'm afraid this is too complicated to solve, unless a Slitaz expert comes forward ? Confused

Attached also output of strace tazpkg -gi vlc

Fred
set-xv_install.gz
Description  Debug output of /usr/libexec/tazpkg/install, executed from tazpkg (remove fake .gz)
gz

 Download 
Filename  set-xv_install.gz 
Filesize  67.16 KB 
Downloaded  51 Time(s) 
strace-tazpkg.gz
Description  Output of strace tazpkg -gi vlc (remove fake.gz)
gz

 Download 
Filename  strace-tazpkg.gz 
Filesize  34.52 KB 
Downloaded  58 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Wed 30 May 2018, 15:11    Post subject:  

fredx181 wrote:
s243a wrote:
Did you try traceing the output with
Code:

set -xv

Prior to running tazpkg

Or if you are brave enougj maybe strace, which is in the package manager.


OK, did some digging, used tazpkg from commandline and found (in case sh > bash) tazpkg get stuck at executing /usr/libexec/tazpkg/install
Added "set -xv" on top of that, see attached set-xv_install
Last line (where it stopped) is:
Code:
busybox cpio --quiet -i receipt

I think that corresponds with these lines in the install script, line 389:
Code:
tmp_dir=$(mktemp -d); cd "$tmp_dir"
cpio --quiet -i receipt >/dev/null 2>&1
. receipt; echo $PACKAGE

With a properly working tazpkg (sh > busybox-pup) there is a receipt file in the "$tmp_dir" (I checked that), so it seems that the script cannot continue because of the missing receipt (and maybe more, don't know).

That's all I can say and I'm afraid this is too complicated to solve, unless a Slitaz expert comes forward ? Confused

Attached also output of strace tazpkg -gi vlc

Fred


Maybe we can install a more complete version of cpio than the busybox version....although that wouldn't explain why it worked when sh wasn't linked to bash.

Maybe, we need to look back further in the trace to when the receipt file was created.
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Wed 30 May 2018, 17:01    Post subject:  

@mistfire

It may be a simple fix to solve the problem with tazpkg (in case sh > bash), who knows?, but to find it will be close to impossible, in think, because slitaz is generally so much based on busybox.

Isn't it better to keep sh > busybox-pup and add only puppy apps that work with this setup ?
So to just accept that limitation. Tazpup will be stiil very valuable then IMHO.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Wed 30 May 2018, 18:32    Post subject:  

fredx181 wrote:
@mistfire

It may be a simple fix to solve the problem with tazpkg (in case sh > bash), who knows?, but to find it will be close to impossible, in think, because slitaz is generally so much based on busybox.

Isn't it better to keep sh > busybox-pup and add only puppy apps that work with this setup ?
So to just accept that limitation. Tazpup will be stiil very valuable then IMHO.

Fred


If that is what mistfire chooses, I would like to do a tweek, maybe handled by a bunch of scripts that modify TazPup to make it more puppyfied
Back to top
View user's profile Send private message Visit poster's website 
mistfire

Joined: 04 Nov 2008
Posts: 1248
Location: PH

PostPosted: Wed 30 May 2018, 20:58    Post subject:  

@s243a and @fredx181 I found a tazpkg on from archpwn. It is a single script and was written in bash. I wonder if the tazpkg from archpawn works the same as the original tazpkg from slitaz.

https://github.com/nopper/archpwn/blob/master/scripts/tazpkg

You may test it if you want.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2144

PostPosted: Wed 30 May 2018, 21:05    Post subject:  

mistfire wrote:
@s243a and @fredx181 I found a tazpkg on from archpwn. It is a single script and was written in bash. I wonder if the tazpkg from archpawn works the same as the original tazpkg from slitaz.

https://github.com/nopper/archpwn/blob/master/scripts/tazpkg


It might be a good option for people using bash as the system shell. Maybe in the build script we should have an option to specify the system shell and if bash is specified then this version might get substituted for the other version of TazPkg.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 24 of 66 [986 Posts]   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, ..., 64, 65, 66 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0943s ][ Queries: 13 (0.0142s) ][ GZIP on ]