Slashdot Log In
FreeBSD Ports for GNU/Linux
Posted by
michael
on Fri Sep 21, 2001 01:20 PM
from the thirty-two-tetris-variants-and-counting dept.
from the thirty-two-tetris-variants-and-counting dept.
proclus writes: "GNU-Darwin has provided a special FreeBSD ports tarball (20 Mb) for GNU/Linux users. We have modified the FreeBSD Ports System to bring thousands of free software offerings within the reach of every GNU/Linux user. The system is not fully automated yet, but you can untar it in your home directory and try it. Just follow these directions. This system provides full access to the FreeBSD ports, so that users can compile and install software in their home directories. Root access is not required."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
FreeBSD programs w/in reach of Linux users? (Score:2)
What programs would I seriously want to run that are of FreeBSD fame only? None that I know of.
What do I know though?
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
I'm not a bsd user myself, and I'm curious to see what thas to offer (when I get home from work
Re:FreeBSD programs w/in reach of Linux users? (Score:3, Insightful)
My guess is that this tarball differs from the ports tree that's available via cvsup (cvsupXX.freebsd.org, where XX is some number on the interval [1,10]) in that the cvsupped ports contain patches that are FreeBSD specific, while this tarball will have settings more appropriate for Linux, such as
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
I just don't see the point to this. 20mb seems like a lot of space to waste to run applications that should be ported to both OSs anyway.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
On the Debian system I put together last week (a near-minimal install), I typed "apt-get install mailman" this morning. A second later, it responded by saying would also need to fetch apache, apache-base, and python-base, and did I still want to continue?
Speaking as a former RedHat user (and a guy who has logged many hours poring over rpmfind.net), I have to say that apt-get is really easy to get used to.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
Last I checked, apt-get was great for binary installs, but not so well suited to local compilation. Ports is the equivelant for people that prefer their binaries locally compiled and optimised for their system.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
Re:FreeBSD programs w/in reach of Linux users? (Score:5, Insightful)
First, I am a real fan of Debian, apt-get, and am running debian both at work and at home.
What the FreeBSD ports system does which is so cool is get rid of the idea of distributing binaries at all. Instead, you go into the subdirectory corresponding to the program you want and type "make install." Based on the skeleton files present the program source(s) and any patches are downloaded, applied, the program is then compiled against whatever libraries you have on your system (no more "this binary requires glibc version Y but you only have X"), and installs the compiled binary. Furthermore, doing so is as easy as installing a
Basically, it combines "apt-get source --compile; dpkg -i [new-packages].deb" into "make install," and simplifies the package management/dependency management.
BSD ports is IMHO the only software management system that in some ways exceeds even debian's approach, but keep in mind there are conceptual differences to the approach (all things source vs. precompiled binaries), so it isn't entirely an apples to apples comparison.
Parent
Re:FreeBSD programs w/in reach of Linux users? (Score:2, Interesting)
So, I'm curious - what happens when you upgrade one of your big system libraries this way? Does the ports system automatically recompile any affected apps, or re-fetch them, or what? Not that I'm saying Debian necessarily handles this any better (I wouldn't know). Heck, at least with a packaging system, you know what the dependencies are for various apps. If everything's built from source, do you even know which apps were built against which library versions?
Re:FreeBSD programs w/in reach of Linux users? (Score:2, Insightful)
Anything you untar, I can apt-get better. (Score:2, Interesting)
I don't know about the rest of the world, but I don't have the disk space, the processor power, and the time to compile everything that I can currently just get from the Debian archives with apt-get. I can try and trash software relatively thoughtlessly.
I used to play things the build-your-own linux way. I have also used *BSD enough to understand the joy of ports when compared to the build-your-own method.
Perhaps this would be more of an issue once a "bad-guy" makes his way into the Debian Maintainership and gets a package out there that sends everyone's encryption keys off to Osama Bin Ladin Land (the Terrorist Place on Earth ). But then again, do you check every line of source before compiling?
Re:FreeBSD programs w/in reach of Linux users? (Score:2, Informative)
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
How many packages do you install on a daily basis? I upgrade a port/package about once every two weeks. The first time you install it takes a while, but after that you don't have to worry about it anymore. Or you can initially install only the prebuilt packages, and only use ports for upgrading.
FreeBSD is free, as in speech, beer, and not telling you how to maintain your system.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
apt-get update
apt-get upgrade
no wasted time compiling, knows the dependencies I need, and it does everything for me.
that's just my opinion though.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
First of all with ports, you have to compile everything yourself, which can take a lot of time on slower machines (like my home router/firewall). In the end it just creates an OpenBSD package anyway.
So I tried packages. They're pre-compiled, like debs, but the pkg_add software is terrible! In order to update a package you have to first remove the package then add it again! And if the package has dependancies you have to remove all the dependancies and re-install them all again! Plus you can't just do a "pkg_add foo," you have to do a "pkg_add ftp://ftp.openbsd.org{blabalbla}/foo-3.17-2.pkg," which means you not only have to know where to get the file, you also have to know the version number and all other information in the filename in advance! Add to this the fact that there's no real comparable substitue to "apt-get update;apt-get upgrade," and it's quite obvious that OpenBSD's packaging system is woefully inadequate.
I'm not sure if FreeBSD's paackaging system is better, but I was shocked to see just how bad OpenBSD's packaging was. It's too bad, because apart from the packaging management, I love OpenBSD. Perhaps I'll start working "apt-get-izing" OpenBSD. Has anybody else started such a project? It seems badly needed.
- j
Re:OpenBSD packaging (Score:2, Informative)
The trick is to do pkg_add inside of ftp instead of ftp inside of pkg_add.
Re:FreeBSD programs w/in reach of Linux users? (Score:2)
Re:FreeBSD programs w/in reach of Linux users? (Score:2, Informative)
Point taken, to some extent, but for FreeBSD, there's pkg_update [freebsd.org].
Compile flags (Score:3, Informative)
CPUTYPE=i686
This way you automagically have a cc -O -pipe -march=pentiumpro setup so you don't compile for 10 years old 386 cpus.
Sure, compiling KDE2 will take some time, but who cares, you can continue working while the package builds, thanks God for dual cpus and SCSI disks
Re:FreeBSD programs w/in reach of Linux users? (Score:3, Informative)
# apt-get install pentium-builder
# less
apt-get source whatever -b
pentium-builder is pretty handy IMHO.
Re:FreeBSD programs w/in reach of Linux users? (Score:2, Interesting)
apt-get build-dep
From the help of apt-get:
build-dep - Configure build-dependencies for source packages
This should do pretty mush what ports do!
GNU/Linux (Score:5, Funny)
Re:GNU/Linux (Score:3, Insightful)
I will never, ever call Linux by that name. If I ever meet RMS, I won't use the term, either. He can correct me over and over (as he is notorious for doing), and I will never, ever EVER EVER use that idiotic term.
My goal is to not cave in to the "language police". The GNU component is only one component of a Linux distribution. The Kernel is called Linux. A distribution is typically called Linux. I am not confused by this. Most people are not confused by this.
I wonder what the goal is of dening the Free Software Foundation credit for things such as the GPL and kicking off gcc, etc.?
I wonder what RMS's goal is for denying other parties credit for things such as XFree86, Perl, etc. GNU's stuff is only piece. Certainly an important piece, but only one piece.
You've missed his point (Score:2)
So many people continue to harp on how other software makes a bigger part of any distro that I can only assume that they have blinders on and do not want to admit that he has a point, at least from his point of view. I think they just want to bash RMS and the hell with needing a valid reason.
Re:GNU/Linux (Score:2)
In fact, I think I'm going to start calling it KDE/Linux. I would imagine that would REALLY irritate him.
Re:GNU/Linux (Score:2)
Re:GNU/Linux (Score:2)
There are quite a few others like cvs, groff, etc. that aren't really essential but are part of the system too.
One interesting thing I just noticed is that the version of IPFilter that's in the tree has a new license that does allow redistribution:
Redistribution and use, with or without modification, in source and binary
forms, are permitted provided that this notice is preserved in its entirety
and due credit is given to the original author and the contributors.
Re:GNU/Linux (Score:2)
I hate to state the bleeding obvious but major and significant parts of a typical Linux distribution are not GNU. Try to guess which bits. I consider it an insult that the term is blanketed over code (including some of my own) which is neither owned by the FSF nor even GPL in many cases. Certainly the FSF provides some of the bedrock tools for a Linux distro - and we salute them for it - but to name the whole distro in their honour is just silly.
Linux is a perfectly acceptable term to refer to the whole OS in generic terms or to the kernel. If specific context is needed, prepend Mandrake, Redhat, SuSE etc. as appropriate.
I've been using GNU/Linux since 0.48x (Score:2)
He has said that his reaction (a natural one, after all at the time he and his project had written almost all of the software we were using, outside of the kernel itself and the X Window System for those few lucky enough to have it working on their hardware at the time) was a mistake, and if he had it to do over again he would have handled it differently.
The FSF's stance on wanting the entire operating system to be called GNU/Linux rather than Linux is that they wish to emphesize the Freedom that the FSF philosophy tries to promote, and that recognition for their (by any measure massive) contribution to Linux, or GNU/Linux if you prefer, is very secondary to that goal.
I have tried to make a habit of refering to the entire collection of software as GNU/Linux not out of some misguided notion of political correctness or to appease RMS as such, but simply as a small courtesy in saying "thanks" to the guys whose software (GNU gcc, file-utils, lib-utils, etc.) and kernel (Linux) has vastly improved the quality of that portion of my life spent in front of a computer and has enabled me to make a very comfortable living. It seems a small request on their part, and the least I can do to give something back.
Re:I've been using GNU/Linux since 0.48x (Score:2)
And by doing so you're being discourteous to all the other guys who wrote stuff that you make a living from. I speak of such stuff as the kernel, XFree86, Perl, Mozilla, Python, tcl, KDE, Apache, Samba, MySql, openssh, webmin, and many more besides.
FSF software is what it is - a valuable subset of any distribution, but certainly not *so* important that it deserves everything to be tarred with the same brush.
Re:Veering slightly OT - the curbside cowboys (Score:2)
An operating system is "software that controls the operation of a computer and directs the processing of programs (as by assigning storage space in memory and controlling input and output functions)." A strict reductionist would consider only the kernel and kernel modules to be the operating system. In reality, we must also include the file system, init process, boot loader, etc. as part of the OS.
What is there of GNU that is absolutely necessary to get a Linux system up and running? Nothing! However, GNU has provided a mass of software that makes using Linux much, much more convenient. Although this software is not the operating system, it does comprise the majority of the standard Unix "operating environment". Since it is not necessary, I cannot consider it part of the operating system.
What RMS does not realize in his crusade to rename LinuxOS, is that Linux is a NEW kind of system. It is the first component operating system and environment. It was created not from scratch, but from existing parts. Some of these parts came from GNU, but not all of them. Just as Home Depot does not get to name your kitchen extension, neither does GNU get to name this new kind of system just because it used some GNU parts.
Re:Veering slightly OT - the curbside cowboys (Score:2)
Re:Veering slightly OT - the curbside cowboys (Score:2)
You could very accurately describe a Linux distro as "The Linux operating system plus complete GNU environment, XFree86, KDE, GNOME, etc."
Re:Veering slightly OT - the curbside cowboys (Score:2)
Silly silly. Emacs is GNU - in fact it was the first piece of GNU. Gnome is GNU also. But that's not the point.
The point is that an Operating System is a collection of software that makes a computer usable. There is a minimum level, and it's more than a kernel. You have to have a text editor. You have to have a compiler collection. Without those you can't do anything at all.
RMS and the FSF have been working to make all the crucial components of an OS available for decades. Without that work there wouldn't be any Linux. Don't believe me? Just what do you suppose Thorvalds himself had to have before he started writing the kernel? VIM and GCC. RMS himself wrote GCC. VIM was written by people inspired by his example, who preferred the design of vi, but longed for the freedom of Emacs.
For that matter, BSD in the form we know it today relies on GCC, and quite a bit of other GNU software too. It's probably possible, at this point, to put together a Free system that doesn't use anything GNU. But it would be an inferior system, so no one, not even OBSD (Theo hates RMS and yanks anything GPL out of his base the moment anything half-usable under another license is available,) does. But would it be possible to do that at this point if it weren't for RMS' unflagging uncompromising belief in Free Software, were it not for the tremendous amount of work he has done? I very much doubt it. So yes, I think he does deserve some credit, and yes, I think it's quite accurate to call most linux-based OSes GNU/Linux.
Re:Veering slightly OT - the curbside cowboys (Score:2)
Actually, an operating system does not need a text editor, etc. - spend some time in the embedded world.
-jerdenn
Open Packages (Score:2, Informative)
Open Packages is *MORE* than BSD (Score:3, Informative)
OpenPackages is a universal solution. GNU-Darwin is less than universal.
Depends on what you want. To be inclusive or exclusive.
Can someone explain why I would want this? (Score:2)
Porting ports.. (Score:2)
But let me see if I've got this right...the FreeBSD ports tree is a port of Linux/nonBSD-UNIX based software (mostly Linux based) to FreeBSD, and now someone has taken it and ported it back to Linux...heh.
(Okay, okay, I realize it's the actual ports tree system which is being ported, but still...
Its all about the Debians (Score:3, Interesting)
Well, how is this better than Rock [rocklinux.org] Linux?
Rock's package management system is source based, and updates, etc...
And as for elitism, I spoke with the creater on the phone a few years ago when he was starting it, and he's a really jolly bloke.
Gentoo and the Portage Based Linux Distro (Score:3, Interesting)
One use of a Linux distro like Gentoo would be to add a user-friend-idiot-proof OS installer that plug-n-play auto detects everything about your hardware, from the exact CPU type, MB type, memory type, graphics card, sound, etc... and then keep that system specific info in a local database. After this part of the installation, and for the rest of the life of the system, whenever you install ANY application on your system, the software is automatically optimized and compiled for your specific setup. Applications could be optimized for your CPU-type and the amount of RAM that you have. Maybe even your video card and sound card could be taken into consideration. If you don't have a sound card, any references to sound could be compiled out of the application. If your video card only supports 256 colors, then perhaps, the desired application could automatically be optimized for such a platform.
This would allow application developers to program with a greater assumed knowledge of the end user's system, and it would make it easier for the end user to have a totally tweaked out Linux setup, apps and all! Not to mention the fact that the Gentoo Portage system deals with dependencies automatically, furthur easing end user headaches.
Closed source simply couldn't compete with such a Linux distro because closed source software (Windows for example) is compiled for the average hardware setup, which sacrifices performance for generality, while a Gentoo based Linux Distro could automatically reconfigure itself to tighly fit your exact hardware setup, which keeps generality and great performance.
Increased Cooperation Is Good For Both Camps (Score:3, Interesting)
Demonstrate strong interoperability but still have a choice what OS you want to run (*BSD, Linux, MacOSX, etc).
Increase availability of all kinds of software and toolkits between almost all of the anti-MS players.
Accellerate development for both platforms by encouraging developers to optimize their software for both camps.
:)
Now this is a lot to say for such a rudimentary project (and I'm sure the list could go on), but the ideals are there. Imagine if we had increased/improved interoperability between the KDE and GNOME projects (instead of a lot of bitching about the other "sucking ass"). Say, tools that helped unify the appearance of widgets, code sharing layers, and so on.
So, wordiness aside, unity is good.
I'm only gonna say this once (Score:3, Informative)
gentoo uses something very much like ports, though it doesn't use make, but a python utility called emerge instead. i would hope to see it use SCons in the future, and get the best of both worlds -- it might even be enough to get me to switch back to linux (once it stops having a VM bug of the week)
Re:What is GNU/Linux? (Score:2)
Call it whatever you want, just don't call it Microsoft/Linux.
Re:What is GNU/Linux? (Score:2)
Yup, and Symantec writes a lot of their software in Microsoft Visual C++, but we don't call it Microsoft / Norton AntiVirus, do we?
-jerdenn
Re:Ports++ = Gentoo (Score:2)
Please, read the FreeBSD handbook
cd
I installed FreeBSD 4.3 on my box when it was released, I CVSuped the latest source code last week and now my box reads:
ainhoa# uname -srn
FreeBSD ainhoa.energyhq.org 4.4-STABLE
Yep, FreeBSD is cool
It's the apps, dude! (Score:2)
Forget GNU. Forget Linux. Forget BSD. Forget Microsoft.
Just use the system that best fits your needs. This may mean that your pet OS is not a universal fit for someone else.
That's what this is ABOUT!
The OS and the applications are separate entities. This is a port of the applications so they'll compile and run identically, from a common source base, on both BSDs and Linux. This makes them tweakable on Linux or a BSD, and so on.
Once this is fully done you'll be able to have a common environment across the (unix-like) OS spectrum. Pull out the OS and swap in another, and it won't matter. So you'll be able to pick or change the OS to meet your needs for *OS* performance, hackability, or special feature set, without having to switch to a different set of applications just because you changed the platform under them.
Re:Sounds nice to me (Score:2)
You can do the same under FreeBSD as well. There are prebuilt binary "packages" that are essentially identical to Slackware tarballs.
What is great about ports is that you get all of the benefits of building from scratch, with the convenience of automatic builds, dependency checking, etc.