Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698246 - ebuild(1) incorrectly states that "[t]he src_unpack() function is also responsible for making the appropriate patches to the sources"
Summary: ebuild(1) incorrectly states that "[t]he src_unpack() function is also respon...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-22 09:30 UTC by Jeroen Roovers (RETIRED)
Modified: 2019-10-22 09:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2019-10-22 09:30:23 UTC
unpack Extracts  the  sources  to a subdirectory in the build directory
              (BUILD_PREFIX) by  running  the  src_unpack()  function  in  the
              ebuild  file.  If no src_unpack() function has been specified, a
              default src_unpack() function is  used  that  extracts  all  the
              files  specified in SRC_URI.  The sources are normally extracted
              to ${BUILD_PREFIX}/[package]-[version-rev]/work.  This  particu‐
              lar  directory  can  be referenced by using the ${WORKDIR} vari‐
              able.

              If you're creating an ebuild, you'll want to make sure that  the
              S  (source directory) variable defined at the top of your ebuild
              script points to the  directory  that  contains  your  extracted
              sources.    This   directory   is   defined  by  default  to  be
              ${WORKDIR}/${P}, so it is not often required.  The  src_unpack()
              function  is also responsible for making the appropriate patches
              to the sources so that they're ready for compilation.

       prepare
              Prepares the extracted  sources  by  running  the  src_prepare()
              function  specified  in  the  ebuild  file.  When  src_prepare()
              starts, the current working directory will be set to ${S}.  This
              function is supported beginning with EAPI 2.


This should be updated to reflect changes committed since EAPI=6.