Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo/FreeBSD: Testers welcome!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Fri Apr 15, 2005 7:56 pm    Post subject: Gentoo/FreeBSD: Testers welcome! Reply with quote

Gentoo/FreeBSD: Testers welcome!

Last updated: 2005-09-03

Note: This page is outdated now. To install Gentoo/FreeBSD, please follow the official documentation on this page.

Note that as of now, development of Gentoo/FreeBSD 6.0 has only just started. (Read: Don't try this with FreeBSD 6.0!)

0. Preamble

This post will show you how to install Gentoo/FreeBSD, which is a port of Gentoo (Portage, baselayout, initscripts etc) to FreeBSD.

GWN 07 Feb 2005 wrote:

The Gentoo/FreeBSD project, as its name implies, is an effort to have the whole set of Gentoo components running on top of a FreeBSD base system. This means that, for example, instead of having a Linux kernel and GNU LibC, one will have FreeBSD's kernel and FreeBSD's LibC.


Notes:


  1. This project is still in its infancy. Only try this if you are willing to test and report bugs. Look at section "6.4: Bug Squashing", for the bug-reporting resources.

  2. Since this thread was created, a lot of progress has been made on Gentoo/FreeBSD, mostly the effort of Diego "Flameeyes" Patteno. Thanks to him, a lot of the patched stuff has been moved from the overlay directly into the mainline Portage tree. Good work, flameeyes!

    You can read the latest updates on Gentoo/FreeBSD on flameeyes' blog directly. It is also mirrored on Planet Gentoo.

  3. If you have contributions related to freebsd-baselayout, such as new initscripts and configuration files, file a bug and assign it to spb@gentoo.org. Include the file(s) to be contributed as attachment to the bug.

  4. Debates on the merits of Gentoo against FreeBSD go into the flamewar threads in section "6.3: Gentoo vs. FreeBSD Flamewars", not this thread.

  5. Sections 1 and 2 are shamelessly copied from the Gentoo/FreeBSD official installation page.




1. What is FreeBSD?
Quote:

FreeBSD is a free (license), Unix-like operating system. Back in 1993 when development of 386BSD stopped, two projects were born: NetBSD, commonly known to run on a huge number of architetures and FreeBSD which focuses mainly on the x86 platform. FreeBSD is renowned for its stability, performance and security, thus being used from small to huge companies all over the world. FreeBSD's current production release version is 5.3, which is also used as the foundation for the Gentoo/FreeBSD project.



2. Similarities and Differences between Linux and FreeBSD
Quote:

Users migrating from Linux to FreeBSD commonly consider the two operating systems "almost the same". In fact, FreeBSD really shares a lot of similarities with Linux distributions in general. Nevertheless, it has some key differences that are worth noting:


  • Contrary to Linux, which actually only refers to the kernel, FreeBSD is a complete operating system, consisting of a C library, userland tools and much more. This development approach makes the overall system very consistent.

  • Contrary to the Linux kernel, FreeBSD development is not led by one person, but instead managed by a small group of people called the "Core Team".


Besides that, FreeBSD also has some technical differences which set it apart from Linux.


  • Dynamically linked executables are not linked against libdl, like in Linux + glibc systems. Instead they are linked against libc.

  • FreeBSD doesn't have an official tool for kernel compilation, thus you'll have to resolve feature dependecies on your own.

  • FreeBSD uses UFS/UFS-2 as its filesystems and has no support for e.g. ReiserFS.




3. Installing Gentoo/FreeBSD

You will need to install FreeBSD first using a FreeBSD install CD.


  1. Please use the FreeBSD mirror database to select the closest mirror. Download and burn the CD image to disc.

  2. Since we are going to perform a Minimal installation of FreeBSD, we will only need the 5.3-RELEASE-i386-bootonly.iso image. This is a 20MB liveCD ISO that will let us download the base FreeBSD system from the Internet.

  3. Boot the CD and the FreeBSD installation program (sysinstall) will start automatically.

  4. For the exact installation steps, we refer you to the excellent FreeBSD Installation Handbook. You may find it as good as Gentoo's. ;) Only important installation choices are mentioned below.

    Notes:


    1. If you plan on dual booting Gentoo, it's recommend to leave grub installed and do not install FreeBSD's boot loader. While it may be possible to boot Linux with FreeBSD's boot loader, we've never heard of anyone doing it successfully.

      A suggestion to dual-boot using FreeBSD's bootloader comes from petrasl. I have not tested this.

      petrasl wrote:

      There is a way to help the FreeBSD boot loader to boot to linux : you only need to install from the Linux distibution lilo or grub on the boot sector of the Linux partition (e.g. /dev/hda2). Now FreeBSD boot loader will load lilo or grub and then - one of those boot loader - will boot linux as we know.


    2. The example for booting FreeBSD partitions in /boot/grub/grub.conf.example does not work. This is because FreeBSD versions 5.1 and above use UFS2, which grub does not support, as the default filesystem. Therefore we need to use grub's chainloader feature to boot the FreeBSD loader.

      The section you need to add into grub.conf will look like this:

      Code:

      title=FreeBSD 5.3
      root (hd0,1)
      chainloader (hd0,1)+1


      The above assumes FreeBSD is installed in /dev/ad0s3, which is /dev/hda3 in Linux.



  5. At the "Choose Distributions" screen, select "Minimal" to install only the base distribution.


Once the installation is complete, convert it into a Gentoo/FreeBSD system.


  1. Create the Portage group and user.

    Code:

    # pw groupadd portage -g 250
    # pw useradd portage -u 250 -g 250 -s /sbin/nologin -d /nonexistent


  2. Optional: If your network uses a HTTP proxy, export the http_proxy variable.

    Code:

    # setenv http_proxy http://your.proxy.server.name:port/
    # echo setenv http_proxy http://your.proxy.server.name:port/ >> /etc/csh.cshrc


  3. Download and extract the Gentoo/FreeBSD snapshot.

    Code:

    # ftp http://dev.gentoo.org/~ka0ttic/fbsd/gentoo-fbsd-20041111.tar.bz2
    # tar xvjpf gentoo-fbsd-20041111.tar.bz2 -C /


    Extra info: The installed packages in the snapshot are:

    Code:

    autoconf-2.13
    autoconf-2.59-r6
    autoconf-wrapper-2-r1
    automake-1.4_p6
    automake-1.5
    automake-1.6.3
    automake-1.7.9-r1
    automake-1.8.5-r3
    automake-1.9.5
    automake-wrapper-1-r1
    bash-3.0-r7
    cronbase-0.3.2
    expat-1.95.8
    freebsd-baselayout-0.2-r2
    freebsd-bin-5.3.20050301-r1
    freebsd-binutils-2.15
    freebsd-contrib-5.3.20050301
    freebsd-crypto-5.3-r1
    freebsd-gcc-3.4.2
    freebsd-headers-5.3.20050301
    freebsd-lib-5.3.20050301-r1
    freebsd-libexec-5.3.20050301
    freebsd-mk-defs-5.3
    freebsd-share-5.3.20050301
    freebsd-sources-5.3
    freebsd-ubin-5.3.20050301
    freebsd-usbin-5.3.20050301
    gawk-3.1.4-r4
    gnuconfig-20050324
    libperl-5.8.6
    m4-1.4.2-r1
    make-3.80-r2
    patch-2.5.9-r1
    perl-5.8.6-r4
    popt-1.7-r1
    portage-2.0.51-r12
    python-2.3.5
    python-fchksum-1.7.1
    rsync-2.6.4
    sed-4.1.2-r1
    wget-1.9.1-r2


  4. Optional: Switch to the bash shell instead of the default C shell.

    Code:

    # echo /bin/bash >> /etc/shells
    # chsh -s /bin/bash
    # logout


    Optional: If you exported the http_proxy variable for the C shell earlier, you will need to re-export it for bash.

    Code:

    # export http_proxy=http://your.proxy.server.name:port/
    # echo export http_proxy=http://your.proxy.server.name:port/ >> /etc/profile


  5. Next, checkout the latest Portage overlay using CVS.

    Code:

    # cvs-d:pserver:anonymous@zarquon.twobit.net:/var/cvsroot -q -z9 co -R gentoo-projects/bsd/


  6. Create the Portage overlay directory, and then copy the overlay files into it. The suggested location is /usr/local/portage.

    Code:

    # mkdir /usr/local/portage
    # cp -rv gentoo-projects/bsd/fbsd/overlay /usr/local/portage


  7. Set the make.profile symlink to the FreeBSD profile.

    Code:

    # ln -sf /usr/local/portage/overlay/profiles/default-bsd/fbsd/5.3 /etc/make.profile


  8. Now, edit make.conf. However, please read the following advice and warning first.

    Note: We will use vim as our editor. Those who want something similar to nano can use ee instead.

    Code:

    # vi /etc/make.conf


    Advice: Insert the SYNC and GENTOO_MIRRORS variables, and set these to your preferred servers. If you have changed the overlay directory from the one suggested, adjust the PORTDIR_OVERLAY variable to point to your actual overlay directory. You can also change the FETCHCOMMAND and RESUMECOMMAND to use wget (included in the Gentoo/FreeBSD snapshot) as the downloader. In that case, refer to /etc/make.conf.example for the correct settings of these variables.

    Warning: Setting PORT_LOGDIR is known to cause emerge to freeze. Also, do not change the CFLAGS, CXXFLAGS, USE and FEATURES variables, unless you really know what you are doing. Gentoo/FreeBSD is still not very stable, and even fairly conservative settings, other than what is already preset, can cause problems.

  9. When you're done with editing make.conf, download the latest Portage snapshot. The latest snapshot as of this post is portage-20050422.tar.bz2, so we will use that as our example.

    Code:

    # wget http://gentoo.osuosl.org/snapshots/portage-20050422.tar.bz2
    # tar xvjpf portage-20050422.tar.bz2 -C /usr


  10. After that, sync the Portage tree.

    Code:

    # emerge --sync


  11. Edit /etc/portage/package.mask to mask out packages which are in the overlay, but have newer versions in the Portage tree. If you do not do this, the versions of these packages that are patched to work on Gentoo/FreeBSD will not be emerged.

    Code:

    # vi /etc/portage/package.mask


    Note: Again, many, many thanks go to flameeyes for making this package.mask smaller and smaller with each CVS commit. Some day, it will totally disappear. ;)

    Here's my package.mask:

    Code:

    >media-libs/giflib-4.1.0-r4
    >media-libs/imlib-1.9.14-r2
    >media-libs/libpng-1.2.5-r9
    >net-mail/fetchmail-6.2.5-r2


  12. Rebuild the system packages.

    Code:

    # emerge -eva system


  13. If there are any errors, try to ignore the offending package and continue, as most of these are known bugs as listed in section "5. Known Issues".

    Code:

    # emerge --resume --skipfirst


  14. It is advisable to repeat emerge -e system at least 2 more times, and finally run emerge -e world to make sure that everything is properly built.

  15. When finished with emerge, we will have to update our configuration files. The preferred way to do this is to use dispatch-conf.

    Edit /etc/dispatch-conf.conf to your own preferences. After that, create the /etc/config-archive directory and run dispatch-conf.

    Warning: BSD diff seems to use somewhat different options compared to GNU diff, and this breaks the look-merge and toggle-merge functions in dispatch-conf. Your only usable options, when prompted, will be to either replace the old config file with the new one, or reject the new file and keep the old one. If anyone can figure out how to make BSD diff work with dispatch-conf, please PM me and this paragraph will be amended accordingly. :)

    Code:

    # ee /etc/dispatch-conf.conf
    # mkdir /etc/config-archive
    # dispatch-conf


  16. Configure the Gentoo initscripts as described in section "4. Configuring Gentoo/FreeBSD".

  17. Lastly, reboot to see the full effect of the new baselayout.

    Code:

    # shutdown -r now






4. Configuring Gentoo/FreeBSD

4.1: Network

Note: This paragraph assumes a ethernet + DHCP configuration. Initscripts for other types of internet connections are on the way. For now, non-ethernet users should use the normal FreeBSD initscripts in /etc/rc.d to start their network link.


  1. Create the file /etc/conf.d/net and edit it as necessary. The format is exactly the same as the /etc/conf.d/net file in Gentoo Linux.

    Code:

    # vi /etc/conf.d/net


    My /etc/conf.d/net:
    (Note the whitespace around "dhcp".)

    Code:

    ifconfig_rl0=( "dhcp" )


  2. After that, comment out the ifconfig_rl0 line in /etc/rc.conf, as it will clash with your setting in /etc/conf.d/net, causing the net.rl0 initscript to fail.

    Code:

    # vi /etc/rc.conf


    Inside the file, put a # as the first character in this line:

    Code:

    ifconfig_rl0="DHCP"


  3. Lastly, add the net.rl0 script to the default runlevel.

    Code:

    # rc-update add net.rl0 default



4.2: syscons

The syscons initscript controls settings such as keymap, keypress repeat rate, screensaver type and timeout.

Read the /etc/init.d/syscons initscript to find out what variables it sets. Then copy the corresponding variables from /etc/rc.conf into /etc/conf.d/syscons, and comment out those in /etc/rc.conf. In /etc/conf.d/syscons, change all the variable names added into UPPERCASE.

This is my /etc/cond.d/syscons.

Code:

# $Header: /var/cvsroot/gentoo-projects/bsd/fbsd/freebsd-rcscripts/etc/conf.d/syscons,v 1.1 2005/01/18 23:49:54 spb Exp $

# Example syscons config file. This is the place to set things like keymap, etc.
KEYMAP="us.iso"
BLANKTIME="7200"
FONT8x16="swiss-8x16"
FONT8x8="swiss-8x8"
KEYRATE="fast"
SAVER="logo"


syscons is started automatically at bootup.

4.3: moused

If you configured moused (the FreeBSD version of gpm) to start automatically at boot, here's how to enable it using a Gentoo initscript:

  1. Download the moused initscript and configuration file from developer bcowan's webspace. Then make the initscript executable and move both files to their correct locations.

    Code:

    # wget http://dev.gentoo.org/~bcowan/mouse/etc/init.d/moused
    # chmod +x moused
    # mv moused /etc/init.d
    # wget http://dev.gentoo.org/~bcowan/mouse/etc/conf.d/moused
    # mv moused /etc/conf.d


  2. Edit /etc/conf.d/moused and copy the settings from the corresponding variables in /etc/rc.conf.

    My /etc/conf.d/moused:

    Code:

    moused_type="auto"       # See man page for rc.conf(5) for available settings.

    moused_port="/dev/psm0" # Set to your mouse port.

    moused_flags="-3"         # Any additional flags to moused.

    mousechar_start=""      # if 0xd0-0xd3 default range is occupied in your
                            # language code table, specify alternative range
                            # start like mousechar_start=3, see vidcontrol(1)


  3. Then add moused to the default runlevel.

    Code:

    # rc-update add moused default




5. Known Issues

Emerging some of the freebsd-* packages may halt with an error of "incorrect file size". This problem is especially noticable with the freebsd-sources distfiles.

Status: Not fixed.
If this happens, regenerate the digest for the package's ebuild, and resume the merge.

Code:

# ebuild /path/to/ebuild digest
# emerge --resume


For example, if sys-kernel/freebsd-sources fails with this error:

Code:

# ebuild /usr/local/portage/overlay/sys-kernel/freebsd-sources-5.3.ebuild digest
# emerge --resume


The following packages are currently broken:

  1. freebsd-sbin-5.3.20050301-r1: Complier error as shown below.

    Code:

    ===> gvinum
    Warning: Object directory not changed from original /var/tmp/portage/freebsd-sbin-5.3.20050301-r1/work/sbin/gvinum
    gcc -mtune=i386 -O2 -pipe -pipe  -I/usr/src/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c gvinum.c
    gcc -mtune=i386 -O2 -pipe -pipe  -I/usr/src/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/sys/geom/vinum/geom_vinum_share.c
    gvinum.c: In function `gvinum_parityop':
    gvinum.c:672: warning: implicit declaration of function `gv_roughlength'
    gvinum.c:672: warning: format argument is not a pointer (arg 3)
    *** Error code 1
    1 error
    *** Error code 2
    1 error


    Status: Not fixed.
    Resume the emerge process but skip this package, using emerge --resume --skipfirst
  2. cronbase-0.3.2: Directory creation error as shown below.

    Code:

    >>> Install cronbase-0.3.2 into /var/tmp/portage/cronbase-0.3.2/image/ category
    sys-process
    install: cron: Invalid argument
    touch: /var/tmp/portage/cronbase-0.3.2/image///var/spool/cron/.keep: No such file or directory


    Status: Not fixed.
    Add the cron group and user manually, then restart merging of the package:

    Code:

    # pw groupadd cron -g 16
    # pw useradd cron -g 16 -u 16 -s /sbin/nologin -d /var/spool/cron
    # emerge --resume


  3. bash-3.0-r9: Segfaults after the configure phase.

    Status: Not fixed.
    Resume the emerge process but skip this package, using emerge --resume --skipfirst

  4. ncurses-5.4-r6: Build dies during emake phase with this error:

    Code:

    cd progs && make DESTDIR="" sources
    cd: can't cd to progs
    cd tack && make DESTDIR="" sources
    cd: can't cd to tack
    cd panel && make DESTDIR="" sources
    cd: can't cd to panel
    cd menu && make DESTDIR="" sources
    cd: can't cd to menu
    cd form && make DESTDIR="" sources
    cd: can't cd to form
    cd test && make DESTDIR="" sources
    cd: can't cd to test
    cd misc && make DESTDIR="" sources
    cd: can't cd to misc
    cd c++ && make DESTDIR="" sources
    cd: can't cd to c++


    Status: Not fixed.
    Resume the emerge process but skip this package, using emerge --resume --skipfirst


Portage cannot clean the install image directory when packages install setuid files into it. You may see messages similar to these:

Code:

rm: /var/tmp/portage/freebsd-libexec-5.3.20050301/image/libexec/ld-elf.so.1: Ope
ration not permitted
rm: /var/tmp/portage/freebsd-libexec-5.3.20050301/image/libexec: Directory not e
mpty
rm: /var/tmp/portage/freebsd-libexec-5.3.20050301/image: Directory not empty


Status: Fixed.
Use the patched version of portage and freebsd-baselayout in the overlay. Mask out all newer versions in package.mask.

After the patched portage and freebsd-baselayout are merged, these messages should no longer appear.


6. Resources

6.1: Essential Reading



6.2: Other Articles



6.3: Gentoo vs. FreeBSD Flamewars



6.4: Bug Squashing


  • Gentoo Bugzilla - file the bug against "Gentoo BSD"

    Note: If you have contributions related to freebsd-baselayout, such as new initscripts and configuration files, file a bug and assign it to spb@gentoo.org. Include the file(s) to be contributed as attachment to the bug.

  • Join us in #gentoo-bsd on irc.freenode.net


Last edited by kimchi_sg on Sun Sep 04, 2005 9:03 am; edited 29 times in total
Back to top
View user's profile Send private message
sae
n00b
n00b


Joined: 09 Apr 2005
Posts: 16
Location: Lund, Sweden

PostPosted: Thu Apr 21, 2005 1:54 pm    Post subject: Reply with quote

Will test under the summer...
To many exams now :roll:
_________________
"The purpose of computing is insight, not numbers." - Hamming
- AMD athlon 64x2 4600+, 3GB -
Back to top
View user's profile Send private message
JeffW_
Retired Dev
Retired Dev


Joined: 19 Sep 2004
Posts: 80
Location: Fremont CA, USA

PostPosted: Thu Apr 21, 2005 2:45 pm    Post subject: Reply with quote

I'm sorry... I'm all for porting stuff and making it work with other things, but why Gentoo on FreeBSD? That's like replacing Explorer on Windows XP with Finder from MacOS X. I could see getting portage running under FreeBSD, to compliment ports, actually... no I couldn't. It is an interesting topic, I'll give you that.
_________________
JeffWalter
Back to top
View user's profile Send private message
antik
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 212

PostPosted: Fri Apr 22, 2005 3:15 am    Post subject: Reply with quote

Whats wrong with freebsd ports/pkg system? I cant see any good reason to switch to portage.
_________________
"Yes, I know Linux runs faster, but they can do that because they have thrown out the weight of the airbag, collision frame and safety belt." —Poul-Henning Kamp
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Fri Apr 22, 2005 8:07 pm    Post subject: Reply with quote

I'll test it on VirtualPC :P
_________________
User #29433
Back to top
View user's profile Send private message
sp0rk173
n00b
n00b


Joined: 01 Dec 2003
Posts: 6

PostPosted: Fri Apr 22, 2005 9:40 pm    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

kimchi_sg wrote:

Create the file /etc/conf.d/net and edit it as necessary. The format is exactly the same as the /etc/conf.d/net file in Gentoo Linux, with one big difference: The network interfaces are named rlX (rl0, rl1, etc), not ethX.


Yeah, no. Network devices in FreeBSD are not named rl*, they're named after the network driver they use, eg. rl, dc, xl, and so on. rl is just one particular driver. See here. Also, is this project going to re-implement the entire rc system on freebsd to use gentoo's init.d system? Or are you mapping /etc/init.d to $PREFIX/etc/rc.d? I can understand using /etc/init.d for added packages, but why things like network configuration? That's set up at install for you automatically, as are a lot of things in /etc/rc.conf - and a lot more simply than /etc/init.d and /etc/conf.d are in gentoo.

Also, i think this project would be better served if it were geared towards DragonFlyBSD, which as of late does not have it's own package manager. This is an ideal chance for portage to move to some place it's actually needed, as opposed to someplace it's mostly not welcome.

Port portage to DragonFly and create yourself a binary package repository that does weekly builds, and you might see DragonFly people embrace this project.
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Fri Apr 22, 2005 10:38 pm    Post subject: Reply with quote

what are the differences between the package management tools available to Freebsd and Portage anyway? I'm interested in trying Freebsd on my laptop and I think it would be helpful to know how Portage differs from Ports in terms of functionality.
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Sat Apr 23, 2005 2:27 am    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

sp0rk173 wrote:
kimchi_sg wrote:

Create the file /etc/conf.d/net and edit it as necessary. The format is exactly the same as the /etc/conf.d/net file in Gentoo Linux, with one big difference: The network interfaces are named rlX (rl0, rl1, etc), not ethX.

Yeah, no. Network devices in FreeBSD are not named rl*, they're named after the network driver they use, eg. rl, dc, xl, and so on. rl is just one particular driver.

Explainatory blurb removed for the time being.
sp0rk173 wrote:
Also, is this project going to re-implement the entire rc system on freebsd to use gentoo's init.d system? Or are you mapping /etc/init.d to $PREFIX/etc/rc.d? I can understand using /etc/init.d for added packages, but why things like network configuration? That's set up at install for you automatically, as are a lot of things in /etc/rc.conf - and a lot more simply than /etc/init.d and /etc/conf.d are in gentoo.

"Simply" is a very relative term. There are people who will disagree with your assessment.
sp0rk173 wrote:

Also, i think this project would be better served if it were geared towards DragonFlyBSD, which as of late does not have it's own package manager. This is an ideal chance for portage to move to some place it's actually needed, as opposed to someplace it's mostly not welcome.

Port portage to DragonFly and create yourself a binary package repository that does weekly builds, and you might see DragonFly people embrace this project.

Please read this GWN article for a summary of our project goals.
Quote:

The Gentoo/FreeBSD project, as its name implies, is an effort to have the whole set of Gentoo components running on top of a FreeBSD base system. This means that, for example, instead of having a Linux kernel and GNU LibC, one will have FreeBSD's kernel and FreeBSD's LibC.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Sat Apr 23, 2005 3:47 am    Post subject: Reply with quote

Bump. Formatting improvements. Also, updated package.mask and known issues status.

EDIT: Sub-bump. Added forums.g.o flamewar links and config file updating.
Back to top
View user's profile Send private message
antik
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 212

PostPosted: Sat Apr 23, 2005 10:48 am    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

kimchi_sg wrote:

Code:

# wget http://gentoo.osuosl.org/snapshots/portage-20050422.tar.bz2
# tar xvjpf portage-20050422.tar.bz2 -C /usr




wget has multiple vulnerabilities, use fetch instead.
_________________
"Yes, I know Linux runs faster, but they can do that because they have thrown out the weight of the airbag, collision frame and safety belt." —Poul-Henning Kamp
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Sat Apr 23, 2005 10:59 am    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

antik wrote:

kimchi_sg wrote:

Code:

# wget http://gentoo.osuosl.org/snapshots/portage-20050422.tar.bz2
# tar xvjpf portage-20050422.tar.bz2 -C /usr


wget has multiple vulnerabilities, use fetch instead.

Ah, but the wget we use is from the Gentoo/FreeBSD snapshot. It is of version 1.9.1-r2, and hence not affected by the vulnerabilities.
Code:

% ls /mnt/fbsd/var/db/pkg/net-misc/ | grep wget
wget-1.9.1-r2

The main reason for using wget is its verbosity, people who do not desire this can use fetch.

Also, I've updated the make.conf configuration part to discuss the use of wget as the FETCHCOMMAND.

Edit: Added the Gentoo/FreeBSD snapshot package list for those curious to know.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Sat Apr 23, 2005 2:00 pm    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

sp0rk173 wrote:
Also, i think this project would be better served if it were geared towards DragonFlyBSD, which as of late does not have it's own package manager. This is an ideal chance for portage to move to some place it's actually needed, as opposed to someplace it's mostly not welcome.

Port portage to DragonFly and create yourself a binary package repository that does weekly builds, and you might see DragonFly people embrace this project.
Most of the work we've done for this is applicable to any of the BSDs, it's just that at the moment FreeBSD provides the best platform for developing on. I've played with it on Dragonfly, but unfortunately it had some major issues with Python, so making Portage run was a bit problematic.
Back to top
View user's profile Send private message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Sun Apr 24, 2005 10:42 am    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

kimchi_sg wrote:
Notes:

If you plan on dual booting Gentoo, it's recommend to leave grub installed and do not install FreeBSD's boot loader. While it may be possible to boot Linux with FreeBSD's boot loader, we've never heard of anyone doing it successfully.



The FreeBSD boot loader can boot to linux, but normally it doesn't... It can identify the linux partition, but it have no idea what to do : it can't find the "stage one" (/boot/boot1) or something silmilar on the linux partition.

There is a way to help the FreeBSD boot loader to boot to linux : you only need to install from the Linux distibution lilo or grub on the boot sector of the Linux partition (e.g. /dev/hda2). Now FreeBSD boot loader will load lilo or grub and then - one of those boot loader - will boot linux as we know.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Sun Apr 24, 2005 3:20 pm    Post subject: Re: Gentoo/FreeBSD: Testers welcome! Reply with quote

petrasl wrote:
There is a way to help the FreeBSD boot loader to boot to linux : you only need to install from the Linux distibution lilo or grub on the boot sector of the Linux partition (e.g. /dev/hda2). Now FreeBSD boot loader will load lilo or grub and then - one of those boot loader - will boot linux as we know.

OK, I have included this in my bootloader advice, along with the obligatory disclaimer.

Also, spb has requested that all baselayout-related contributions (new initscripts, example configs, etc) be reported in bugzilla and assigned to spb@gentoo.org , I have also updated the post to reflect this. :)
Back to top
View user's profile Send private message
cls-jz
n00b
n00b


Joined: 27 Dec 2004
Posts: 30

PostPosted: Thu Apr 28, 2005 5:30 am    Post subject: Reply with quote

This 's a good idea. :D tester is me!
_________________
2.6.15-nitro3
IBM T43 (BH4)
Reiser4 E17
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Tue May 03, 2005 1:13 pm    Post subject: Reply with quote

is fbsd an officially supported arch in Gentoo? I can find some entries with -x86-fbsd etc. in the portage-tree - but no mentioning about it on packages.gentoo.org :(

I'm looking for a packagesystem to use on FreeBSD servers - and I would like to use Portage - as it's very nice - but an alternative is pkgsrc.org (I have to be realistic - can't run bleeding edge stuff on production servers - even if it is only the packagesystem and not the actual packages :-).

Would be very cool if all the supported archs was implemented in packages.gentoo.org - so I could search for packages pr. arch etc. too :)
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Tue May 03, 2005 2:26 pm    Post subject: Reply with quote

Klavs wrote:
is fbsd an officially supported arch in Gentoo? I can find some entries with -x86-fbsd etc. in the portage-tree - but no mentioning about it on packages.gentoo.org :(
Portage itself is supported on fbsd, at least inasmuch as if it breaks we'll fix it. However, there are still some issues with the packages you need to run it, so the setup as a whole isn't yet. And no, there isn't anything in the tree keyworded for x86-fbsd yet; that will happen once we get the system working and the profile / system ebuilds into the tree.
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Tue May 03, 2005 2:40 pm    Post subject: Reply with quote

Ok. Thanks for info. Any ETA on when you the -x86-fbsd arch is hoped to be ready for inclusion in the main tree?
We are moving to FreeBSD 5.4 soon - and will move to the new package system at that time. Perhaps it'll be mature for FreeBSD6 so we can consider it there - it has to beat pkgsrc for me to be able to convince people here :)
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Tue May 03, 2005 3:04 pm    Post subject: Reply with quote

Update to first post:


  1. Lots of due acknowledgements to developer flameeyes! :D
  2. Our package.mask has really shrunk in size. Only 7 patches still not in Portage. :)
  3. Link to flameeyes' blog for THE latest Gentoo/FreeBSD updates.


Also, Gentoo/FreeBSD is not a "toy" anymore. Now we have X running on Gentoo/FreeBSD. :D
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Tue May 03, 2005 3:35 pm    Post subject: Reply with quote

kimchi_sg wrote:
Also, Gentoo/FreeBSD is not a "toy" anymore. Now we have X running on Gentoo/FreeBSD. :D
Yes it is. It just looks a bit prettier now.
Back to top
View user's profile Send private message
HoLzPLatTeN
n00b
n00b


Joined: 11 Feb 2005
Posts: 57
Location: The middle of nowhere

PostPosted: Thu May 26, 2005 10:33 am    Post subject: Reply with quote

I have used FreeBSD for 3 years and I loved it :_) however, I prefer to use the portage better than ports.

Because of that, I will test Gentoo/FBSD on my laptop when I had finished my exams, and will try to make an ebuild to cvsup base system to -stable and/or -current. Do you think it is a good idea? Or maybe I should consider another way to collaborate with the proyect?

I am not a skilled programmer however I will learn what is necessary ;)
_________________
Unanswered posts
Back to top
View user's profile Send private message
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Fri Jun 10, 2005 8:26 am    Post subject: Reply with quote

How well does this work in Qemu, or should I go for VMWare
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sun Jun 19, 2005 8:40 am    Post subject: Reply with quote

A question: is the point of getting Portage working on a FreeBSD system so that Portage can be used as an easy, familiar CLI to fetching and compiling BSD packages, or is the whole thing set up so that the Linux versions of BSD packages are compiled and installed instead?

e.g. If I run emerge gnome, will I be getting the BSD source code or the Linux source code? Or am I just wrong altogether, and source code is just source code regardless of OS? Basically, I'm wondering if Portage and all the other Gentoo packages are designed to compile BSD programs or Linux programs (and the support those programs need). I know that FreeBSD has its own ports system, but I'm unfamiliar with how it works, or if there's a CLI frontend to it (like Portage or apt), or if it's all just time-consuming ./configure && make commands.

I'm very much interested in trying out Gentoo/FreeBSD; I've used FreeBSD and FreeSBIE a little bit in the past, but I still love my Gentoo. At this point, I'm trying to decide on whether to try out/test/help out the Gentoo/FreeBSD project or the Gentoo/Solaris endeavor.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2966

PostPosted: Sun Jun 19, 2005 8:46 am    Post subject: Reply with quote

nightmorph wrote:
Or am I just wrong altogether, and source code is just source code regardless of OS?

Sort of true... Gentoo/FreeBSD uses the same portage tree as that of mainstream Gentoo. So does Gentoo for MacOS, afaict.

However, there are bound to be certain differences in the build environments of Linux and FreeBSD. (Don't ask me what differences... :( ) That means patching may be needed for some programs to compile and / or run on FreeBSD. But ideally, the same source will compile and run on both FreeBSD and Linux without modifications. :)
Back to top
View user's profile Send private message
Termi 2
n00b
n00b


Joined: 22 Apr 2005
Posts: 3

PostPosted: Thu Jun 23, 2005 2:20 pm    Post subject: Xorg & nls Reply with quote

Xorg don't installing with nls used
say "nls build failed"
make: illegal option -- w
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum