Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-13-2014, 02:58 PM
|
#16
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
@ruario
I only used AUR after noticing build failures and I was not finished after 5 minutes of effort!
This was mainly to keep Sumguys interest in slackware persistent and I guess to present that for the most part getting something "foreign" to work with slackware does not at all have to be a massive time sink.
I would never go to the point of saying such a method of configuring a build should be the norm! I'm sure a few of those patches were useless and/or there was a more elegant solution to get everything up and running.
@sumguy
I wrote the build script by looking at
https://aur.archlinux.org/packages/pi/pinball/PKGBUILD
and the patches were found https://aur.archlinux.org/packages/p...pinball.tar.gz
|
|
|
06-13-2014, 03:17 PM
|
#17
|
Member
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465
Rep:
|
Quote:
Originally Posted by maciuszek
@ruario
I only used AUR after noticing build failures and I was not finished after 5 minutes of effort!
This was mainly to keep Sumguys interest in slackware persistent and I guess to present that for the most part getting something "foreign" to work with slackware does not at all have to be a massive time sink.
I would never go to the point of saying such a method of configuring a build should be the norm! I'm sure a few of those patches were useless and/or there was a more elegant solution to get everything up and running.
@sumguy
I wrote the build script by looking at
https://aur.archlinux.org/packages/pi/pinball/PKGBUILD
and the patches were found https://aur.archlinux.org/packages/p...pinball.tar.gz
|
I think you and I think a lot alike!
When I was using Debian, the repositories were so huge, I could find anything I needed. Coming to Slackware, it's not that I'll be wanting to install all kinds of foreign programs- but just to know that that option is available to me on the rare occasion it is needed- and how to do it.
What you have shown me by example (by creating that custom Slackbuild for me) was invaluable! To be able to see first-hand how it is done; to have your work as a template; and to have it as something to reverse engineeer and use as a model, is truly the epitome of my Slackware experience thus far. I may not truly get a handle on Slackware package management until this winter, when I'll have time to sit in front of the computer and fool with it- but just showing me that it can be done...andhow it is done, indeed will ensure that I stay interested. [I must admit, for a while there, before you made me that Slackbuild, I was kind of thinking that I might be getting in over my head with Slackware. ]
|
|
|
06-14-2014, 07:16 AM
|
#18
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
Quote:
Originally Posted by maciuszek
I would never go to the point of saying such a method of configuring a build should be the norm! I'm sure a few of those patches were useless and/or there was a more elegant solution to get everything up and running.
|
Please don't misquote me. I never said it should be " the norm". I said,
Quote:
Originally Posted by ruario
This use case is fine and indeed could save a lot of headache when packaging difficult applications.
|
The norm would just be to start with a basic SlackBuild template and work from there. However, if you are encountering difficulties, there is nothing wrong IMHO at looking at what other distros have done to help you along the way.
I have done this several times myself and I'm sure I'll do it again.
|
|
|
06-14-2014, 02:22 PM
|
#19
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,563
|
Just to be safe for all the new people in Slackware, if you see a tar.<anything> file, chances are it's a source package. Do NOT install it.
If you need a package for Slackware... go here: www.slackbuilds.org and find the package build script, run it, and install the package now located in /tmp. If one does not exist on SlackBuilds... ASK FIRST FOR ONE.
|
|
|
06-14-2014, 03:51 PM
|
#20
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by ReaperX7
Just to be safe for all the new people in Slackware, if you see a tar.<anything> file, chances are it's a source package. Do NOT install it.
|
But installing from source is one of the great pleasures of *nix! Infidel!
And yeah I am just joking, I know what you are *trying* to say here, you cant install from source using the same tools as a binary package, but one of the great things about Slack is how often that just works exactly as it should. Yeah, making a big project with way too many branches (KDE or even GNOME for example) can be painful and time consuming, it makes sense to avoid that, but so often we are talking about relatively small simple programs that dont bring in multiple gigabytes of new dependencies and just havent been packaged. Configure; make; make install and done, why make it more complicated than that?
|
|
|
06-14-2014, 04:11 PM
|
#21
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,157
Rep:
|
Quote:
Originally Posted by Arkerless
Configure; make; make install and done, why make it more complicated than that?
|
Because then, you won't get the benefits of Slackware's packages management system. A few examples:
- If the Makefile doesn't contain an uninstall target, of if you just deleted the source directory, how do you remove the application?
- How do you find from which source package comes a file that you installed with "make install"?
- How do you upgrade your application?
So, if you can't find a SlackBuild for this software, better write one yourself and use it to make a Slackware package IMO. You know that there are tools to help you make a Slackware packages from a source tarball, do you?
Last edited by Didier Spaier; 06-14-2014 at 04:24 PM.
|
|
|
06-14-2014, 04:19 PM
|
#22
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
Quote:
Originally Posted by Arkerless
Configure; make; make install and done, why make it more complicated than that?
|
My own (personal) viewpoint:
Quote:
Originally Posted by ruario
While you can compile and install source packages by hand it is not for everyone (uninstall can often be tricker).
|
Quote:
Originally Posted by ruario
As a general rule of thumb, take a native package first and only manually source compile if you have some specific requirements that make it necessary.
|
Don't get me wrong. I am not anti manual installation of software and sometimes that requirement might be as simple as, "I know this piece of software won't do anything nuts (based on my past experience) and I'm willing to accept possible clean up. So I'll just manually install, rather than messing around with making a package."
I tend to always have a few bits of software outside of the Slackware packaging system, for reasons like that.
|
|
|
06-14-2014, 04:23 PM
|
#23
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
Quote:
Originally Posted by Didier Spaier
- If the Makefile doesn't contain an uninstall target, of if you just deleted the source directory, how do you remove the application?
- How do you find from which source package comes a file that you installed with "make install"?
- How do you upgrade your application?
|
Even when I do manually install software, I always do some basic tracking at the very least.
|
|
1 members found this post helpful.
|
06-14-2014, 04:29 PM
|
#24
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,157
Rep:
|
Quote:
Originally Posted by ruario
Even when I do manually install software, I always do some basic tracking at the very least.
|
And you waited till today to let us know? Shame on you! (just kidding :-)
|
|
|
06-14-2014, 04:54 PM
|
#25
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
Well most Slackware users would be better off using slacktrack or src2pkg but this suits my own needs.
I also wrote my own very basic "package" creation script (it makes a tar with a self contained log).
Info from my old blog
Last edited by ruario; 06-14-2014 at 06:02 PM.
Reason: meant to say src2pkg
|
|
|
06-14-2014, 05:08 PM
|
#26
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
Quote:
Originally Posted by Didier Spaier
And you waited till today to let us know? Shame on you! (just kidding :-)
|
Actually, I just remembered I have mentioned this kind of tracking on LQ before.
|
|
|
06-14-2014, 08:59 PM
|
#27
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by Didier Spaier
Because then, you won't get the benefits of Slackware's packages management system. A few examples:
|
I disagree. The primary benefit of slackware's package management system, IMHOP, is the fact that unlike other package management systems it does NOT insist on owning everything and it's not so brittle that you have to change your way of working to avoid offending it. Redhat systems are a freaking nightmare, they dont care that you know what you are doing and it's really just fine, they throw a tantrum like a 4 year old hyped up on sugar and caffeine the minute you try to do something they havent approved, and Debian! I love Debian but the package management system is almost as brittle as RPM and even more of a tantrum-throwing control freak. Package management, in particular although among other things, always drives me back to Slack just because it will get out of the way and let me drive.
So I would say the exact opposite, if you do not install from source on occasion YOU are the one not getting the full benefit of the package system.
Upgrading is simple, you delete the old app and install the new version. Anything else, no matter how automagically delicious, is less than perfectly reliable, but if you are ok with that then you can just install the new app on top of the old one as well - that usually works fine.
Make uninstall is good practice so you should not delete the source directory (doh!) but even if you do it's not actually a big deal. Again, I would typically do this with a fairly small and uncomplicated application and therefore it's pretty easy to remember where I installed everything should I need to delete it later, but even if you delete the source directory and pay no attention whatsoever to where things went, and later really need to uninstall it, you can just download the source tarball again. Hardly rocket science.
Last edited by Arkerless; 06-15-2014 at 12:27 AM.
|
|
|
06-14-2014, 11:58 PM
|
#28
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
@ruario I are apologies I guess I did but didn't want to attack you
|
|
|
06-15-2014, 12:02 AM
|
#29
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
Just wanted annouance my opinion. Which is arguably pure , you is collateral damage.
|
|
|
06-15-2014, 02:47 AM
|
#30
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Original Poster
|
@Arkerless: I'm not sure I understand what you are claiming. I have had stuff outside of official packaging on variety of distros, with no problem. I don't see a massive advantage of the Slackware packaging system in this regard, as you are claiming
The one thing that would be easier on Slackware is to remove a system package and replace it with one installed by hand (since dependency tracking wouldn't get in your way) but I see no real reason for you to avoid packaging it, given that you would already have a SlackBuild anyway. Why wouldn't you just use the pre-provided SlackBuild and tweak it as needed?
On to your other point, unless you are tracking the install in some way, removal or upgrading a manually installed package is not always simple. For a small app with a single binary and man page and/or a reliable make uninstall target it is easy enough but for plenty of packages it is not straight forward.
You any others reading this should look at slacktrack (included with Slackware) or src2pkg. These are the sensible options for people exclusively using Slackware who don't have time, knowledge or energy to create a SlackBuild.
I should probably clarify that the reason I don't just use slacktrack and or sbopkg is that my work requires me to use multiple distros. Therefore, I created my own basic scripts instead. The advantage for me is that I can then use the same solution everywhere, with no real effort or setup. But I still keep track of all newly created files. Unless you don't care about your system becoming a mess of files you can't keep track of, I would suggest others also use some system to keep track of applications installed on their system. More often than not the simplest way will be to make a native package.
Last edited by ruario; 06-15-2014 at 03:53 AM.
Reason: multiple edits to clarify my wording and argument
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 09:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|