[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 'No such file or directory' while building coreutils from source package



Le jeudi, 7 mai 2020, 21.59:56 h CEST Manuel Wagesreither a écrit :
> Do I need to extract it?
> https://www.debian.org/doc/manuals/maint-guide/build.en.html doesn't
> mention anything like that. Also, it doesn't seem to change the outcome.

The first part of the guide (Chapter 2. First steps) [0] explains a little 
better what different parts constitute a source package, and therefore a 
source directory.

Another good resource is the Debian handbook; specifically it's chapter 5.3 
"Structure of a Source Package" [1].

In short, you need to:
- extract the upstream tarball
- extract the Debian changes on top of the directory containing your upstream 
extracted source code (usually a .debian.tar.*).
- apply the patches

All this is doable by hand, but really, you should rely on Debian's tools:

$ apt-get source coreutils

… will download and extract the coreutils source package from the Debian 
repositories. And by extract, I mean that it will do nothing more than the 3 
steps above.

Regards,
OdyX

[0] https://www.debian.org/doc/manuals/maint-guide/first.en.html
[1] https://www.debian.org/doc//manuals/debian-handbook/sect.source-package-structure.en.html

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: