Difference between revisions of "Gentoo"

From NetHackWiki
Jump to navigation Jump to search
(The initial Gentoo page is here! I am not much impressed.)
 
m (Add wikipedia link, move official site link to 'See also' section)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Gentoo''' is the [[GNU]]/[[Linux]] distribution that has the users that compile all of their own software. There are other such distributions, including [[Source Mage]], but Gentoo is leading.
+
{{wikipedia|Gentoo Linux}}
  
http://www.gentoo.org/
+
'''Gentoo''' is the GNU/Linux distribution that has the users that compile all of their own software. There are other such distributions, including Source Mage, but Gentoo is leading.
  
 
The command <tt>emerge nethack</tt> will probably give the latest version of [[NetHack]] to a Gentoo user, though it helps that 3.4.3 has long been current. However, the online package database suggests that <tt>emerge slashem</tt> will continue to give you [[SLASH'EM]] 0.0.7E6F0, unless you request the unstable build for 0.0.7E7F2. Gentoo does not seem to provide 0.0.7E7F3.
 
The command <tt>emerge nethack</tt> will probably give the latest version of [[NetHack]] to a Gentoo user, though it helps that 3.4.3 has long been current. However, the online package database suggests that <tt>emerge slashem</tt> will continue to give you [[SLASH'EM]] 0.0.7E6F0, unless you request the unstable build for 0.0.7E7F2. Gentoo does not seem to provide 0.0.7E7F3.
  
Though Gentoo facilitates certain customisations of the system, such as "Hardened Gentoo", if you want to build NetHack with your own selection of [[patch]]s, you are probably better to do it manually than to go through their "Portage" system.
+
Though Gentoo facilitates certain customisations of the system, such as "Hardened Gentoo", if you want to build NetHack with your own selection of [[patch]]es, you are probably better to do it manually than to go through their "Portage" system, unless you want to generate your own ebuild (configure and build script).
  
 
Perhaps a fortune cookie could read:
 
Perhaps a fortune cookie could read:
Line 13: Line 13:
 
However, another one may read:
 
However, another one may read:
  
: <tt>They say that "emerge sync" may give you a broken system.</tt>
+
: <tt>They say that "emerge --sync" may give you a broken system.</tt>
  
The "emerge sync" command upgrades the scripts that build Gentoo packages to the latest version.
+
The <tt>emerge --sync</tt> command upgrades the scripts that build Gentoo packages to the latest version. This also includes the list of masked packages. Since the ebuild <tt>games-roguelike/nethack</tt> is masked, further <tt>emerge</tt> commands tend to fail, because <tt>emerge</tt> detects an installed ebuild that is masked. The problem can be solved by inserting the line
  
[[Category:Development]]
+
: <tt>games-roguelike/nethack</tt>
 +
 
 +
in <tt>/etc/portage/package.unmask</tt>. This approach is superior to removing it from <tt>/usr/portage/profiles/package.mask</tt>, since the contents of <tt>/etc/portage</tt> are not overwritten by <tt>emerge --sync</tt>. This same approach is effective for [[Sabayon Linux]] as well, since it's essentially a customized Gentoo.
 +
 
 +
To find out why nethack (and SLASH'EM) are masked have a look at the Gentoo bug tracker [http://bugs.gentoo.org/125902].
 +
 
 +
== See also ==
 +
 
 +
* [http://www.gentoo.org/ Official site]
 +
 
 +
[[Category:Operating systems]]

Latest revision as of 06:58, 27 January 2020

Gentoo is the GNU/Linux distribution that has the users that compile all of their own software. There are other such distributions, including Source Mage, but Gentoo is leading.

The command emerge nethack will probably give the latest version of NetHack to a Gentoo user, though it helps that 3.4.3 has long been current. However, the online package database suggests that emerge slashem will continue to give you SLASH'EM 0.0.7E6F0, unless you request the unstable build for 0.0.7E7F2. Gentoo does not seem to provide 0.0.7E7F3.

Though Gentoo facilitates certain customisations of the system, such as "Hardened Gentoo", if you want to build NetHack with your own selection of patches, you are probably better to do it manually than to go through their "Portage" system, unless you want to generate your own ebuild (configure and build script).

Perhaps a fortune cookie could read:

They say that Debian and Gentoo are the best at providing current versions of packages.

However, another one may read:

They say that "emerge --sync" may give you a broken system.

The emerge --sync command upgrades the scripts that build Gentoo packages to the latest version. This also includes the list of masked packages. Since the ebuild games-roguelike/nethack is masked, further emerge commands tend to fail, because emerge detects an installed ebuild that is masked. The problem can be solved by inserting the line

games-roguelike/nethack

in /etc/portage/package.unmask. This approach is superior to removing it from /usr/portage/profiles/package.mask, since the contents of /etc/portage are not overwritten by emerge --sync. This same approach is effective for Sabayon Linux as well, since it's essentially a customized Gentoo.

To find out why nethack (and SLASH'EM) are masked have a look at the Gentoo bug tracker [1].

See also