LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-30-2016, 11:33 AM   #16
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled

Forgot to add: there is a relatively new variable in make.conf, CPU_FLAGS_X86 - you can use cpuinfo2cpuflags-x86 utility to print correct flags for your CPU, not sure if it is covered in Handbook.
Hint: emerge ufed, it is great help to manage USE flags.
 
Old 02-01-2016, 04:45 AM   #17
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Teufel View Post
it's a long way to the top
welcome to the Gentoo world
There's always shortcuts, but my main box works fine for the fancy stuff.

I like mucking about in the basement. Took me a while to remember /proc/config.gz. Now hopefully I can get the NFSD module built. My kernels are crappy right now.

[UPDATE: it did work. I used /proc/config.gz, turned nfsd on in menuconfig, recompiled, and the new nfsd module works with factory kernel ]

Gentoo NFSD is different from my other boxes. I guess it comes from that issue of not crossing fs boundaries. Now you have to mount a proper tree specially and locally for NFSD. The factory kernel doesn't have support it either, so you have roll your own. NFSD is crucial to a well trained PC in my mind. Having a dedicated NFS tree makes sense.

Not having much luck with grub2. It likes to spontaineously reboot when handing over to old 2.6.6 kernel, so I went back to LILO. Can't get grub0.99 to compile quite yet. LILO likes to call drives by names like 306 for /dev/sda6. New kernel doesn't like that so I hexedit /boot/map everytime I run lilo -v.

emerge has still got me a bit baffled. Is there a way to tell emerge to keep the source code instead of deleting it?
 
Old 02-01-2016, 10:59 AM   #18
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
This will keep emerge from cleaning up.
Code:
FEATURES=keepwork
Also, you can use the low level tool ebuild to break down the whole emerge process. See man ebuild.
 
1 members found this post helpful.
Old 02-02-2016, 04:10 AM   #19
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Excellent, thank you. I also found /usr/portage/distfiles which is where all the downloaded tarballs live.

Some packages I have a particular interest in, and I'd like to supervise the build.

emerge, eselect, ebuild. I see a pattern here. As usual, the package manager takes a bit to get to know.

Coming from the days of boot floppies and dialup modems, these new-fangled internet-entrenched package managers still kinda put me in awe. It really says something about how people tend to self-organize to the common good. That, for me, is one of the biggest reasons for using Linux.

I haven't compiled a kernel in over 10 years. It's pretty cool that the process hasn't really changed at all; just more arcane options to choose from. One of my issues with other automagic package managers is the constant changing of kernel and libc. My position is that my hardware doesn't change, so once I get a good working kernel for this PC, it really shouldn't need to be upgraded very often at all. Certainly not every couple months. I understand the need for bullet-proof security, but my needs are not that special. Ideally, I'd sit about down once a year with set of crucial security patches and apply them. My last set of PCs ran the same kernels for over a decade without a glitch. Eventually they become un-upgradable, but the hardware is old, so they get retired to print/file server and such until the cooling fans pack it in.

BTW I'm loving this OpenRC stuff: good old-school tech that can be tweaked with a 12k text editor, no special tools required. systemd be gone! Although a lot of the big boys like to use it I have no idea why.

For a lark I emerged icewm to see what would happen. Half a day of compiling (I slept through it) and I got systemd-udevd, but apparently there's a standalone udevd that can replace it's functionality. The upshot is that it worked fine. Amazing. No xserver yet, but I wanted to see what I'm getting into. That llvm suite was quite something to swallow. I'm now trying to figure out who required it. Seems a bit overkill for my purposes. But, I think it has to do with the complexity of actually compiling Xserver and friends, which is something I've never successfully done: it's always been pre-built binaries.

Quote:
Once you roll your own kernel you do not need initrd any more.
Is that by compiling in all the modules you need?

Last edited by mdooligan; 02-02-2016 at 04:14 AM. Reason: syntax
 
Old 02-02-2016, 06:32 AM   #20
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Yes, you build in all modules your box needs to boot. HDD controller support, root filesystem support, partition table support come to mind. Everything else can be modules. In particular, if some of drivers needs options passed to it at load time then it is easier with module.
Install app-portage/gentoolkit, it gives you equery - a tool to query packages. It will tell you why llvm is pulled in.
Also emerge -t will show dependency tree.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help : Process control from Boot loader to User Space vmkaarthik Linux - Newbie 2 06-29-2010 11:23 PM
Process management and process control cll975dll General 1 09-04-2009 03:37 PM
Need help about process control dellroxy Solaris / OpenSolaris 7 03-24-2009 05:26 AM
Process Table-Process Control Block sarahmencer Linux - General 1 01-09-2006 09:14 PM
Process control...? kleptophobiac Linux - General 2 09-25-2004 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration