Not necessarily, a better description here would be: it may not have to be a problem. But it also remains to be seem how long that status quo is going to last.1) If I use all default settings while installing from ports, mixing ports and packages isn't a problem?
Can't say for sure. Maybe not, maybe so. See...2) If I install (for instance) bash from the ports collection, installing an unrelated package (x-windows?) shouldn't be a problem?
root@vps:/usr/ports/x11/xorg # make all-depends-list | wc -l
412
Not sure whether this is already somewhere in this howto, didn't find it quickly:1) If I use all default settings while installing from ports, mixing ports and packages isn't a problem?
pkg
is configured to use repositories built from the "quarterly" branch, while tools like portsnap
will by default fetch a "latest" ports tree. Mixing this is a recipe for getting into trouble very quickly, so either reconfigure pkg to use "latest" packages or check out a quarterly branch of the ports tree for building your own. pkg audit -F
. Which is where ports-mgmt/portmaster would throw an error and stop the build, just as I would want it to.The problem is that it likely won't be a problem, perhaps even for years. When you do stumble into an incompatibility deep in your dependency tree, however, it will be very difficult to find. You may conclude Freebsd is just broken and abandon it. This is why we don't recommend you even try this until you know what you're doing.A couple of questions....
1) If I use all default settings while installing from ports, mixing ports and packages isn't a problem?
Where is the source code used to build packages, for when I need to compile something from source but the source doesnt compile and there is no port?Hi gang!
Introduction (editorial section)
I'm not sure I understand your question.Where is the source code used to build packages, for when I need to compile something from source but the source doesnt compile and there is no port?
make extract
command within the port directory, see also the ports(7) manualpage.auto-update-system --defaults
, then review the output and decide if I should reboot.No it's not. You can easily switch from binary to building your own ports for example.Mixing is unavoidable if you use binary packages but want something that cannot be packaged for licensing or other reasons, such as libdvdcss.
libdvdcss-1.4.2
Name : libdvdcss
Version : 1.4.2
Origin : multimedia/libdvdcss
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
Repository : FreeBSD [pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly]
Categories : multimedia
Licenses : GPLv2
Maintainer : jpaetzel@FreeBSD.org
WWW : http://www.videolan.org/developers/libdvdcss.html
Comment : Portable abstraction library for DVD decryption
Options :
It is about some options, which are verboten someplace of the world. Like decss for DVDs or TrueType fonts for libreoffice. That was a patent issue, no idea if it still is.What made you so sure that libdvdcss wasn't available as a package while it clearly is?![]()
I don't do auto Admin anything or runI frequently runauto-update-system --defaults
, then review the output and decide if I should reboot.
portmaster -a
as SOP and never update anything unless ports-mgmt/portmaster recommends it as a dependency update. Or if it's a new version of something like www/youtube_dl and I want the latest version.I said "If you use binary packages ... mixing is inevitable". How does the fact that you don't have to use binary packages invalidate this statement?No it's not. You can easily switch from binary to building your own ports for example.
Or... install the software outside the packaging system, so manually.
And, uhm...
What made you so sure that libdvdcss wasn't available as a package while it clearly is?Code:libdvdcss-1.4.2 Name : libdvdcss Version : 1.4.2 Origin : multimedia/libdvdcss Architecture : FreeBSD:12:amd64 Prefix : /usr/local Repository : FreeBSD [pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly] Categories : multimedia Licenses : GPLv2 Maintainer : jpaetzel@FreeBSD.org WWW : http://www.videolan.org/developers/libdvdcss.html Comment : Portable abstraction library for DVD decryption Options :
<<<ROOT@barracuda.uits>>> /home/bacon 1035 # pkg install libdvdcss
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'libdvdcss' have been found in the repositories
PORTNAME= libdvdcss
DISTVERSION= 1.4.3
CATEGORIES= multimedia
MASTER_SITES= https://download.videolan.org/pub/${PORTNAME}/${DISTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable abstraction library for DVD decryption
LICENSE= GPLv2 DMCA
LICENSE_COMB= multi
LICENSE_NAME_DMCA= DMCA
LICENSE_TEXT_DMCA= CSS code may violate the DMCA
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
LICENSE_PERMS_DMCA= auto-accept
Lastly, do you not see that that's a directly contradictory statement? You state it is "inevitable", yet somehow Shelluser and I have managed to do it. Do you know what the word "inevitable" means?I said "If you use binary packages ... mixing is inevitable". How does the fact that you don't have to use binary packages invalidate this statement?
Right you are.Secondly, you're dispensing bad advice. It is indeed possible to run a system with just binary packages, and mixing ports and packages is a really bad idea.
Opinion? Those cheap sentences are the same as a "shut up & go away"… You know f.e. the option "NO_PACKAGE" in the Makefiles? Here's a list of ports with it:First of all, this is a guide, you should discuss your opinions elsewhere.
Secondly, you're dispensing bad advice. It is indeed possible to run a system with just binary packages, and mixing ports and packages is a really bad idea.
CFLAGS+=-march=native
to /etc/make.conf, then cd /usr/ports/biology/mmseqs2 && make install
to get a binary that's ~30% faster than the binary package.Well, I just had to doOpinion? Those cheap sentences are the same as a "shut up & go away"… You know f.e. the option "NO_PACKAGE" in the Makefiles? Here's a list of ports with it:
...
net/bwi-firmware-kmod
...
So, let's tell me how to get one of them as binary package - otherwise you should write an apologyoutpaddling wrote some really good hints if it comes to mixing ports and packages. And not an opinion.
doas poudriere bulk -j 122amd64 -O overlay -p HEAD net/bwi-firmware-kmod
pkg search bwi-firmware-kmod
bwi-firmware-kmod-3.130.20 Broadcom AirForce IEEE 802.11 Firmware Kernel Module
One of a million will turn true into false.So 17 out of 44 thousand means that mixing ports is inevitable? I'd never even heard of most of those, and I've certainly never needed them. If I did, I'd either run a system with just ports or make my own packages.
Saying that mixing ports and packages is "inevitable" is so wrong, it's just plain stupid. It's also bad advice to give.
One of a million will turn true into false.
Use ports and not packages. This is not complicated.Of course you can use FreeBSD without mixing ports and packages (you can even use it without any port or package). And of course you can set up your own package server and compile all by yourself. But what if you want to go with the official packages, but f.e. need MariaDB as well as LibreOffice and Kdenlive?
No. Not mixing ports and packages is not just "my recommendation." It's the recommendation of most knowledgeable Freebsd users.(Snip dead horse flogging)
You found your way, and it fits perfect. And you're sharing your experience here with others - and that's really great! But it's not the holy grail for everyone; It's just your recommendation.
Not complicated but certainly overkill and not really time-efficient when all you want is to install a few ports that are not distributed as packages.Use ports and not packages. This is not complicated.