SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently started looking into creating a couple of SlackBuild scripts for my own use and (should they work!) submission to slackbuilds.com. Seems not only fun but right instructive-like.
Now, my understanding of the section on "Setting Up Your Build Environment" part of the tutorial re: how to do this on SlackWiki is that the build environment _must_ include the source code for the relevant release of Slack _in its entirety_ ... is that correct? I just want to (cough) make sure because, my machine being the multi-boot thing it is, I might need to shuffle to make more space for all this, and it might even involve evicting the distribution next door.
So I'm triple-checking, is all.
PS: I guess I should ask whether anyone can tell me how much space we're talking about ...
the build environment _must_ include the source code for the relevant release of Slack _in its entirety_ ... is that correct?
I don't think that it means the Slackware sources, but the package sources (of the packages you have built/are building). I have a complete 12.1 mirror on a spare partition (the sources sometimes come in handy), but I've never had to use them for building a package. My system entails a directory named "packages", then under it individual directories for each package. The individual directories contain the final package and a directory named "build" that contains all the build scripts & the source tar.gz for the program.
Unless you're doing something pretty complex, you shouldn't need the sources (and if you do need the source for an app, you could probably just download the source for that specific app). This is only really required if the app is a dependency and the app you're compiling needs the header files from the dependency, which may not be present on your system. For most tasks, however, you will not need the sources. I have written and used many SlackBuilds and I've never had to use sources for another package. Even if an app has many dependencies, usually it doesn't require the compiled sources of the other app -- it'll usually just search for files on your system during the ./configure command and it'll be happy with that.
Bottom line: at this point, don't even worry about it. If you ever come across an app that errors out (or doesn't work) upon compilation, and you have reason to suspect that it may be failing because it needs the headers from a dependency, then by all means download the dependency's sources and compile them (and inform the new app about the location of the dependency's sources). However, you will probably never need this -- or, if you do, it'll be exceedingly rare.