Web lists-archives.com

Re: Reg: Debian Source code




Hi Srinivas,

The whole Debian system is made up of all packages in Debian. If you are able
to (re)build all the packages, it is equivalent to (re)building the whole
system.

Similarly, if you retrieve the package source code for all Debian packages, it
is equivalent to having retrieved the source code for the entire Debian
system.

Here are some resources that I am aware of:

* By running "apt source <packagename>", you will be able to retrieve the
source code for that certain source package that corresponds to the
<packagename> you indicated.

* By running "apt list", you will be able to get a full list of *binary*
packages available on your current system. However, please be careful to
distinguish between the "source package name" and "binary package name" (one
source package may generate multiple binary packages).

* By visiting https://sources.debian.org , you will be able to browse all
source code of Debian system (or equivalently, the source code for all Debian
packages) online. It's hard for you to download via web interface, though.

* By visiting https://tracker.debian.org/pkg/, you will be able to view the
development history and version information of the certain package.

* By visiting any of Debian's mirror sites (e.g., 
https://deb.debian.org/debian/ ), you will be able to find the source code for
all Debian packages under pool/ directory (which is equivalent to providing
the entire Debian source code). The structure of the directory structure is
not easy for you to parse manually, so I strongly suggest that you use the
"apt source" command as mentioned previously.

* There are multiple ways to set up build system. These systems take a Debian
source package and convert it into generated (built) binary packages. There
are some high-level software like sbuild (https://wiki.debian.org/sbuild)
which provides clean interface and build packages within a chroot environment.
It is used by Debian's official buildd.debian.org.

--
Regards,
Boyuan Yang

在 2019-03-13三的 07:03 +0000,Srinivas Rao写道:
> Dear Simon Ritcher,
> 
> Thanks for your reply.
> 
> As you said, it is only for specific package customization process. I would
> like to know the entire Debian source code build procedure . please let me
> know, how can I get entire Debian 9.8 stretch source code and how can I
> create build system.
> 
> Thanks & Regards,
> Srinivas Rao.
> From: Simon Richter <sjr@xxxxxxxxxx>
> Sent: Tuesday, March 12, 2019 11:05:02 PM
> To: Srinivas Rao; debian-devel@xxxxxxxxxxxxxxxx
> Subject: Re: Reg: Debian Source code
>  
> Hi,
> 
> On 12.03.19 13:33, Srinivas Rao wrote:
> 
> > I am planning to work on small IoT kind of project using Debian OS. I
> > would like to customize Debian OS. could you please tell me, where can I
> > get or download Debian source code and how can I create build system.
> 
> Debian is self-hosting, the easiest way to download and build Debian
> packages is from withing an existing Debian installation.
> 
> A good starting point for learning how to build and customize packages
> would be https://wiki.debian.org/BuildingTutorial .
> 
>    Simon
> 
> ::DISCLAIMER::
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only. E-mail transmission is not
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or may contain
> viruses in transmission. The e mail and its contents (with or without
> referred errors) shall therefore not attach any liability on the originator
> or HCL or its affiliates. Views or opinions, if any, presented in this email
> are solely those of the author and may not necessarily reflect the views or
> opinions of HCL or its affiliates. Any form of reproduction, dissemination,
> copying, disclosure, modification, distribution and / or publication of this
> message without the prior written consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error please
> delete it and notify the sender immediately. Before opening any email and/or
> attachments, please check them for viruses and other defects.
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------------------------------------

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