Questions tagged [gentoo]

For programming problems that are specific to the Gentoo Linux distribution.

Gentoo Linux (/ˈdʒɛntuː/ jen-too)
Gentoo is a computer operating system built on top of the Linux kernel and based on the Portage package management system, distributed as free and open source software.

Unlike a conventional software distribution, the user compiles the source code locally according to their chosen configuration.

Where source-code is available, Portage (the package manager of Gentoo) normally supplies no precompiled binaries, continuing in the tradition of the ports collection. Although for convenience, some software packages (such as Mozilla Firefox and LibreOffice) are also available as precompiled binaries for various architectures where compiling would otherwise be very time consuming.

The development project and its products are named after the fastest-swimming penguin, the Gentoo, to reflect the potential speed improvements of machine-specific optimization. Gentoo package management is designed to be modular, portable, easy to maintain, flexible, and optimized for the user's machine. Gentoo describes itself as a meta-distribution, "because of its near-unlimited adaptability", in that the majority of users have configurations and sets of installed programs which are unique to themselves.

Official Site: http://www.gentoo.org/

316 questions
2
votes
0 answers

wvdial, pppd and default route metric

I have this in wvdial.conf: [Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 Modem Type = USB Modem Phone = *99# New PPD = yes ISDN = 0 Username = foo Init1 = ATZ Password = foo Modem = /dev/ttyUSB1 Baud = 9600 Stupid Mode = 0 #Init2 = ATQ0 V1…
McKanty
  • 21
  • 5
2
votes
1 answer

How to validate metadata.xml against .dtd in gentoo?

I am trying to validate metadata.xml against www.gentoo.org/dtd/metadata.dtd with xmllint from =dev-libs/libxml2-2.9.3 ebuild. I tried the commands (some from here): $ xmllint --noout --valid metadata.xml error : Unknown IO error metadata.xml:2:…
user1709408
  • 528
  • 4
  • 16
2
votes
3 answers

Packages, Ubuntu counterparts of Gentoo's useful commands

Trying to learn how to work with packages in Ubuntu (and have Gentoo experience). This command is already known: (1) sudo apt-get install pkgname Looking for counterparts of these: (2) emerge -s pkgname (3) equery files pkgname (4) equery belongs…
2
votes
2 answers

nested functions and while loops returned `while: command not found` in bash

The main function execSteps executes emerge --pretend $package one by one, and these package's names(only names, no version information) are stored in a text file stepFile. Some of packages may have extra need for configuring package.use,…
Tao Wang
  • 186
  • 1
  • 18
2
votes
0 answers

commandline outside of while loop works, but inside not in bash

I'm working on a function which is intended to analyse result of executing emerge --pretend $package, and set USE flag in make.conf, and then execute emerge $package. Example code as below, at line 5, emerge --pretend worked fine, but at line 13, I…
Tao Wang
  • 186
  • 1
  • 18
2
votes
1 answer

rc-update command can not be found in docker gentoo image

My docker image is tianon/gentoo-stage3:latest And my host system is centos7 and my docker version is Docker version 1.6.0, build 4749651 When I run this image , I found I can not use rc-update command. ls -l /sbin/rc* show empty result. I have no…
savior
  • 802
  • 6
  • 14
2
votes
2 answers

`mcrypt_create_iv` Stalls, But Only Through Apache

My local installation of PHP started doing this recently, but I don't know what changed and could have started this. It completely stalls out with 100% CPU utilization when I call mycrypt_create_iv, but only when that's called by Apache. When I call…
Michael Cordingley
  • 1,485
  • 1
  • 11
  • 23
2
votes
1 answer

Where can i find last kernel compilation log?

I've compiled custom kernel: (linux-3.17.4-gentoo, Linux localhost 3.17.4-gentoo #9 SMP Thu May 21 16:23:08 EEST 2015 x86_64 Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz GenuineIntel GNU/Linux) and saw some warnings few days ago. Is there any log…
Mikel Anniuk
  • 551
  • 5
  • 9
2
votes
1 answer

run a 32bit program on a 64bit gentoo linux

I am having difficulties running 32bit code on my 64bit gentoo, the program is very simple: #include main() { printf("Hello World"); } I compiled it with gcc -m32 -o hello32 hello.c. The output seems correct: ozn@yeni2gen:~$…
oz123
  • 27,559
  • 27
  • 125
  • 187
2
votes
3 answers

Problems with system() calls in Linux

I'm working on a init for an initramfs in C++ for Linux. This script is used to unlock the DM-Crypt w/ LUKS encrypted drive, and set the LVM drives to be available. Since I don't want to have to reimplement the functionality of cryptsetup and gpg I…
Thomas
  • 4,889
  • 4
  • 24
  • 19
2
votes
1 answer

How to link to maven source jar from an ebuild

I am trying to create an ebuild for gentoo. The ebuild is supposed to download sources using this string SRC_URI="http://search.maven.org/remotecontent?filepath=com/github/moaxcp/${PN}/${PN}/${PV}/${P}-sources.jar" When I run the ebuild the url is…
John Mercier
  • 1,637
  • 3
  • 20
  • 44
2
votes
1 answer

changes needed to install Webmin on a server running Gentoo

I'm trying to setup a www.kimsufi.com server running Gentoo and to install Webmin to administrate it. I used the command : emerge webmin and it returned : !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' …
Graham Slick
  • 6,692
  • 9
  • 51
  • 87
2
votes
1 answer

How to build statically against musl-libc on gentoo (glibc profile) and clang?

I'm not sure if this belongs on superuser instead of stackoverflow, at least for the first part, but for starters, how do I install sys-libs/musl (or any other alt libc for that matter) without replacing glibc or switching to the musl profile;…
Aioi Yuuko
  • 118
  • 7
2
votes
0 answers

XFCE 4.12: desktop taking ages to appear when dual monitor is on

i'm using an Gentoo (3.18.9 / Graphic card: ATI Trinity Radeon HD 7660D, details below) with XFCE 4.12 on top. Note that i'm to help isolate the problem, i'm not using any login manager, i'm logging from console and then running "startx". If i…
Matt
  • 61
  • 3
2
votes
1 answer

Perl Module Net::DNS - calling "tsig" method on resolver object results in error

recently the linux-distribution i use (recent gentoo) upgraded the net-dns package to version 0.74 (from 0.66). from this time using TSIG on queries and updates does not work anymore. former i used: $resolver =…
Nico Rittner
  • 189
  • 5