Date: Tue, 23 Aug 2011 14:49:52 +0800 From: Adrian Chadd <adrian@freebsd.org> To: selven <pcthegreat@gmail.com> Cc: vadim_nuclight@mail.ru, freebsd-arch@freebsd.org Subject: Re: FreeBSD problems and preliminary ways to solve Message-ID: <CAJ-Vmon1%2Bzn2Kghqm6MnJdKZ64H5BM%2BXTiaVaPrt6x5eLJgepQ@mail.gmail.com> In-Reply-To: <CADW03ip6qUAezB70cOjLG5go25R2mduQEvG5-W=8Z9nO17FN7A@mail.gmail.com> References: <slrnj4oiiq.21rg.vadim_nuclight@kernblitz.nuclight.avtf.net> <CADW03ip6qUAezB70cOjLG5go25R2mduQEvG5-W=8Z9nO17FN7A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
And that's been my experience too. Linux users and advocates are very .. loud. FreeBSD users and advocates tend not to be so loud. Maybe that needs to change. Adrian On 23 August 2011 14:06, selven <pcthegreat@gmail.com> wrote: > Good post as well as pretty much scary. You mentionned about the purity o= f > FreeBSD at some point, that's one of the reasons why i prefer FreeBSD > (probably many of my friends who do work with it also), lately, with all > those ubuntu fans, trying to get the company to keep using FreeBSD has > become pretty much a hassle. Since in a technical board, with 10 people, = 7 > out of 10 are ubuntu users, with votes one always loses, and the funny th= ing > :s 7 out of 10 don't even know the difference between FreeBSD and linux, > they just voice out ubuntu because 'you will end up in trouble finding > people to maintain your stuffs if these 3 leaves' (weirdly we even fixes > there buntu bugs :s ). This user base is really a huge problem. > > On Thu, Aug 18, 2011 at 3:10 AM, Vadim Goncharov <vadim_nuclight@mail.ru>= wrote: > >> Hi, >> >> I have bad news. >> >> A month ago techlead of Rambler's Mail department declared in his blog >> that they begin migration from FreeBSD to Debian/Ubuntu. Comments to the >> blog entry (there was much flame) revealed that search department of >> Russian search engine #1 Yandex.com also plans to migrate their >> search cluster - about 30,000 servers in several DCs (~60% of total >> their servers - to Linux. The problem here is that both big companies >> were using FreeBSD from the beginning (~1997), so migration will be >> rather expensive. >> >> The official reasons (really semi-official, as these are individual >> blogs), in short, were: >> =A0* inadequate package manager and huge monolithic base system >> =A0* lack of OpenVZ-like virtualization (need CPU limiting) >> =A0* a FreeBSD marketshare forecast for 5 years >> >> Despite of several our committers working for them, the operating >> expenses for FreeBSD are considered too high by these companies. They've >> not confirmed, but the key problem is probably shortage of FreeBSD >> specialists on the market to hire (e.g. Yandex has about 20 FreeBSD >> admins and about 84 Linux admins, for all other their services and >> 40% of servers). So this is problem of FreeBSD's too low >> userbase/marketshare, caused, in turn, by other FreeBSD's problems. >> >> Given that they is just planning today, but not yet started, we have to >> solve our problems or FreeBSD will effectively die[1]. Currently >> https://ssl.netcraft.com/ssl-sample-report//CMatch/oscnt_all shows that >> still 3% of servers are running FreeBSD. We are currently probably at >> the tip of 'hype curve'[2] and then our userbase will begin to shrink, >> and the task is to solve problems, so after hard time it will rise again >> (hopefully more than it was before). >> >> =A0 [1] 'Die' means shrinking userbase size to those of NetBSD/OpenBSD. >> =A0 [2] http://www.metodolog.ru/01493/2.gif >> >> Earlier this year in this list marcel@ have said about objective view: >> http://lists.freebsd.org/pipermail/freebsd-arch/2011-January/010999.html >> from the outside, not FreeBSD people. I have posted a call to Russian >> community in my blog (http://nuclight.livejournal.com/128712.html) and >> gathered a list of problems along with possible solutions to some of >> them. The rest of this message is summary of them. >> >> In general, people sympathizing FreeBSD agree that there are no fatal >> technical problems and that FreeBSD could compete with mainstream Linux. >> That said, the 80/20 principle is in effect and 80% losed users for >> FreeBSD are caused by 20% problems. The trouble here is that what >> "outside" people view as considerable problems, we here inside FreeBSD >> view as something insignificant ("do it yourself"). Thus 80% could be >> achieved by 20% of work. I have sorted them in order of decreased >> importance (priority): >> >> =A01. Social problems of community (and marketing, docs, ...) >> =A02. Lack of drivers and virtualization. >> =A03. Ports and packages. >> =A04. Base system, closely related with packages. >> =A05. Too short major releases' cycle. >> =A06. Bug tracker, unicode and other less important trivia. >> =A0(bonus) FreeBSD strengths to be concentrated on. >> >> Now all of them more detailed. >> >> > 1. Social (psychologic) problems of community (marketing, docs, ...). >> >> This is the most important one, because all technical problems are just >> won't get solved because are even not viewed as problems. The FreeBSD >> Project does not listen to users' needs. The typical response when poor >> user want something is: "we don't need this, we won't change for you", >> with "where are your patches?" at best. Then many users go out when see >> such attitude toward them. >> >> The key points are: >> >> =A01) *The competent user is not zealot*. >> =A02) The system is *for users, not for developers*. >> >> With first: when user sees the system costs too much time for him, and >> that those problems won't get fixed and even considered such - he will >> switch to another OS. This may mean that he is able to follow our advice >> hoe to do some or another thing (e.g. to recompile all ports), but this >> is unacceptable to him because this is too much maintenance (another >> system by objectivity requires less work). Many businesses fall into >> this category. They will not with FreeBSD by any price just because they >> love OS. Unlike ourselves. >> >> With second: that's simple and not simple. It is simple in that by >> nature each person don't make a work just for himself but for all >> others, who are now "users" to him, too - just by induction that's not >> for developers only. It is not simple due to question "Why do we need >> those who don't contribute anything back to us?" which random committer >> has right to ask. The answer, in short, is: there tasks which could be >> only done by large groups of people, e.g. big corporations. For >> corporations to invest and contribute back - the system must be popular >> enough. To be popular enough means there must be a big amount of users >> who is not contributing anything. It is useful in itself, though, that >> some of those users, say 1%, will become contributors, that is, absolute >> number of our developers will also benefit from FreeBSD being much more >> popular. >> >> There are opinions in our community like: >> >> =A0| > Personally I'd like to think that that we write an OS for users. >> =A0| >> =A0| We write an OS for the people who can and will use an OS written by >> =A0| us. >> >> =A0| FreeBSD is whatever its developers make it be >> >> These are wrong and harmful nowadays. The world has changed. We have to >> admit it or we will die. We have to admit mistakes and *change* some of >> the ways we're doing things: any answer like "I don't agree, we don't >> need these users/features/etc., we *won't* do this for someone" - is >> just another step to grave. >> >> Of course that doesn't mean to do everything - we often have not enough >> time/resources to do. But that's another question and should not be >> mixed with attitude - "it's good but we have no resources, will you do?" >> vs "we don't need this, go away" (that's not only about features but >> about keeping something too). >> >> So ("system is for users") we need to (re)define who our user is. I view >> the current situation as following: >> >> =A0 =A0 =A0 100% .---------------. =A0 =A0 =A0 The stratification of ove= rall >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0Ubuntu =A0 =A0 | =A0 =A0 =A0 our userbas= e. Areas are: >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0target =A0 =A0 | 6 >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 audience =A0 =A0| =A0 =A0 =A0 1 - official = developers >> =A0expand -> |---------------| >> =A0to here =A0 =A0| not our, but =A0| =A0 =A0 =A0 2 - actively participa= ting and >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 competent =A0 | 5 =A0 =A0 =A0 =A0 sending p= atches, contributors >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0 users =A0 =A0 | =A0 =A0 =A0 =A0 =A0 and= other "zealots" (whose >> =A0 =A0 =A0 =A0 =A0 =A0|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| = =A0 =A0 =A0 =A0 =A0 "soul is with FreeBSD") >> =A0 =A0 =A0 =A0 =A0 =A0|announce@ only | 4 >> =A0 involved |---------------| =A0 =A0 =A0 3 - not so active but discuss= ing >> =A0 =A0 =A0 =A0 =A0 =A0| subscribed to | =A0 =A0 =A0 =A0 =A0 in mail lis= ts, patches go >> =A0 =A0 =A0 =A0 =A0 =A0| =A0our mailing =A0| 3 =A0 =A0 =A0 =A0 sometimes >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0lists =A0 =A0 =A0| >> =A0committed |- - - - - - - -| =A0 =A0 =A0 4 - busy with work to read li= sts >> =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 | 2 >> =A0 =A0 =A0 =A0 =A0 =A0|_______________| =A0 =A0 =A0 5 - can use, but co= sts are now high >> =A0 =A0 =A0 =A0 =A0 =A0| *@freebsd.org | 1 >> =A0 =A0 =A0 =A0 0% `---------------' =A0 =A0 =A0 6 - we'll never want th= em >> >> The terms "involved" and "committed" were taken from >> http://en.wikipedia.org/wiki/The_Chicken_and_the_Pig for those who are >> "at the heart" of the community, at "periphery" and all others. >> Currently, only those in (1) and partially (2) are listened to, >> sometimes with "call for ..." in (3). Meanwhile, the most important of >> our users, who are using FreeBSD in production, who are busy with real >> work in real world, are in (4) and sometimes (5). Those are largely >> ignored by the Project - even messages to announce@ last years are less >> about important events and calls for volunteers/money. >> >> The other social problem is lack of companies which offer commercial >> support of FreeBSD like RedHat does. >> >> As a possible solution to find out what user needs are, and to >> compensate the fact that not all users in (4) and (5) care enough about >> our principles and spirit, I propose a system for "weighted democracy". >> This is a voting system (I could implement it), say, there is a mail >> voting@freebsd.org to which users send filled in vote forms, with >> selected answers from a survey published in announce@. >> >> The system has a database where users are recorded given their FreeBSD >> activity in mail lists etc., and votes are summed as follows: >> >> =A0+ 1.00 vote for anyone not in database (not involved to FreeBSD) >> =A0+ a decimal logarithm of number of posts to mail lists (2 votes for 1= 00 >> =A0 posts, 3 votes for 1000 posts) >> =A0+ a binary logarithm of num PRs in GNATS db (6 votes for 64 send-pr's= ) >> =A0+ a proportion (say, N/2) of entries for this person in "svn log" (e.= g. >> =A0 in "Submitted by:") >> =A0+ an assigned (by core@) number of votes in special exceptional DB (f= or >> =A0 corporation and the like) >> >> The system then presents results for each answer: 1) how many users >> voted, 2) how many votes summed. >> >> This is by no mean to measure "exact contribution", but to defend from >> anonymous users and trolls who not care about amount of work developers >> will need to. The results are viewed as a feedback to core team, not as >> a final decision - that's all for what marketing is solely exist. There >> no adequate feedback from users to developers currently at all - >> individual posts in mail lists are too small for statistics (what about >> ministat(1) for users, huh?..). >> >> What is also in this part? Documentation. No, not in that sense. The >> observations show that while there are described solutions to problems >> in system, it's difficult for users to find it. It's somehow organized >> or misorganized that solution is not intuitive for them (e.g. someone >> migrating from Windows complained that it was difficult to find 'simply >> how to format a flash drive' in Handbook). I don't know how to handle >> this properly. May be catalogues with Best Practices howto's pointing to >> exact sections of Handbook, FAQ, articles etc.? May be better search >> mechanisms?.. >> >> And the last here about too much conservatism and rigidness in our camp. >> As one of the opponents said (roughly translated): >> >> =A0| FreeBSD, historically, was good system, let's say, "valid system >> =A0| for solid people". Pureness, strictness, etc. The base system is >> =A0| consequence of this approach. The trouble is, that in 2011 nobody >> =A0| needs pureness and strictness. Customers need transparency and fast >> =A0| reaction to their requests. If there is no transparency and speed, >> =A0| you get CentOS 6 (just released, at last). Or FreeBSD (Gentoo, >> =A0| Solaris, you name it). >> >> I don't agree that those certainly contradicts each other, but we >> definitely need to change, er, something. And don't keep something just >> because it is tradition, if that tradition has no more technical reasons >> for our users. Let's shift conservatism to another field where it is >> really needed (e.g. legacy support and other examples below). >> >> Finally, two more quotes from the arch@freebsd.org archives of last >> 2 years: >> >> =A0| From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net> >> =A0| [...] however, you answer remember me why I quit FreeBSD, cease >> =A0| fire, courtesy is the key >> >> and >> >> =A0| From: Julian H. Stacey >> =A0| Though I & many others have sent lots of send-pr, contributing even >> =A0| a spelling correction to FreeBSD is much harder than to e.g. >> =A0| http://wikipedia.org >> >> The threshold of entering to FreeBSD is too high and should be lowered. >> I can confirm the last quote on my own example, 2 months ago. I've >> submitted a patch to ipfw, adding call/return rule actions. It allows >> to organize rules in somewhat like pf anchors, and, more importantly, >> iptables chains, enabling FreeBSD ipfw to compete with Linux at least >> partially in this sphere. The patch wasn't taken in maillists, I had >> to push it in IRC, and push hard: the whole needed by many big users >> thing was deferred (and still not MFCed to 8.x) just because some >> #define's and printf's were Not So Proper & Right Way! F*cking shame. >> >> > 2. Lack of drivers and poor guest virtualization. >> >> It is known that FreeBSD supports less hardware than competitors. It is, >> however, a matter of popularity - the more system will have users, the >> more drivers will be created by 3rd parties, so we cannot directly >> affect this. It's kind of exclusive circle. >> >> But there is one area - virtualization - without supporting it the >> FreeBSD niche will collapse very fast. It is necessary to say that it is >> about guest (para-)virtualization only, not host mode. Host mode market >> is already lost for FreeBSD for quite some time, may be something in the >> future, but today it will waste of resources. What is needed here is >> just analogue to OpenVZ (and jails/rctl already done more than half of >> the work here). >> >> And in guest mode FreeBSD *urgently needs* working drivers/utilities for >> all common suits, Citrix XenServer, VMWare vSphere (ESXi), Xen*, >> Microsoft Hyper-V, etc. This must be the primary direction for >> developers' forces and FreeBSD Foundation's money. We have may be about >> 1 year here. Why? =A0Because of cloud computing and VPS/VDS. It's no >> matter what OS runs hoster if clients will use FreeBSD and we still have >> users. I've been already asked by a customer for which I wrote >> a non-portable kqueue-based daemon to rewrite for Linux because they >> want to go for Amazon EC2 (it's cheaper as only used resources are >> accounted) and FreeBSD there has still many in ISSUES scaring them... >> >> > 3. Ports and packages. >> >> What was the main problems with large-scale installations of FreeBSD in >> that businesses? In short, that binary packages are not equal in rights >> to ports, and that complicates things (i.e. requires too much work) when >> one have many (> 10) servers. This was listed to me as: >> >> 1) No pkg and pkg-devel versions. The -devel version is headers, static >> =A0 libs, programmer examples, etc. not needed in production (we could >> =A0 say this part is what is actually depended on in B-deps). >> >> 2) Package name is dependent on options, so packages with another opts >> =A0 don't work well when dependencies are rebuilt. >> >> 3) Conflicts: no way to have apache13 and apache22 the same time. >> >> 4) No dependence on base system. You may cut out something, recompile >> =A0 world, deploy it on cluster and just then see that some packages are >> =A0 now don't work. >> >> 5) Dependencies are badly designed. No version ranges in dependencies, >> =A0 no alternative packages, no priorities in package search. >> >> 6) Update problems. The version is just coded into name of package, and >> =A0 dependencies are on the entire name, so there are situations when >> =A0 install/upgrade of just one package may require rebuild 3/4 of all >> =A0 pkgs. You cannot easiy modify installed package without editing pkgd= b >> =A0 manually. It is impossible to upgrade/replace package by out of the >> =A0 box tools. >> >> 7) Base system has no "out of the box" tools for package upgrade. Our >> =A0 business opponents say this the least problem as one can always >> =A0 install portupgrade, but conclude that overall base system concept >> =A0 does not play well with full-featured packages (see also next part >> =A0 about base system). >> >> 8) There is no -STABLE supported branches in ports. >> >> All of this could be avoided (they know about tinderbox etc.) but just >> requires too much work, for their basic tasks like automated upgrade of >> entire system & packages or reinstall of needed packages. >> >> That's problems. Next, possible (gathered) solutions. >> >> It is obvious that current packages are not first-class citizens, in >> comparison with ports. They want ba able to run most machines without >> a compiling at all (BTW, our desktop users need the same), but setting >> build farms when there are many machine roles is hard. >> >> So packages need to be "equal in rights" in ports. The ports can have >> things like this: >> >> =A0.if ${OSVERSION} < 700104 || ${OSVERSION} >=3D 900000 >> >> or this: >> >> =A0LIB_DEPENDS+=3D profiler.1:${PORTSDIR}/devel/google-perftools >> >> but packages are not so flexible, all you have is: >> >> =A0@pkgdep perl-5.8.9_2 >> >> skv@ proposed the following changes: >> >> =A0* OPTIONS need radio-buttons (e.g. only one of MySQL, PostgreSQL, >> =A0 SQLite) and dialog(1) supports it. >> >> =A0* Options must be included and installed to /var/db/ports/*/options >> =A0 (this will allow to rebuild installed binary pkg as port) >> >> =A0* Info about options must be included to /var/db/pkg/*/+CONTENTS like= : >> >> =A0 =A0 @option WITH_SSL >> =A0 =A0 @option WITHOUT_DEBUG >> >> =A0* Dependencies must be able to specify needed OPTIONS, both required = to >> =A0 set and required to be unset, somewaht like: >> >> =A0 =A0 RUN_DEPENDS+=3D foobar:${PORTSDIR}/devel/foobar:+SSL:-SQLITE >> >> =A0 This will allow to detect conflicts with installed packages with >> =A0 incompatible options. >> >> =A0* For the package file names, introduce presets, e.g.: >> >> =A0 =A0 OPTIONS_PRESETS=3D default "+SSL:-DEBUG" \ >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0lite "-SSL:-DEBUG" >> >> =A0 And preset name could be put to pkg name (may be "" for default). >> >> =A0* (internal) move away from CVS, rebalance to category-subcategory. >> >> These ideas in later discussion evolved to another additions. Let say we >> are able to use multiple repositories, where "repository" is a variant >> of /usr/ports tree and packages built from it. Then, each port allows to >> build several packages from it, with different options. Now, if we have >> a port called "softina" and user does >> >> =A0pkg_add -r softina >> >> then dependency search must be made given needed options. So @pkgdep >> consists just of "softina" and versions like ">=3D1.1" and options. Also= , >> if packages are equal in rights to ports, they need integrity/security >> check. So, package file name is now like: >> >> =A0softina-1.2.3_1:repo.id:1312929890.tbz =A0 =A0# chars allowed by wind= ows >> >> Here is a repository id, just a hostname like "freebsd.org" for official >> ports, and an unique build id in that repo, though it were suggested >> that option preset name instead of that name will be better (because >> human-readable). And `pkg_add -r' fetches a single file >> >> =A0softina.pkgmeta >> >> consisting of sections for each actual package file. Each section has >> a copy of what already is in .tbz file: name, comment, options, >> dependencies (and their versions and options). And one thing not present >> in .tbz - it's digital signature. Fetching pkg_add looks up local key >> for given repository id to check. Fetching .pkgmeta beforehand also >> allows to calculate if all needed dependencies are present in repo to >> not fail in the middle of 100 packages as current pkg_add may do. The >> signature is in another file and optional, so user could install the >> plain .tbz file manually (it still contains all needed information, >> .pkgmeta is only a copy except a signature). >> >> The one other thing which is also optional to @pkgdep is again >> repository id. This is to allow following situation: >> >> =A0* company has 10 it's own internal projects >> =A0* it also has 20 modified ports from original tree >> =A0* internal pkgs depend on modified ports, not original >> =A0* it's local port tree/pkg repo may hand only those, not full tree >> >> Then internal pkgs may be depended on modified ports to be not >> intermixed by mistake with original versions from official tree. >> Repository IDs are used for that, this is optional mechanism, though. >> End machines have two repositories in their config files, local and >> offical, and all works correct, and local repo doesn't need to be a full >> clone of ports tree. >> >> The problem of -devel ports could be solved by using a global knob like >> WITH_DEVEL (analogue of WITHOUT_X11), and options affect parts of >> pkg-plist. The solved problem: glib has perl in R-deps, just for one >> script, but this script is needed only for _build_ of dependent ports. >> Now, if you install irssi, you will always have glib and perl, but you >> don't need perl to run irssi. And irssi could have it's build dependence >> of glib:+DEVEL and run of just plain glib. >> >> Of course we don't want to split ports to perl, perl-base, perl-modules, >> perl-doc, etc. like in Debian, and options could be solution here - one >> port, several packages. Build farm may now build not one, but 2-3 common >> option presets. >> >> Here we go to another related problem, though - ports infrastructure. >> I've read 16 chapters of http://www.netbsd.org/docs/pkgsrc/ and found >> several interesting moments (let's concentrate on most close sibling of >> our ports, though e.g. slots in Gentoo and Arch Linux system are also >> worth looking too). They already have many of what we need, and since >> pkg_install/ports by Jordan Hubbard is common ancestor, it may be easier >> to port from them to us needed features. >> >> For example, there is problem generating plist for our porters. And what >> they have, a program to create port from distfile: >> >> =A0| Run the program url2pkg, which will ask you for a URL. Enter >> =A0| the URL of the distribution file (in most cases a .tar.gz file) and >> =A0| watch how the basic ingredients of your package are created >> =A0| automatically. >> >> Just fix oddities later manually, but saves from all boilerplate work! >> >> Next, skv@ said about radio-buttons, and thay also have it, in two >> favors: first with one from group always set, second allowin all clear: >> =A0"Exactly one of the following gecko options is required" >> =A0"At most one of the following database options may be selected" >> >> =A0| PKG_OPTIONS_REQUIRED_GROUPS is like PKG_OPTIONS_OPTIONAL_GROUPS, bu= t >> =A0| building the packages will fail if no option from the group is >> =A0| selected. PKG_OPTIONS_NONEMPTY_SETS is a list of names of sets of >> =A0| options. At least one option from each set must be selected. >> >> The OPTIONS, however, are handled in different way: >> >> =A0$ grep "PKG.*OPTION" mk.conf >> =A0PKG_DEFAULT_OPTIONS=3D =A0 =A0-arts -dvdread -esound >> =A0PKG_OPTIONS.kdebase=3D =A0 =A0debug -sasl >> =A0PKG_OPTIONS.apache=3D =A0 =A0 suexec >> >> Dependencies also allow versions: >> >> =A0BUILD_DEPENDS+=3D lua>=3D5.0:../../lang/lua >> =A0DEPENDS+=3D =A0 =A0 =A0 screen-[0-9]*:../../misc/screen >> =A0DEPENDS+=3D =A0 =A0 =A0 screen>=3D4.0:../../misc/screen >> >> Checksum files for packages exist on their own, and only those may be >> signed not the packages itself (an alternative to .pkgmeta approach >> described above). >> >> Another useful thing to borrow is patches/* separately from files/* >> >> The most visible thing in pkgsrc superior to ports, is buildlink3 >> framework: >> >> =A0| Buildlink is a framework in pkgsrc that controls what headers and >> =A0| libraries are seen by a package's configure and build processes. >> =A0| [...] Please note that the normal system header and library paths, >> =A0| e.g. /usr/include, /usr/lib, etc., are always searched -- buildlink= 3 >> =A0| is designed to insulate the package build from non-system-supplied >> =A0| software. >> =A0| [...] >> =A0| Some packages in pkgsrc install headers and libraries that coincide >> =A0| with headers and libraries present in the base system. Aside from >> =A0| a buildlink3.mk file, these packages should also include a >> =A0| builtin.mk file that includes the necessary checks to decide whethe= r >> =A0| using the built-in software or the pkgsrc software is appropriate. >> =A0| [...] When building packages, it's possible to choose whether to se= t >> =A0| a global preference for using either the built-in (native) version >> =A0| or the pkgsrc version of software to satisfy a dependency. This is >> =A0| controlled by setting PREFER_PKGSRC and PREFER_NATIVE. >> =A0| PREFER_PKGSRC=3D =A0yes >> =A0| PREFER_NATIVE=3D =A0getopt skey tcp_wrappers >> >> There are more automation: >> >> =A0| Up to now, the file PLIST, which contains a list of the files that >> =A0| are installed by the package, is nearly empty. Run >> =A0| bmake print-PLIST >PLIST >> =A0| to generate a probably correct list. >> >> Yes, they rely on their derivative of BSD make, bmake, which it itself >> worth merging deifferencies to our make (for example, there is a clean >> and small alternative to autotools, mk-configure, using bmake and >> written in style of .include <bsd.prog.mk>). There may be other examples >> of userland tools worth porting from NetBSD to us instead of directly >> upstream, e.g. awk... but that's another story, let's continue pkg. >> >> Their developments of pkg_* tools contain facilities to implement a good >> package manager out-of-the-box, e.g. pkg_add there has flags: >> >> =A0| -A =A0 =A0 =A0Mark package as installed automatically, as dependenc= y of >> =A0| =A0 =A0 =A0 =A0 another package. =A0You can use >> =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pkg_admin set automatic=3DYES >> =A0| =A0 =A0 =A0 =A0 to mark packages this way after installation, and >> =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pkg_admin unset automatic >> =A0| =A0 =A0 =A0 =A0 to remove the mark. =A0If you pkg_add a package wit= hout >> =A0| =A0 =A0 =A0 =A0 specifying =A0-A after it had already been automati= cally >> =A0| =A0 =A0 =A0 =A0 installed, the mark is removed. >> =A0| -U =A0 =A0 =A0Replace an already installed version from a package. >> =A0| =A0 =A0 =A0 =A0 Implies -u. >> =A0| -u =A0 =A0 =A0If the package that's being installed is already inst= alled, >> =A0| =A0 =A0 =A0 =A0 an update is performed. >> >> These are crucial to effective binary package management. >> >> > 4. Base system, closely related with packages. >> >> The next in turn was concept of monolithic base system. The troubles >> with base system were: >> >> 1. To change the components of the base you may only recompile it with >> =A0 corresponding src.conf(5) options, but there is no track in base >> =A0 system which are actually installed now. You cannot binary upgrade >> =A0 a custom world, even if it is just unmodified -STABLE instead of >> =A0 -RELEASE. >> >> 2. Consequently, there is no way to check integrity (MD5 etc.) of any >> =A0 non-RELEASE variant (freebsd-update IDS is very limited). >> >> 3. No ties between base system and packages: who knows what previous >> =A0 admin has installed, you may have compiler or may not have, etc. >> =A0 Packages may silently broke if some part of base system SUDDENLY >> =A0 disappears, as no dependency information is recorded. >> >> 4. Base system is monolithic, so there is no easy way to replace one >> =A0 component with another - ports replacing base parts are hemorrhoids. >> >> So, they conclude, the base system concept should be eliminated and be >> split to bare kernel and gazillion of packages. >> >> But we all know what benefits base system gives to us: it is actually >> a *system* where all components are in concordance to each other, not >> just a bunch of packages. Also, if it will be all split, this will >> require *much more* efforts from our committers to keep everything in >> sync. And our resources (efforts) are limited. >> >> Actually, when you face two contradictory ways, all-or-nothing, both >> with pros and cons - you should select neither of them, but try to find >> something which will *synthesize* both of them. Such finding is an >> interesting engineering (often inventor) task. And dougb@ already said >> once that between base as-is and splitting all must be something middle. >> It's Cathedral vs Bazaar, after all, and our Cathedral should be updated >> and still use it's cathedral benefits. After all, NetBSD has proposal of >> syspkg in 2004, and still has older format - just because it is not BSD >> way, something new has to be invented. >> >> The most obvious solution is to split base not to ~500 packages, but to, >> say, ~50, and change boundaries. Why should freebsd.org developers place >> boundaries in packages between themselves? So most natural solution is >> to split packages out of base by the vendor criteria. Luckily, this work >> is *already done* to some extent. So this will be minimal efforts >> overhead, if any. >> >> Looking at /usr/src/sontrib and http://wiki.freebsd.org/ContribSoftware >> we can identify many of what could became a package. There can be >> different approaches to criteria "what is in base system": >> >> 1. Only what is done on freebsd.org: all contrib must go to pkgs. >> >> 2. Whose effective vendor is now *@*bsd.org: contrib from other BSDs may >> =A0 still live, and those with ceased upstream or renamed >> =A0 (non-conflicting with ports) soft like libbsdxml, too. >> >> 3. Axe out only the most odious contrib parts: BIND (as Peter said in >> =A0 archives, host/dig could be resurrected from Attic), sendmail (could >> =A0 be replaced by dma) and several others, presumably GCC/binutils & CV= S >> =A0 (I've also heard about painful Kereberos interferencing with Samba). >> >> The latter is most probable :-) given known conservatism and parts >> inter-dependencies (openssl is required by freebsd-update, and it's not >> *@*bsd.org - already an exception). But it still needs clear definition >> of what base system is destined for. >> >> =A0A philosophical observation. The more "fat" base system is, the more >> =A0things are supposed about end user (the "WHEREs" in "SELECT"), so the >> =A0more narrow target audience is. The more thin base system is, the mor= e >> =A0popular OS can be. You elitists may sleep well: FreeBSD will never be >> =A0as popular of Linux whose "rod" is just kernel, not base sys. >> >> So each component of the base must be justified for the task, and for >> task we may be should define to which user FreeBSD is targeted. Let it >> be, say, task "the fresh setuped machine must be able to connect to >> network to download and install binary packages". Then you don't need >> GCC but you need editor to edit resolv.conf, less to view man pages, >> tcpdump to debug network problems, send-pr to report a bug about >> non-installed packages and thus a mail agent able to handle outgoing >> report mail and daily periodic scripts to root while you have sex with >> this (dma is suitable, sendmail is overkill). And so on. >> >> Axing out GCC to packages has another benefit: the newer GCC could be >> used, and base could be polished to be more compiler-agnostic (hello, >> clang). But this requires binary packages to have equal rights with >> ports, of course. A base without a compiler is not a dramatic - you >> already need some ports to do "make release", and doc team already began >> to split docs to packages, that's a right direction. For POLA reasons >> all axed out packages (and sendmail too, respect traditions) should be >> just packaged on CD1. >> >> There may be another approach, not package one, but it is still in a fog >> (and don't solve ports overriding base well). It's like the kernel and >> modules: monolithic base system is just as monolithic kernel before >> invention of modules - you the same way don't know what's in. Let's >> dream a little - imagine we have our own DVCS, combining benefits of >> centralized and distributed one, and not requiring splitting to multiple >> repos like git, but allowing to use any given subset of files (not dirs >> and subtrees as svn, *any* "inode"-based subset) from central repo >> (this one "more equal" from all equal distributed repos). Such system >> could be placed instead freebsd-update, binary updates of STABLE etc. >> go to special branch, and user updates only those files which he have >> on his system, VCS automatically tracks it. >> >> > 5. Too short major releases' cycle. >> >> I've once read a thread: >> >> =A0From: mdf@FreeBSD.org >> =A0Subject: Schedule for releases >> =A0Date: Tue, 21 Dec 2010 09:47:08 -0800 >> >> where e.g. julian@ have said: >> >> =A0| Generally a company wouldn't want to go through the pain of an OS >> =A0| upgrade more than about once in three years and often it's longer.. >> =A0| It IS a pain for them. >> >> And many business people reported the same. And it is known many people >> are doing backports, testing etc., they should be motivated to give work >> back to FreeBSD. While it is more social problem, it is also a >> DVCS/bugtracker problem, but more rare major releases would still help >> on it's own. >> >> It is known why the current scheme was adopted: the 4.11/5.3 case, >> a horror. But between X.4 and X.11 there are even *several* intermediate >> choices. What happens today: many conservative users (or builders of >> products) consider -STABLE is really stable at the X.2 release. But just >> after than an (X+1).0 is forked and all developers' attention goes to >> new branch, X.3 and X.4 are not seriously developed. And due to >> timelines described above, many users will then upgrade right away to >> (X+2).Y, not (X+1). There are many 6.x and 7.x users in the wild, many >> of 7.x users will upgrade directly to 9.x skipping 8.x. Is this good? >> No. >> >> Aside of many branches receive not enought production testing, our >> committers must do MFCs to TWO branches, stable/7 and stable/8. While >> usualy having no real possibility to test properly. Nonsense. >> >> Is supporting two stable branches not using more efforts that it was in >> 4.x times? Not so? Still could be made better. >> >> Proposed solution: prolonging major releases fork time a little. Just to >> time so only one stable branch will exist. I hope increasing branch >> lifetime to one minor release will help: last will be not .4, but .5, >> and new .0 fork should occur at least after .3, not .2. We are not >> Ubuntu. I understand that pace of changes is high, 3 years for each .0 >> may be unacceptable, but waht about at least 2.5 years? Not like 1.8 >> years currently. Rememeber, .5 and even .6 is still far from .11. >> >> > 6. Bug tracker, unicode and other less important trivia. >> >> GNATS is too old and unfriendly e.g. to user attachments. It has only >> one adavantage: user is able to send report from CLI by mail without any >> registration. This is essential. May be the good alternative will be RT >> used at cpan.org (it also accepts by mail). Hopefully this will help >> a little to solving problems. Not sure, though - and unsolved bugs are >> also make users to go away from FreeBSD. >> >> Users also want properly working UTF-8 out-of-the-box. Not only console, >> but full collation support, etc. >> >> There was suggestion about automatic kldloading of drivers, but this >> work already began (for USB) in June - more matte of our documentation >> and press relations, huh. >> >> Installer. Must be more featureful and more user friendly :-) This is >> often may give negative first impression if installer was unable to do >> something even if system after this could work well. >> >> Other problems, like broken cvsup, are exist, but are not critical to >> Project's survival. >> >> > FreeBSD strengths to be concentrated on. >> >> The paragraph about virtualization above, as long as points below, are >> roughly translated words of one small business representative in Russia, >> who often acts as integrator. >> >> 1. BSD License. Very good for embedded vendors, we should be able to >> =A0 compile and work both base and ports without licenses requiring to >> =A0 open the sources. It would be good to not loose functionality withou= t >> =A0 them. >> >> 2. Kernel features for storage (ZFS, HAST, GEOM). We need to go to >> =A0 NAS/SAN solutions niche while we have ability - it is still, because >> =A0 Solaris etc. in unknown state with Oracle, BTRFS still beta. We have >> =A0 about 1 year max. It would be nice to roll out "box" solution for a >> =A0 failover iSCSI storage (2 PCs with ZFS raids replicated by HAST and >> =A0 accessible by iSCSI with automatic role change). >> >> 3. Kernel features for complex network solutions (netgraph, carp, ipfw). >> =A0 The niche for routers & traffic analysis is still ours. It would be >> =A0 nice to take e.g. pfSense and agree with some vendor (Netgear, >> =A0 D-Link, etc) to put on sale hardware with FreeBSD inside. >> >> So these are main ways - embedded (NAS & routers). Other market is still >> not our, e.g. not an application server until there will be a killer-app >> for SCTP. May be also for a DB: Solaris was first recommended for >> PostgreSQL, with some efforts we may become the first. Of course, the >> main way - if some commercial company will offer FreeBSD. >> >> We still have some time, but almost no time. We need to take decisions >> right now. >> >> >> That's all for today. Thanks to everyone who has patience to carefully >> read this all entirely. >> >> -- >> WBR, Vadim Goncharov. ICQ#166852181 =A0 =A0 =A0 mailto:vadim_nuclight@ma= il.ru >> [Moderator of RU.ANTI-ECOLOGY][FreeBSD][http://antigreen.org >> ][LJ:/nuclight] >> >> _______________________________________________ >> freebsd-arch@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arch >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >> > > > > -- > *Pirabarlen Cheenaramen *| $3|v3n* * > L'escalier, Mauritius > > > /*memory is like prison*/ > (user=3D=3Dselven)?free(user):user=3Dmalloc(sizeof(brain)); > P Save electricity & disk space. Cat this mail to >/dev/null 2>&1 after u= se. > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon1%2Bzn2Kghqm6MnJdKZ64H5BM%2BXTiaVaPrt6x5eLJgepQ>