Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-16-2018, 01:16 AM   #1
LQ Newbie
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled
debian source package code structure

I want to know where to find the information about the code structure of any debian package like e.g bash,gawk,grep or any other package. If we open the source code directory we find some similar folders in each of them like m4,po or tests etc. what every folder is meant for ? Specially the "tests" folder ,can we test each package with this "tests" folder.Simply i want to know all information for source code packages.
Old 03-16-2018, 08:10 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Welcome to LQ.

Example gawk_4.1.4+dfsg.orig.tar.xz :
"orig" means it's at large the author´s original source code. Not Debian.

m4 :
Is an 'Autotools' component. Autotools is on of the ~10 ways to build source code.

Other common source code configuration / build methods:
cmake, qmake, 'python build', scons, './waf configure', jam, bjam, 'perl Makefile.PL', 'perl Build.PL', ant, mvn, etc.

About test / tests :
Many different versions / ways of tests : Please read the documentation for the particular application / library.

po : Language files (translations), for the languages included in po/.


Last edited by knudfl; 03-16-2018 at 08:18 AM.
Old 03-16-2018, 01:45 PM   #3
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,994
Blog Entries: 1

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
$ apt-file list devscripts | grep -i bin/
$ sudo apt-get install devscripts

Running man on most of those should help you understand things more. Recalling a dev update track at a linux con a couple years back and rmadison.

There are many ways to build .deb packages. The one way I understand is the fakeroot variant.

$ fakeroot ./debian/rules binary

Do the ./configure steps first and you can customize things. It will build the .deb's in the parent directory so be a bit further down the line than $HOME/. But there's lots of odd ducks and that method applies to maybe 50% of the sources (if I was an optimist).
Old 03-16-2018, 03:01 PM   #4
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
That is too big of a question. The answer would be meaningless. Debian uses the gnu toolchain and the Debian build system. So, the contents of a Debian source package are either source code, or something to do with the gnu chain or Debian build scripts. If you want further detail, google one of those and then ask something more specific.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install g++ from source code or deb package wang Ubuntu 3 04-18-2013 02:18 AM
source code or package linuxown Linux - Software 3 12-18-2009 03:13 AM
why compile source code for installing package? olddocks Linux - Server 6 04-29-2008 01:21 AM
Looking for source code for stty -- what package? dovkruger Linux - General 1 10-24-2007 12:23 PM
Source code for rh9 games package??? Quantum0726 Red Hat 0 12-29-2003 03:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration