You are not logged in.

#1 2011-04-12 09:37:30

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Replacing GNU with other stuff

Hi all I just made a package for fun replacing GNU coreutils with corresponding busybox utilitiies.

https://aur.archlinux.org/packages.php?ID=48187

To my great surprise, I could boot and login to KDE on my experimental system! It would be great if others also would like to play with this and suggest improvements.

What other GNU stuff in base and/or base-devel might be possible to replace?

Other alternatives han busybox? Heirloom? 9base?

EDIT: a Freudian mispelling of "busybox"

Last edited by W.F.Cody (2011-04-19 19:55:53)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#2 2011-04-12 10:33:26

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Replacing GNU with other stuff

Why do you want to do this?

Offline

#3 2011-04-12 10:35:40

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Replacing GNU with other stuff

You can probably replace most of them. Not bash though cause the initscripts contain bashisms. There was an effort to get rid of them but in the end it was decided it was worthless.
See https://bugs.archlinux.org/task/16807 for groff, GCC with LLVM, Glibc with Eglibc and Gawk with Mawk (like Debian does), GRUB with Syslinux are the ones i remember offhand.


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#4 2011-04-12 12:11:48

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

@Ramses

Mostly because of curiosity "can it be done?"
The second motivation could be pro-choice pro-diversity sentiments (after all one thing that makes Arch great is customization and the fewer "compulsory" packages the better).

EDIT: Another potential use, at least for base2busybox replacement packages is that one could make a meta-package where all packages that can be replaced by corresponding Busybox symlinks get replaced. This will give you a truly light-weight and minimal system (some people like that, and replacing coreutils with Busybox will save you approx 16MiB (!)).

Last edited by W.F.Cody (2011-04-19 17:20:58)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#5 2011-04-19 10:39:29

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

For the adventourous out there:

I have just uploaded a gnu2heirloom coreutils package (some backup from busybox needed) with the "posix2001" profile. Other profiles ["sysv", "posix", "ucb" and "s42"] can relatively easily be made following the same procedure.

I will test booting my experimental system with this package this evening.
Feel free to play, and feedback is welcome smile

https://aur.archlinux.org/packages.php?ID=48339

EDIT: I tested it, and this package is also able to boot. There are some functions of coreutils that are not covered by Heirloom or Busybox which may lead to trouble in some cases but I have not noticed anythin yet.
Have fun!

Last edited by W.F.Cody (2011-04-19 15:27:26)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#6 2011-04-20 09:08:14

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

I put up a wiki for base2busybox if people are interested in evolving this idea smile
https://wiki.archlinux.org/index.php/Base2busybox


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#7 2011-04-20 09:29:16

upsidaisium
Member
From: Vietnam
Registered: 2006-09-16
Posts: 263
Website

Re: Replacing GNU with other stuff

Ramses de Norre wrote:

Why do you want to do this?

Some people don't necessarily like coreutils (or much of anything from GNU).

9base or the userland from one of the BSDs would be nice.


I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!

Offline

#8 2011-04-20 09:56:24

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

upsidaisium wrote:
Ramses de Norre wrote:

Why do you want to do this?

Some people don't necessarily like coreutils (or much of anything from GNU).

9base or the userland from one of the BSDs would be nice.


That can indeed also be a reason to try replacing stuff. Personally, I am just in favour of the ability to choose and a "monoculture" is always bad (after all, pretty boring that all linux distributions except embedded ones are GNU/Linux distributions). I am personally not per se anti GNU but I would still like to see more diversity.

For a BSD/Linux variant: the ucb profile* of gnu2heirloom should be pretty close to this and is one package I am going to try to assemble relatively soon. On top of that, there are a number of other interesting BSD things, like elftoolchain (I have tried to package this but failed, up for grabs if someone want it wink ) as an alternative to binutils and Clang-compiled linux kernel (https://github.com/lll-project).

* in contrast to the others, this one is not a complete profile so I am going to put the binaries in the following priority order ucb>posix2001>s42>posix>5bin to ensure an as modern environment as possible.


I have also played with the idea of a 9base or headless plan9port replacement. The problem here is that a lot of coreutils-corresponding binaries are not present.
One posibility here is p9base/busybox variant like for heirloom, or to add p9base on top of the ucb profile of heirloom (some packages, most notably md5sum is absent from Heirloom but will be provided by p9base). It would be cool if such a hybrid package could be busybox-independent...

other interesting alternatives are
asmutils (tried to package this one, but failed - up for grabs wink )
ast (http://www2.research.att.com/sw/download/) (AT&T UNIX userland)
ppt : Perl Power Tools - a *nix re-implementation written in Perl: https://aur.archlinux.org/packages.php?ID=48392
Goblin: a *nix/9base re-implementation written in Go: https://aur.archlinux.org/packages.php?ID=48413

Last edited by W.F.Cody (2011-04-22 04:19:36)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#9 2011-04-21 13:54:00

danthux
Member
From: Concepción, Chile
Registered: 2007-11-18
Posts: 12
Website

Re: Replacing GNU with other stuff

anyway, remember that to GNU Project doesn't matter where the software come from, ***as it stays free/libre as in freedom*** forever (including derivatives). that is critical to all of us who want to keep beneficing from floss projects like all the tools we/you use and are talking about.


Business model FTW: Free2Play GNU/Affero GPL MMORPG Ryzom (more info)

Offline

#10 2011-04-21 17:54:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Replacing GNU with other stuff

I've often wanted to port the BSD userland to linux. It's unfortunately not a straight forward job.

Someone, anyone... feel free to beat me to it: http://gitorious.org/freebsd

Last edited by falconindy (2011-04-21 17:55:53)

Offline

#11 2011-04-22 07:46:47

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

falconindy wrote:

I've often wanted to port the BSD userland to linux. It's unfortunately not a straight forward job.

Someone, anyone... feel free to beat me to it: http://gitorious.org/freebsd


It would indeed be cool smile
As far as I understood it, the sta.li userland was basically 100% openBSD

Perhaps Net/Open BSDs are easier to port to Linux than FreeBSD utilities?

Another thing that would be very cool is Solaris/Illumos userland ported to Linux
https://github.com/illumos/illumos-gate


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#12 2011-04-25 06:40:13

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

upsidaisium wrote:

9base or the userland from one of the BSDs would be nice.

I have now put up a wiki for

base2busybox: https://wiki.archlinux.org/index.php/Base2busybox

base2heirloom: https://wiki.archlinux.org/index.php/Base2heirloom

base2plan9: https://wiki.archlinux.org/index.php/Base2plan9

The things that still need to be done is to try to get them as independent of each other as possible. For the plan9 one, I think we always have to look at it more as an extension of the gnu2heirloom project (a low overlap between plan9port and coreutils), but it would be nice to at least make the gnu2heirloom and gnu2plan9 projects independent of busybox to make it a bit more diverse.

If some missing utilities could be implemented as scripts, that would be very cool... feedback welcome smile


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#13 2011-04-27 01:55:58

Superewza
Member
Registered: 2011-04-25
Posts: 18

Re: Replacing GNU with other stuff

upsidaisium wrote:
Ramses de Norre wrote:

Why do you want to do this?

Some people don't necessarily like coreutils (or much of anything from GNU).

9base or the userland from one of the BSDs would be nice.

I don't mind most of the GNU stuff, but a decent alternative to GRUB would be nice...

Offline

#14 2011-04-28 12:46:58

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

Superewza wrote:

I don't mind most of the GNU stuff, but a decent alternative to GRUB would be nice...

What do you mean by "decent"?

LILO: https://wiki.archlinux.org/index.php/Lilo
extlinux: https://wiki.archlinux.org/index.php/Extlinux

For bootloaders, I think there is sufficient choice and GRUB is hardly "mandated" in the base system at the moment.

Currently, I am quite surprised how much the system can be pounded at without breaking... I got some ideas to make the busybox, heirloom and plan9 replacement projects more independent of each other. Everything that can not be replaced by an independent alternative utility is to be considered a bug wink

Personally I believe that the only thing that will not be possible to change is glibc (eglibc does not count since it is just a "spork"). If musl libc manages to reach binary compatibility - perhaps...


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#15 2011-04-28 12:57:13

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: Replacing GNU with other stuff

Why would you actually replace GRUB? Is it so horrible? What do you guys do with your bootloaders that requires some fancy-shmancy feature GRUB doesn't support?

Offline

#16 2011-04-28 16:23:05

Grinch
Member
Registered: 2010-11-07
Posts: 265

Re: Replacing GNU with other stuff

Gotta ask the same question, what is so bad with GRUB? I'm dual-booting Linux and Haiku on my systems for ages and GRUB has served me well for this purpose (same back when I was dual-booting Linux, Haiku, XP).

Offline

#17 2011-04-28 16:34:48

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Replacing GNU with other stuff

Ramses de Norre wrote:

Why do you want to do this?

Maybe he wants to be able to refer to his system as "Linux" instead of "GNU/Linux" without fear of Stallman breaking down his door at 3 in the morning to beat him savagely with the head of a dead wildebeest.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#18 2011-04-29 05:58:20

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

Xyne wrote:

Maybe he wants to be able to refer to his system as "Linux" instead of "GNU/Linux" without fear of Stallman breaking down his door at 3 in the morning to beat him savagely with the head of a dead wildebeest.

Hehehe. Definitely a quotable post smile

On the serious note though. I am personally not so concerned about the political stuff (licencing, "Linux" vs "GNU/Linux" etc) and I think we all agree that free software is the best thing ever. I can however appreciate the advantages of permissive licences compared to copyleft ones WRT licence incompatibility issues (which is stupid since most of them in spirit are the same - EPL vs GPL, CCDL vs GPL etc...). I am also not particularly anti-FSF/GNU as such. I much rather like to think in positive terms (pro-diversity) rather than negative terms (anti-GNU, anti-MS, anti whatever).

My personal reasons to start these 3 projects were to offer choice for those that want to try something different or who for one or other reason do not feel comfortable with the default. Most likely each of these tracks will need to grow evolutionarily, adapting to the various problems that arise based on that the system assumes GNU-specific behaviour. How far they go and how extensively they will be able to modify the base system depends on the needs and wishes from their users (it is for example very likely that alternative init scripts etc could be made for the alternative default shells ash, jsh and rc to replace Bash, but lots of other things in the system also assume sh=Bash which then will lead to a need to develop alternatives also for those...). A bash2zsh project could also be interesting...

If I am anti something it would be the monoculture among desktop systems (after some years of distro hopping you notice that they are (basically) all the same... which is a bit sad).


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#19 2011-04-30 09:45:16

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Replacing GNU with other stuff

update: One large step towards having Clang as a viable alternative to GCC was just confirmed to be working (I write from the Clang-compiled kernel at the moment)

https://bbs.archlinux.org/viewtopic.php?id=113533


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

Board footer

Powered by FluxBB