SliTaz SliTaz Forum

You are not logged in.

#1 2015-12-17 14:41:17

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Como converter pacotes.pet --> pacotes.tazpkg ?

quando eu tento converter da um erro no "petspecs".

Slitaz 5 rc4

Offline

#2 2015-12-17 15:20:28

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Hi xaropebr,

Please, post the exact error here. And, if you can please post link to download the original .pet package you're working with.

Some docs you can find here:

file:///usr/share/doc/tazpkg/tazpkg.pt.html#convert

[c]su
tazpkg convert your_package_name.pet[/c]

Offline

#3 2015-12-17 23:24:12

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

in terminal

-----------------------------------------------------------------------------------------------------

tux@slitaz:~/Downloads$ su

root@slitaz:/home/tux/Downloads# tazpkg convert dillo_lucid52-0.pet

/usr/libexec/tazpkg/convert: .: line 633: can't open 'dillo_lucid*/*.specs'

-----------------------------------------------------------------------------------------------------

link of the pakage:

http://distro.ibiblio.org/puppylinux/pet_packages-5/dillo_lucid52-0.pet

Offline

#4 2015-12-17 23:58:15

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Oh, it's my bug, sorry. I'll fix it later today.

You can fix it right now, not wait me: open /usr/libexec/tazpkg/convert in your text editor as root user, scroll down to line 633 and remove quotes in this line.

Before: [c]. "$package"*/*.specs[/c]

After: [c]. $package*/*.specs[/c]

________

PS. It's not the only problem here with quotes and '*'.

You can download tazpkg-891 that solves these problems from here (link "download" at the top of page):

http://cook.slitaz.org/cooker.cgi?pkg=tazpkg

Offline

#5 2015-12-18 12:28:23

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Ty i go test here smile

Offline

#6 2015-12-18 18:30:02

llev
Member
Registered: 2011-12-09
Posts: 568

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

@Aleksej: I don't see why [c]"$package"*/*.specs[/c] and similar would be a problem. I'd think the problem is when * is between "", because the shell won't expand it. But when it is outside it should be fine. Isn't it?

If so, only the first two changes in your patch are necessary.

I didn't check all the code: can't [c]$file[/c] contain spaces?

My small tests (with ash):

[c]/tmp> touch foobar
/tmp> test=foo
/tmp> ls $test*
foobar
/tmp> ls "$test"*
foobar
/tmp> ls "$test*"
ls: cannot access foo*: No such file or directory[/c]

Offline

#7 2015-12-19 04:59:37

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

same error sad i update this pkgs

cpio-2.11.tazpkg

cookutils-788.tazpkg

tazpkg-891.tazpkg

i tried in sakura terminal:

root@slitaz:/run/media/tux/Arquivos/SliTaz_5_rc4# tazpkg -c dillo_lucid52-0.pet

/usr/libexec/tazpkg/convert: .: line 633: can't open 'dillo_lucid*/*.specs'

root@slitaz:/run/media/tux/Arquivos/SliTaz_5_rc4#

maybe the error is Tazpkg is not able to open the pet file?

I can not decompress pet files on slitaz by default

so i created the package "PeaZip" to slitaz for extract any compression formats...

[attachment=40828,2181]

Offline

#8 2015-12-19 08:48:45

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Hi xaropebr,

Finally I have few hours to debug TazPkg. Please wait more, it should work today as expected.

Offline

#9 2015-12-19 12:13:10

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

@llev

Lucas, I just leave that commit. Sorry, I have no time to extra experiments. Change it if you want.

@xaropebr

Please update your TazPkg to 892 version. Download link you'll find in the old place:

http://cook.slitaz.org/cooker.cgi?pkg=tazpkg

It works for me with "dillo_lucid52-0.pet" and with several different ".pet" packages downloaded from http://distro.ibiblio.org/puppylinux/

Offline

#10 2015-12-19 17:30:19

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Thank you very much smile I need it to test pet packages before i do make a port for slitaz...

I will test today, Now I to playing Dota 2 on the pc of my brother with Win 7 :-/

Offline

#11 2015-12-19 17:36:21

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

OK smile

I have a request for you. Can you later test "tazpkg convert" on the different ".pet" packages from different years and different Puppy versions? I need it to be sure that tazpkg working well.

By the way, happy gaming! wink

Offline

#12 2015-12-20 01:47:14

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Tested:

-----------------------------------------------------------------------------------------------

pet-packages-lucid/ Ayttm-0.6.2-Lucid.pet  -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-2/ axel-1.0a.pet -> not worked

root@slitaz:/home/tux/Downloads# tazpkg convert axel-1.0a.pet

/usr/libexec/tazpkg/convert: .: line 648: can't open 'axel*/*.specs'

-----------------------------------------------------------------------------------------------

pet_packages-3/ alicq-0.8.8.pet -> not worked

root@slitaz:/home/tux/Downloads# tazpkg convert alicq-0.8.8.pet

/usr/libexec/tazpkg/convert: .: line 648: can't open 'alicq*/*.specs'

-----------------------------------------------------------------------------------------------

pet_packages-4/ SDL_image-1.2.6-i386.pet -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-5/ ayttm-20100427-q1.pet -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-common/ acpid-1.0.10-w5.pet -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-wary5/ SDL_image-1.2.6-w5.pet -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-tahr/ axel-2.4.pet -> it worked

-----------------------------------------------------------------------------------------------

pet_packages-slacko/ SDL_mixer_DEV-1.2.11-i486.pet -> it worked

-----------------------------------------------------------------------------------------------

2 did not work so far, for a while i only tested these "Pet Packages" smile

Offline

#13 2015-12-20 01:51:24

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

off topic '-'

these 2 last packages it's bug.

[attachment=40849,2182] [attachment=40849,2183]

i tried repack these packages but this error appears.

so happens with them.

Offline

#14 2015-12-20 02:02:51

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Many thanks for testing!

I'll see why it not works. Probably tomorrow...

---

Repackaging error - this means that you have modified one of the installed files: every file in the package have it's own checksum, and tazpkg compares this sum with the actual sum before repack.

Repackaging is the method to get package back. In your case, IMHO, simpler just to download package from pkgs.slitaz.org or cook.slitaz.org.

Offline

#15 2015-12-20 23:50:25

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

I just committed the patch to the TazPkg.

pet_packages-2/ axel-1.0a.pet -> not worked

pet_packages-3/ alicq-0.8.8.pet -> not worked

Now tazpkg-896 supported that sort of .pet packages too.

Offline

#16 2015-12-22 01:51:04

xaropebr
Member
Registered: 2015-12-13
Posts: 32

Re: Como converter pacotes.pet --> pacotes.tazpkg ?

Thank you very much smile again.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 8 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]