Talk:Basic guide to write Gentoo Ebuilds

From Gentoo Wiki
Jump to:navigation Jump to:search
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (~~~~). When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}} so it will show up in the list of open discussions.

Issue with the steps

Talk status
This discussion is done as of 2019-12-27.

Question: There is a problem in that following the cited steps fails as shown below. — Donahue 20:27, 16 January 2014‎ (UTC)

fx8150 ~ # mkdir -p /usr/local/portage/app-misc/hello-world
fx8150 ~ # cd $_                                           
fx8150 hello-world # cp /usr/portage/header.txt ./hello-world-1.0.ebuild
fx8150 hello-world # SLOT="0"
fx8150 hello-world # ebuild hello-world-1.0.ebuild manifest clean merge
Appending /usr/local/portage to PORTDIR_OVERLAY...
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Error(s) in metadata for 'app-misc/hello-world-1.0':
  SLOT: invalid value: 

Answer: You need to put SLOT="0" inside the ebuild. — Tom Wijsman 21:07, 16 January 2014 (UTC)

Hi all, please remember to sign your contributions to discussion pages. Kind regards, --Maffblaster (talk) 04:19, 25 December 2016 (UTC)
I think there are two issues here; even if you include 'SLOT="0"' in your ebuild, you still get the "!!! Repository 'x-portage'" error. See this forum thread and this exchange. Separately, the hello-world instructions should probably specify what name to save your ebuild file under; currently only the path is explicitly specified. Kergu (talk) 23:06, 3 June 2019 (UTC)
My mistake, have amended instructions accordingly. Proofreading welcome; I just wrote what worked for me. Kergu (talk) 23:19, 3 June 2019 (UTC)
One more problem; there appears to be no file at The "ebuild hello-world-1.0.ebuild manifest clean merge" command hangs at "PASV ... ". Kergu (talk) 00:07, 4 June 2019 (UTC)
Just removed those "Hello World" stuff as it was a confusing mixture of creating source code and writing ebuild. Creating source code (programming) might go to its own dedicated article.--Charles17 (talk) 07:51, 27 December 2019 (UTC)

Error 404

Talk status
This discussion is done as of 3 August 2020.

The following link doesn't work anymore: Fturco (talk) 16:35, 20 August 2018 (UTC)

I reviewed the article, and the errant link has been expunged. --Davidbryant (talk) 16:16, 3 August 2020 (UTC)

Add examples from portage tree

Talk status
This discussion is done as of 3 August 2020.

I think a nice addition to this page would be to list real ebuilds from the portage tree that show good ebuild practices. Many real ebuilds look complicated showing examples for libraries and executibles for different languages would be helpful. Garbanzo (talk) 04:47, 4 June 2019 (UTC)

Well, the article is not write-protected. So if you really want another example, why not add it yourself? --Davidbryant (talk) 16:20, 3 August 2020 (UTC)