LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2003, 10:26 PM   #16
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46

I don't see what Heaven7 has to do with compression of data.
It's easy for a program to allocate almost any amount of RAM
that isn't already allocated by the kernel (or other programs). I
can write a few line program that trys to fill all available memory.

Compression of data is using an algorithm (i.e. lzw, LZ77,
Huffman,etc.) to find common patterns, and replace those
patterns with a description of the pattern that takes fewer bits
than the original pattern. It's the same sort of thing that JPEG
and other image file formats use to make the image smaller,
EXCEPT that DCT (one of the most common JPEG compression
algorithms) and most other image compression algorithms are
lossy meaning that once a file is compressed, you can never
recover the original data (from that compressed copy). LZW, etc
are lossless, which means that though all data can be recovered,
it doesn't compress as well.

From the man page of gzip (obviously uses a lossless algorithm):
Quote:
Gzip uses the Lempel-Ziv algorithm used in zip and PKZIP.
The amount of compression obtained depends on the size of
the input and the distribution of common substrings. Typ-
ically, text such as source code or English is reduced by
60-70%. Compression is generally much better than that
achieved by LZW (as used in compress), Huffman coding (as
used in pack), or adaptive Huffman coding (compact).
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-03-2003, 02:45 PM   #17
otbibb
Member
 
Registered: Oct 2002
Distribution: Slackware 8.1
Posts: 33

Rep: Reputation: 15
Quote:
Originally posted by Allen614
Is there a significant size difference between the tarball and the package?
Here are the results of my recent build of openbox-2.3.0

1. 496k openbox-2.3.0.tar.gz (source code, zipped)
2. 4.2M /tmp/openbox-2.3.0/ (source directory, pre-compilation)
3. 28M /tmp/openbox-2.3.0/ (source directory, compiled)
4. 8.9M openbox binaries, compiled with no options
5. 3.5M openbox-2.3.0.tar.gz (slackware package created from #4)

So, you can see that there are serious disk-space gains from compiling software and putting it into a Slackware package vs. keeping the compiled source code around. You would save the most space, obviously, if you just kept the source code tarball, but then you'd have to recompile whenever you wanted to re-install the package. The advantages of making a slackware package, other than space, is that you can easily remove it with pkgtool, and you can easily reinstall it without re-compiling.

As someone else said, your package will generally only work on your system, unless you take pains to keep it generic.

BB
 
Old 04-27-2003, 05:03 AM   #18
johnvoisey
Member
 
Registered: Jun 2002
Location: UK
Distribution: Used many over the years, main ones now "CentOS", Slackware and Arch
Posts: 31

Rep: Reputation: 15
Question So how do you get a "package description" then ?

This is going to make me look a prize idiot, but I've read man pages till I'm blue in the face and got nowhere, here goes.

When you make a package with "makepkg", EXACTLY how do you tell it what to put in the "Package Description".
 
Old 04-27-2003, 09:49 AM   #19
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
The packages I make can be used on the same computer if I have to reinstall everything, right?

That would be really useful for easy backup and restoration.
 
Old 05-12-2003, 03:15 PM   #20
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
I don't know what went wrong, but I followed the steps given.
In my case I am trying to create a 'samba2.2.8a.tgz' package.
My creation directory is '/D/creation'

1. unpacked samba-2.2.8a.tar.gz
2. cd D/creation/samba-2.2.8a/source
3. ./configure --with-smbmount
4. make
5. make install DESTDIR=/D/creation/package
(I made a directory called 'package' inside 'D/creation')

What happens is instead of installing everything into
'D/creation/package' ,it just installs the program as normal.

So as you can see, this did not work for me.
I don't know if this makes any difference, but I do have the
"checkinstall" package installed. I don't think that should
make any difference though.

The reason that I tried this posted method, is because I could not get a full install with the package that I made with checkinstall. It would not install all of the files into 'usr/local/samba/' . One very important directory 'lib' is not even installed by the '.tgz' that I made with checkinstall.

Well, this sucks. The whole reason that I wanted packages in the first place was so that I can have a clean machine, with removable software. Now I have samba-2.2.8a installed and I don't know if I can remove it. Right back to square one.

JC
 
Old 04-19-2013, 12:00 AM   #21
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 194

Rep: Reputation: 5
Quote:
Originally Posted by ratbert90 View Post
4) change directories to /tmp/package
cd /tmp/package

5) type makepkg -l y -c n ../gaim.tgz
I wonder why makepkg doesn't have an option to specify the path; it's strange you have to cdů
thanks for the explanation though
 
Old 04-19-2013, 01:13 AM   #22
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.0
Posts: 506
Blog Entries: 2

Rep: Reputation: 67
Quote:
Originally Posted by lostboy View Post
What happens is instead of installing everything into
'D/creation/package' ,it just installs the program as normal.
Not every Makefile honours the DESTDIR option. You need to examine each source individually to see if any special tricks are involved.

It is also best to try and make the package as a normal user before doing so as root. The Makefile might make system changes (eg change rc.M) that you weren't expecting and that would make removing the package very difficult afterwards.

My blogs describe making packages and creating scripts to make packages. They also contain links to SlackBuilds.org where there are more discussions about what to do if DESTDIR is not honoured.

In a lot of cases, src2pkg will do all the work of creating a package for you.

Last edited by psionl0; 04-19-2013 at 01:14 AM.
 
Old 04-19-2013, 01:22 AM   #23
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,637

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
I think this thread qualifies as an exhumed corpse...
 
5 members found this post helpful.
Old 04-19-2013, 01:29 AM   #24
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.0
Posts: 506
Blog Entries: 2

Rep: Reputation: 67
Quote:
Originally Posted by astrogeek View Post
I think this thread qualifies as an exhumed corpse...
I didn't see the dates on this thread. Maybe there should be something like [NECRO] next to the title of old threads (in the same vein as [SOLVED]).
 
Old 04-19-2013, 05:01 AM   #25
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,861
Blog Entries: 51

Rep: Reputation: Disabled
Nine year old thread? It's a record. The oldest I've seen previously was eight years old.
 
Old 04-19-2013, 05:29 AM   #26
boeringer
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Rep: Reputation: 1
Hey, cut the guy some slack. Archaeology is my name for it.

Last edited by boeringer; 04-19-2013 at 05:30 AM.
 
Old 04-19-2013, 05:33 AM   #27
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,371

Rep: Reputation: 163Reputation: 163
Reminds me of a Randy Travis song.

"I'm diggin' up bones - I'm diggin' up bones......Exhuming things that are better left alone..."
 
Old 04-20-2013, 04:45 AM   #28
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
The concept of necroposting doesn't apply to Slackware. It works more or less like in 1992.
 
3 members found this post helpful.
Old 04-20-2013, 06:06 PM   #29
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 173

Rep: Reputation: Disabled
I wonder if the OP is still present at the forums. It might be interesting to hear about his experience with Linux since then.
 
Old 04-20-2013, 07:19 PM   #30
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,544

Rep: Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385
Quote:
Originally Posted by Captain Pinkeye View Post
I wonder if the OP is still present at the forums. It might be interesting to hear about his experience with Linux since then.
Especially since the OP is 100% valid today.

The fact that there are now more ways to automate it notwithstanding.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to make my own packages Wynand1 VectorLinux 2 03-10-2004 05:42 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM
how to make RPM packages off a tarball? chupacabra Linux - General 2 10-15-2002 11:06 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration