LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2009, 06:25 PM   #16
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553

Quote:
Originally Posted by GazL
You're quite right about adding support for, and adopting the use of being completely different things, but if you're not going to do the latter, why do the former?
Flexibility and inter-operability are the first two things that spring to mind. There are probably many more reasons.
Quote:
Originally Posted by janhe
Can you do
Code:
installpkg foo.bar-*.rpm
No, but you can do
Code:
rpm -i foo.bar-*.rpm
and it will work.
 
Old 04-14-2009, 06:42 PM   #17
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
In this context, the "format" of the package will be the internal organization of the files, dirs, and how the slackware package manage handles it. The compression algorithm used is irrelevant and should be completely transparent to the user. I fail to see any reason too complain, or even to care at all about this.

rpm's used to be compressed with bzip2, now they use lzma. The end user do "rpm -whatever packagename", I doubt most of them even noticed the change.

Last edited by i92guboj; 04-14-2009 at 06:44 PM.
 
Old 04-14-2009, 07:59 PM   #18
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by i92guboj View Post
The compression algorithm used is irrelevant and should be completely transparent to the user. I fail to see any reason too complain, or even to care at all about this.
Eloquently put!
 
Old 04-15-2009, 03:47 AM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by i92guboj View Post
The compression algorithm used is irrelevant and should be completely transparent to the user. I fail to see any reason too complain, or even to care at all about this.
Exactly! If it was transparent to the user I'd agree. But the possible use of 4 different file extension suffixes on package files is what worries me from a userbility standpoint. If the compression was hidden from the user and all the packages were named '*.package' I wouldn't have a problem with the idea at all.
 
Old 04-15-2009, 04:10 PM   #20
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by GazL View Post
Exactly! If it was transparent to the user I'd agree. But the possible use of 4 different file extension suffixes on package files is what worries me from a userbility standpoint. If the compression was hidden from the user and all the packages were named '*.package' I wouldn't have a problem with the idea at all.
I agree with GazL.

However I believe Slackware 13.0 (or whatever it is called) will ship with packages having only one type of file extension (otherwise you would need more than one DVD). So I assume that only one file extension will make it at the end as "official" package file extension and it will be the one shipped with the next version.

As a consequence, I envision that sites providing additional packages or Slackbuilds (slacky.eu, slackbuilds.org...) will switch to the next "official" file extension to be in line with the KISS principle (.i.e. provide extra packages using the same file extension as in the shipped DVD even though the package tools allow for other extensions). This in turn will reinforce the status of that file extension as "official".

Just my 2 cents
 
Old 04-15-2009, 05:32 PM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I think you're right there gegechris. It'll sort itself out in time, though we'll probably have a short period where packages will be showing up with the old .tgz and the new .twhatever for a while until all the 3rd party package maintainers react to the change. Anyway, its not something that can't be lived with, so not a big deal.
 
Old 04-16-2009, 01:13 PM   #22
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I'm glad to see the official pkgtools add support for bzip2/lzma compression. src2pkg has been supporting tbz and tlz package formats for over a year now, and I already had my mind set on adding support for the txz format as well. I've been using my own modified version of pkgtools which included tbz/tz support -although I usually just use tgz anyway. But, using lzma can mean good space saving and lzma is nearly as fast as gzip decompressing and much faster than bzip2.
 
Old 04-16-2009, 02:22 PM   #23
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by gnashley View Post
But, using lzma can mean good space saving and lzma is nearly as fast as gzip decompressing and much faster than bzip2.
What about RAM usage? It should depend on some of the parameters used compression but AFAIK LZMA will require quite a bit, compared to gzip or bzip. On the net I found some benchmarks:



Code:
RAM usage on decompression
	gzip		bzip2		lzmash		lzmash -e
1	<1 MB		1 MB		 1 MB		 -
2	<1 MB		2 MB		 2 MB		 -
3	<1 MB		2 MB		 1 MB		 1 MB
4	<1 MB		2 MB		 2 MB		 2 MB
5	<1 MB		3 MB		 3 MB		 3 MB
6	<1 MB		3 MB		 5 MB		 5 MB
7	<1 MB		3 MB		 9 MB		 9 MB
8	<1 MB		4 MB		17 MB		17 MB
9	<1 MB		4 MB		33 MB		33 MB
Quote:
The memory usage of lzma stays competitive with bzip2 when files have been compressed with "lzmash -6" or with a smaller option. The files compressed with the default "lzmash -7" can still be decompressed, even on machines with only 16 MB of RAM, but sometimes you don't have even that much memory available. If you compress with "lzmash -8" or "lzmash -9", you should think if the users need to be able to decompress your files also on "ancient" computers.
So, if Slack uses LZMA and still wants to be installable on a 16 MB system, level-6 is the best one can hope (given the large 2.6 kernels). It should still save considerable space, but if such a transition is to be made, I think it makes more sense to forget about archaic computers altogether and require larger RAM, modern CPUs and compile the packages with >=i586 optimizations.
 
Old 04-18-2009, 02:57 PM   #24
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
If you wanted to make it 'transparent' to the user, why not be ultimatly retarded and have <pkgname>-<version>-<arch>-<build>.t??.slkpkg

then EVERYBODY knows there is no confusion that it's a slackware package and for those that care, they know what compression it is without doing something like "pkgtool --type *.slkpkg" or Bob forbid "testpkg --type *.slkpkg"


The better questions you should be asking your selves are:
what kind of system can handle better compression algorithms?
Can an i486 system with less than 128 mb of ram decompress the highest compression ratio?
who is the target audience of slackware 13?
Is this feature for distributed copies of slackware or for ancillary package maintainers?


I would be more concerned about confusing matters by having the purchasable copy as a set of 6-8 CD's all with .tgz while download versions are all .xlz.


I guess slackware users shouldn't really concern them self either way unless they have that i486 system and are going to try to run KDE4 off of it.
 
Old 04-18-2009, 03:52 PM   #25
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by lumak View Post
If you wanted to make it 'transparent' to the user, why not be ultimatly retarded and have <pkgname>-<version>-<arch>-<build>.t??.slkpkg
Because that wouldn't be transparent.

Quote:
Transparent: –adjective
1. having the property of transmitting rays of light through its substance so that bodies situated beyond or behind can be distinctly seen.
2. admitting the passage of light through interstices.
3. so sheer as to permit light to pass through; diaphanous.
4. easily seen through, recognized, or detected: transparent excuses.
5. manifest; obvious: a story with a transparent plot.
6. open; frank; candid: the man's transparent earnestness.
7. Computers. (of a process or software) operating in such a way as to not be perceived by users.
8. Obsolete. shining through, as light.
I was using definition 7 which is the usual meaning of the word when used in relation to computing or software. Your example is more in line with definition 4, which is the exact opposite. (Isn't english a wonderfully stupid language.)


I don't think the user should have to be aware of, and especially not have to care about the type of compression being used in the package. Your example above of including the compression type in the filename is exactly what I was suggesting should be avoided.

All the user cares about is whether the file is a slackware package or not. A single suffix (however it's named: .slackpack, .package .slpkg or whatever) is all that is required and personally I think would be preferable to several different suffixes identifying the compression type used.

.deb, and .rpm's don't include it, and I am suggesting that if the package format is to change, then now might be a good time for slackware to consider doing something similar.
 
Old 04-19-2009, 04:55 AM   #26
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
There are precedents for using tgz, tbz and tlz to denominate binary packages. I see that the new pkgtools are also supporting tar.bz2 and tar.lzma, etc. I somehow doubt that PatV will be going to a proprietary package suffix. I prefer to see binary packages with tgz. tbz, tlz or txz, with the longer forms (tar.gz tar.bz2, etc) used only for sources.
About the memory requirements for lzma, I think those requirements have changed since that web-page was created. IIRC, the kernel patch which adds lzma and bzip2 support to the kernel mentions about lzma only needing a max of 8MB RAM for decompression. The new xz format may do better than the old lzma. Using the old lzma format has another disadvantage in that the archives can't be reliably identified using 'file'. The xz format now has 'magic' which can be detected by 'file'.
 
Old 04-19-2009, 11:36 AM   #27
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
If you really break it down, a slackware package is a tar file first. So really gzip is the first infidel. Now that I think of it, we could be ultimately retarded and call a .slkpkg nothing more than a tar file with a properly formatted header block which basically just had the information from the /install folder in the package. Then we would have .slkpkg.gz (or others). And in true slackware fassion we would be back at .t?? only now it would be .s??

wait... isn't obfuscating things the problem with the other operating systems?


Anyway, my previously mentioned suggestion is 'transparent' enough. People that shouldn't be using slackware would see a .slkpkg and instantly be in ignorant bliss while all other users would know what it is with the other tag. Maintainers already have build tags. So if the .t??. didn't get added as a standard addition then it would get swallowed by the <build> tag which would ultimately become something like *-1_tgz_SBo.slkpkg. You would not be able to stop and it probably would get added into the scripts at slackbuilds. UNLESS a new commands were added to tell the type and or just extract the package. Like 'testpkg' and 'extractpkg'

<pkgname>-<version>-<arch>-?_t??_SBo.slkpkg
 
Old 04-20-2009, 05:59 AM   #28
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
The following is a snippet from another thread posted in this forum today. I post it here as it shows exactly why I advocate that slackware packages should have their own unique suffix.


Quote:
Originally Posted by Dinithion View Post
Where did you get the package? .tgz is usually installed thisway: installpkg <package> as root, i.e:

installpkg ip_wccp-1.7.tgz
Quote:
Originally Posted by knudfl View Post
@ Dinithion : ip_wccp-1.7.tgz is the source code with a wrong suffix.

Technically, it's not the 'wrong suffix' .tgz is a 8.3 dos filename compatible contraction of .tar.gz that has been used for years and is being used quite correctly here. You're most likely to see it used on source tarballs who's primary target is a windows system.

A slackware package file is just a .tar.gz archive file who's contents just happen to be a slackware package, so using a .tgz suffix is also quite proper but it can lead to confusion, as shown above.


Anyway, I'm not going to labour the point any further. Pat and the team will make up their own minds on this one, and I suspect that gnashley is right and that they'll be unlikely to want to change to a proprietary suffix after all these years. But if they are intending to change the default compression scheme/suffix anyway, then this is the right time to bring these sorts of suggestions to their attention.
 
Old 04-20-2009, 08:12 AM   #29
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
That confusion caused by .tgz = .tar.gz and .tgz = Slackware package has cropped up a few times on these forums. If only people read and took notice of the full name of the thing in question, that confusion would be avoided.
 
Old 04-20-2009, 11:24 PM   #30
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Hmm... according to the changelog it seems like a lot of packages are getting rebuilt for support for the new package formats.

Quote:
Originally Posted by Changelog
isolinux/initrd.img: Rebuilt with newly compiled kernel modules.
Added support for .tbz, .tlz, and .txz packages.
kernels/*: Rebuilt.
usb-and-pxe-installers/: Rebuilt usbboot.img with newly compiled
kernel modules. Added support for .tbz, .tlz, and .txz packages.
Also I notice that alot of tags are being dropped from the end of the packages

Quote:
n/proftpd-1.3.2-i486-1.tgz: Upgraded to proftpd-1.3.2.
n/samba-3.2.10-i486-1.tgz: Upgraded to samba-3.2.10.

Last edited by C-Sniper; 04-20-2009 at 11:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a compiled program in tgz format into an rpm package. xode Linux - Software 1 01-04-2008 12:54 PM
LXer: Linux Standard Base plans cross-format package API LXer Syndicated Linux News 0 01-17-2007 10:54 PM
apt package repositories/format question Michael_S Debian 2 12-05-2006 02:40 PM
Native package format wombat53 Slackware 8 06-13-2005 07:10 PM
Possible NEW package format Kocil Slackware 21 09-11-2004 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration