Difference between revisions of "Make.conf/es"

From Funtoo
Jump to navigation Jump to search
(Created page with "Si está inseguro de cuantos procesadores/hilos posee su procesador, puede ayudarse del comando /proc/cpuinfo. {{console|body= (chroot) # ##i##grep "processor" /proc/cpuinfo...")
(Created page with "=== Entrada === Algunos dispositivos necesitan de una entrada específica, por ejemplo {{package|x11-drivers/xf86-input-synaptics}} para manejar touchpads.")
Line 67: Line 67:
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should leverage [[Funtoo Profiles]] instead as much as possible and only set as needed. A USE flag prefixed with a minus (" - ") sign tells Portage not to use the flag when compiling.  Through use flags we generate more secure stripped down binaries with reduced attack surface and better performance.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE Gentoo Handbook].
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should leverage [[Funtoo Profiles]] instead as much as possible and only set as needed. A USE flag prefixed with a minus (" - ") sign tells Portage not to use the flag when compiling.  Through use flags we generate more secure stripped down binaries with reduced attack surface and better performance.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE Gentoo Handbook].


=== Input ===
=== Entrada ===
Some devices need defined such as {{package|x11-drivers/xf86-input-synaptics}} for touch pads.
Algunos dispositivos necesitan de una entrada específica, por ejemplo {{package|x11-drivers/xf86-input-synaptics}} para manejar touchpads.


{{file|name=/etc/portage/make.conf|lang=|desc=synaptics example|body=
{{file|name=/etc/portage/make.conf|lang=|desc=synaptics example|body=

Revision as of 07:29, March 21, 2020

Other languages:

¿Qué es el archivo make.conf?

Make.conf es el archivo de configuración principal de portage y Funtoo. Este contiene muchas variables que definen como se instalará un paquete dentro de un sistema Funtoo. Usted podrá configurar las variables internas de portage como la localización del árbol de portage, la localización de los archivos de fuentes, overlays y otras cosas. Además podrá configurar portage para su hardware, como el TMPFS, límites de disco, banderas de compilación de GCC para un mejor rendimiento, etc.

Muchas de estas personalizaciones se realizan dentro del archivo make.conf. En esta página intentaremos explicar los múltiples usos del archivo make.conf, las diferentes variables que pueden ser añadidas y sus usos.

¿Dónde se encuentra make.conf?

make.conf se encuentra en el directorio /etc y es un enlace simbólico a /etc/portage/make.conf, así que estos dos nombres de archivos podrán ser usados por igual.

No se requiere de nada especial para editar /etc/portage/make.conf, bueno, solo de su editor favorito:

root # nano /etc/portage/make.conf

Variables

Portage is very cutomizable. Because of this, many variables are available to configure /etc/portage/make.conf. Below is an example make.conf file showing some of the variables that can be used to customize portage. The format of a line of this file is usually VARIABLENAME="variable arguments".

   /etc/portage/make.conf - example make.conf variables
CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
INPUT_DEVICES="evdev"
VIDEO_CARDS="vesa nouveau"
MAKEOPTS="-j2"
USE="mmx sse"
ACCEPT_LICENSE="*"
   Note

Portage has built-in check for CPU's cores and enables MAKEOPTS automatically, if not set. In make.conf you may increase or decrease the value, when needed, otherwise it's set to -j(core number)

Below is a list of variables that can be used in make.conf, along with a description of what they do. For more information on these and other variables, read man make.conf.

Aceptar todas las licencias

   /etc/portage/make.conf - accept all licenses
ACCEPT_LICENSE="*"

Reubicar el directorio de compilación de código fuente

By default portage unpacks and compiles sources in /var/tmp/ it appends portage/pkg-cat/pkg to compile a package elsewhere. For example, if portage compiles a package in /tmp, it will be built at: /tmp/portage/pkg-cat/pkg. If you have Funtoo installed on an SSD, it may be a wise decision to mount /tmp in RAM or on a HDD so that you can minimize the number of writes to your SSD and extend its lifetime. After /tmp has been mounted off of your SSD, you can tell portage to compile future packages in /tmp, instead of in /var/tmp. To do this, add the following line to your /etc/portage/make.conf:

   /etc/portage/make.conf
PORTAGE_TMPDIR="/tmp"

Tarjetas de Video

La variable VIDEO_CARDS le informa a portage que controladores de vídeo desea utilizar en su sistema. Por favor vea la página de Video para conocer las opciones disponibles para su tarjeta de vídeo.

Touchpad de Laptops

Vea x11-drivers/xf86-input-synaptics para los mouse de laptops y touchpads.

MAKEOPTS

La variable MAKEOPTS puede ser utilizada para definir cuantas compilaciones paralelas deberán de ocurrir cuando usted compile un paquete. Usualmente esta variable deberá ser el número de sus núcleos de CPU en su sistema (+1) . Por ejemplo, si usted posee un procesador sin hyper-threading, entonces la variable MAKEOPTS debería ponerse en 3, lo cual puede ser hecho manualmente de la siguiente manera:

   /etc/portage/make.conf - set portage to use 3 threads
MAKEOPTS="-j3"

Si está inseguro de cuantos procesadores/hilos posee su procesador, puede ayudarse del comando /proc/cpuinfo.

(chroot) # grep "processor" /proc/cpuinfo

USE flags

USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should leverage Funtoo Profiles instead as much as possible and only set as needed. A USE flag prefixed with a minus (" - ") sign tells Portage not to use the flag when compiling. Through use flags we generate more secure stripped down binaries with reduced attack surface and better performance. A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the Gentoo Handbook.

Entrada

Algunos dispositivos necesitan de una entrada específica, por ejemplo x11-drivers/xf86-input-synaptics para manejar touchpads.

   /etc/portage/make.conf - synaptics example
INPUT_DEVICES="synaptics evdev"

Localization

Available options can be found on Funtoo Linux Localization.