கையேடு:Alpha/வேளைசெய்தல்/USE

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:Alpha/Working/USE and the translation is 100% complete.
Alpha கையேடு
நிறுவல்
நிறுவலைப் பற்றி
ஊடகத்தைத் தேர்ந்தெடுத்தல்
வலையமைப்பை உள்ளமைத்தல்
தகடுகளை ஆயத்தப்படுத்தல்
நிலை3 ஐ நிறுவுதல்
அடிப்படை முறைமையை நிறுவுதல்
கருநிரலை உள்ளமைத்தல்
முறைமையை உள்ளமைத்தல்
கருவிகளை நிறுவுதல்
துவக்க ஏற்றியை உள்ளமைத்தல்
நிறுவலை முடித்தல்
ஜென்டூவோடு வேளை செய்தல்
Portage முன்னுரை
USE கொடிகள்
Portage தனிச்சிறப்புகள்
Init குறுநிரல் முறைமை
சூழல் மாறிகள்
Portage ஓடு வேளை செய்தல்
கோப்புகள் மற்றும் அடைவுகள்
மாறிகள்
மென்பொருள் கிளைகளைக் கலக்குதல்
கூடுதல் கருவிகள்
தனிப்பயன் தொகுப்பு கருவூலம்
மேம்பட்ட தனிச்சிறப்புகள்
வலையமைப்பு உள்ளமைவு
தொடங்குதல்
மேம்பட்ட உள்ளமைவு
கூறுநிலை வலையமாக்கம்
கம்பியில்லா
செயல்பாடுகளைச் சேர்த்தல்
இயக்க மேலாண்மை

USE கொடிகளுக்குப் பின்னால் உள்ளக் கருத்து

ஜென்டூவை (அல்லது மற்ற வழங்கல், இயங்குதளங்களை) நிறுவும்போது, பயனர்கள் அவர்கள் வேளை செய்யும் சூழல்களைச் சார்ந்து தேர்வுகளைச் செய்கின்றனர். சேவையகத்திற்கான அமைவுகள், பணிநிலையத்திற்கான அமைவை விட மாறுபட்டிருக்கும். மேலும் விளையாடுவதற்காகப் பயன்படுத்தப்படும் பணிநிலையம் 3D மீள்தருகைக்கு பயன்படும் பணிநிலையங்களை விட மாறுபட்டதாக இருக்கும்.

என்ன தொகுப்பை நிறுவ வேண்டும் என்பதற்கு மட்டுமல்லாமல் குறிப்பிட்ட தொகுப்பு என்ன தனிச்சிறப்புகளைக் கொண்டிருக்க வேண்டும் என்பதையும் தேர்வு செய்வதற்கும் இது பொருந்தும். OpenGL க்கான தேவை இல்லையென்றால், எதற்காக ஒருவர் அதை நிறுவிப் பராமரிப்பதையும், பெரும்பாலான தொகுப்புகளில் இதன் ஆதரவைச் சேர்த்து உருவாக்குவதையும் கருத வேண்டும்? ஒருவர் KDE ஐ பயன்படுத்த விரும்பவில்லை என்றால், KDE க்கான ஆதரவு இல்லாமலும் தொகுப்புகள் குறையின்றி இயங்கும் என்ற நிலையில் எதற்காக அதைச் சேர்த்துத் தொகுப்பதை அவர் கருத வேண்டும்?

எதை நிறுவ மற்றும் செயல்படுத்த வேண்டும்/தேவையில்லை என முடிவெடுப்பதில் பயனர்களுக்கு உதவுவதன் மூலம், அவர்கள் சூழலை எளிமையான வழியில் குறிப்பிடுவதை ஜென்டூ விரும்புகிறது. இது பயனர்கள் தங்களுக்கு உண்மையில் என்ன தேவை என்பதை உணர் வைக்கிறது. Portage க்கான செயல்பாடு எளிமையாக்கப்பட்டு, பயனுள்ள முடிவுகளை எடுக்க வழிவகுக்கிறது.

USE கொடியின் வரையறை

USE கொடியை உள்ளிடவும், இவ்வகை கொடியானது ஒரு குறிப்பிட்ட கருத்திற்கான ஆதரவு மற்றும் சார்புநிலை தகவல்களை உள்ளடக்கிய உறைசொல்லாகும். குறிப்பிட்ட USE கொடியை ஒருவர் வரையறுக்கும்போது, தேர்ந்தெடுத்த உறைசொல்லுக்கான ஆதரவு அவர்களுக்குத் தேவைப்படுகிறது என Portage அறிந்துகொள்ளும். ஐயத்திற்கு இடமின்றி இது தொகுப்பிற்கான சார்புநிலை தகவல்களையும் மாற்றியமைக்கும்.

குறிப்பிட்ட இந்த எடுத்துக்காட்டைக் காணவும்: kde என்னும் உறைசொல் USE மாறியில் இல்லையென்றால், KDE க்கான ஆதரவு விரும்பினால் கிடைக்கும் எல்லா தொகுப்புகளும் KDE யின் ஆதரவு இன்றி தொகுக்கப்படும். மேலும், KDE க்கான சார்புநிலை விரும்பினால் கிடைக்கும் எல்லா தொகுப்புகளும் KDE திரட்டுகளின் (சார்புநிலைகளாக) நிறுவல் இல்லாமல் நிறுவப்படும். kde உறைசொல் வரையறுக்கப்பட்டால், இந்த தொகுப்புகள் எல்லாம் KDE யின் ஆதரவு உடன் தொகுக்கப்பட்டு, KDE திரட்டுக்கள் சார்புநிலைகளாக நிறுவப்படும்.

When the kde flag is set to enabled, then those packages will be compiled with KDE support, and the KDE libraries will be installed as dependency.

உறைசொற்களை சரியாக வரையறுப்பதன் மூலம் பயனரின் தேவைக்கு ஏற்ப முறைமையை வடிவமைக்க முடியும்.

USE கொடிகளைப் பயன்படுத்துதல்

நிலையான USE கொடிகளை அறிவித்தல்

All USE flags are declared inside the USE variable. To make it easy for users to search and pick USE flags, we already provide a default USE setting. This setting is a collection of USE flags we think are commonly used by the Gentoo users. This default setting is declared in the make.defaults files that are part of the selected profile.

The profile the system listens to is pointed to by the /etc/portage/make.profile symlink. Each profile works on top of other profiles, and the end result is therefore the sum of all profiles. The top profile is the base profile (/var/db/repos/gentoo/profiles/base).

இப்போதைய செயல்பாட்டில் உள்ள USE கொடிகளை (முழுவதுமாக) காண, emerge --info என்னும் கட்டளையைப் பயன்படுத்தவும்:

root #emerge --info | grep ^USE
USE="a52 aac acpi alsa branding cairo cdr dbus dts ..."

This variable already contains quite a lot of keywords. Do not alter any make.defaults file to tailor the USE variable to personal needs though: changes in these files will be undone when the Gentoo repository is updated!

To change this default setting, add or remove keywords to/from the USE variable. This is done globally by defining the USE variable in /etc/portage/make.conf. In this variable one can add the extra USE flags required, or remove the USE flags that are no longer needed. This latter is done by prefixing the keyword with the minus-sign (-).

For instance, to remove support for KDE and Qt but add support for LDAP, the following USE can be defined in /etc/portage/make.conf:

கோப்பு /etc/portage/make.confUpdating USE in make.conf
USE="-kde -qt5 ldap"

தனி தொகுப்புகளுக்கு USE கொடிகளை அறிவித்தல்

Sometimes users want to declare a certain USE flag for one (or a couple) of applications but not system-wide. To accomplish this, edit /etc/portage/package.use. package.use is typically a single file, however it can also be a directory filled with children files; see the tip below and then man 5 portage for more information on how to use this convention. The following examples assume package.use is a single file.

For instance, to only have Blu-ray support for the VLC media player package:

கோப்பு /etc/portage/package.useVLC க்கான Blu-ray ஆதரவை செயல்படுத்துதல்
media-video/vlc bluray
துணுக்கு
If package.use is pre-existing as a directory (opposed to a single file), packages can have their USE flags modified by simply creating files under the package.use/ directory. Any file naming convention can work, however it is wise to implement a coherent naming scheme. One convention is to simply use the package name as the title for the child file. For example, setting the bluray USE flag for the media-video/vlc package can be performed as follows:

root #echo "media-video/vlc bluray" >> /etc/portage/package.use/vlc

Similarly it is possible to explicitly disable USE flags for a certain application. For instance, to disable bzip2 support in PHP (but have it for all other packages through the USE flag declaration in make.conf):

கோப்பு /etc/portage/package.usePHP க்கான bzip2 ஆதரவை முடக்குதல்
dev-lang/php -bzip2

தற்காலிக USE கொடிகளை அறிவித்தல்

Sometimes users need to set a USE flag for a brief moment. Instead of editing /etc/portage/make.conf twice (to do and undo the USE changes) just declare the USE variable as an environment variable. Remember that this setting only applies for the command entered; re-emerging or updating this application (either explicitly or as part of a system update) will undo the changes that were triggered through the (temporary) USE flag definition.

The following example temporarily removes the pulseaudio value from the USE variable during the installation of SeaMonkey:

root #USE="-pulseaudio" emerge www-client/seamonkey

முந்துரிமை

Of course there is a certain precedence on what setting has priority over the USE setting. The precedence for the USE setting is, ordered by priority (first has lowest priority):

  1. Default USE setting declared in the make.defaults files part of your profile
  2. User-defined USE setting in /etc/portage/make.conf
  3. User-defined USE setting in /etc/portage/package.use
  4. User-defined USE setting as environment variable

To view the final USE setting as seen by Portage, run emerge --info. This will list all relevant variables (including the USE variable) with their current definition as known to Portage.

root #emerge --info

புதிய USE கொடிகளுக்கு முழு முறைமையும் தகவமைத்தல்

After having altered USE flags, the system should be updated to reflect the necessary changes. To do so, use the --newuse option with emerge:

root #emerge --update --deep --newuse @world

Next, run Portage's depclean to remove the conditional dependencies that were emerged on the "old" system but that have been obsoleted by the new USE flags.

முக்கியமானது
Double-check the provided list of "obsoleted" packages to make sure it does not remove packages that are needed. In the following example the --pretend (-p) switch to have depclean only list the packages without removing them:
root #emerge --pretend --depclean

When depclean has finished, emerge may prompt to rebuild the applications that are dynamically linked against shared objects provided by possibly removed packages. Portage will preserve necessary libraries until this action is done to prevent breaking applications. It stores what needs to be rebuilt in the preserved-rebuild set. To rebuild the necessary packages, run:

root #emerge @preserved-rebuild

When all this is accomplished, the system is using the new USE flag settings.

தொகுப்பு சார்ந்த USE கொடிகள்

கிடைக்கும் USE கொடிகளைப் பார்வையிடல்

Let's take the example of seamonkey: what USE flags does it listen to? To find out, we use emerge with the --pretend and --verbose options:

root #emerge --pretend --verbose www-client/seamonkey
These are the packages that would be merged, in order:
 
Calculating dependencies... done!
[ebuild  N     ] www-client/seamonkey-2.48_beta1::gentoo  USE="calendar chatzilla crypt dbus gmp-autoupdate ipc jemalloc pulseaudio roaming skia startup-notification -custom-cflags -custom-optimization -debug -gtk3 -jack -minimal (-neon) (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} -wifi" L10N="-ca -cs -de -en-GB -es-AR -es-ES -fi -fr -gl -hu -it -ja -lt -nb -nl -pl -pt-PT -ru -sk -sv -tr -uk -zh-CN -zh-TW" 216,860 KiB
 
Total: 1 package (1 new), Size of downloads: 216,860 KiB

emerge isn't the only tool for this job. In fact, there is a tool dedicated to package information called equery which resides in the app-portage/gentoolkit package

root #emerge --ask app-portage/gentoolkit

Now run equery with the uses argument to view the USE flags of a certain package. For instance, for the app-portage/portage-utils package:

user $equery --nocolor uses =gnumeric-1.12.31
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-office/gnumeric-1.12.31:
 U I
 + + introspection            : Add support for GObject based introspection
 - - libgda                   : Enable database support through gnome-extra/libgda.
 - - perl                     : Enable perl plugin loader.
 + + python                   : Enable python plugin loader.
 + + python_targets_python2_7 : Build with Python 2.7

Satisfying REQUIRED_USE conditions

Some ebuilds require or forbid certain combinations of USE flags in order to work properly. This is expressed via a set of conditions placed in a REQUIRED_USE expression. This conditions ensure that all features and dependencies are complete and that the build will succeed and perform as expected. If any of these are not met, emerge will alert you and ask you to fix the issue.

எடுத்துக்காட்டு விளக்கம்
REQUIRED_USE="foo? ( bar )" foo அமைக்கப்பட்டிருந்தால், bar ஐ அமைக்க வேண்டும்.
REQUIRED_USE="foo? ( !bar )" foo அமைக்கப்பட்டிருந்தால், bar ஐ அமைக்கக் கூடாது.
REQUIRED_USE="foo? ( || ( bar baz ) )" foo அமைக்கப்பட்டிருந்தால், bar அல்லது baz ஐ அமைக்க வேண்டும்.
REQUIRED_USE="^^ ( foo bar baz )" foo bar அல்லது baz இல் சரியாக ஏதாவது ஒன்றை அமைக்க வேண்டும்.
REQUIRED_USE="|| ( foo bar baz )" foo bar அல்லது baz இல் குறைந்தது ஒன்றையாவது அமைக்க வேண்டும்.
REQUIRED_USE="?? ( foo bar baz )" foo bar அல்லது baz இல் ஒன்றிற்கு மேல் அமைக்கக் கூடாது.