How to build Debian packages

  • 10,624 views
Uploaded on

Talk about Debian, Packaging and more..

Talk about Debian, Packaging and more..

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • As a management instructor I appreciate viewing the function of others. This is probably the greatest demonstration on planning I've viewed.
    Teisha
    http://dashinghealth.com http://healthimplants.com
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
10,624
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
1
Likes
16

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. How to build Debian packages? Talk about Debian, packaging and more... Kartik Mistry Magnet Technologies, Mumbai
  • 2. What we will learn?
    • About me!
    • What is Debian? What are packages?
    • Why Debian? Why .deb?
    • Building Packages
    • Your own packages in Debian aka How to contribute?
    • Tips & Tricks
  • 3. About me!
    • Debian user since 2004 AD
    • In NM queue ..
    • Leading Gujarati localization team since 2004
    • D-I translator for Gujarati
  • 4. What is Debian? Why Debian?
    • Debian GNU/Linux is one of the oldest Linux distribution
    • Known for stability, security and easy upgrades ..
    • Best package management system
    • Debian Social Contract, DFSG, Debian Policies
    • Most Important: Debian Community !
  • 5. Packages ..
    • Package makes life easy!
    • Debian packages are .deb
    • Package management is the key
    • dpkg
    • apt-get power
  • 6. Building Debian Packages The Debian design process is open to ensure that the system is of the higest quality and that it reflects the needs of the user community -- The Debian Linux Manifesto
  • 7. The basic stuff
    • Binary and source packages
    • Debian package is,
    .dsc .diff .orig.tar.gz
  • 8. Look inside the package ..
    • All changes made by Debian stays at debian/ directory
    • No touch to upstream original!
    • Debian patches are in debian/patches
    • Use of dpatch or quilt
  • 9. Starting with dh_make
    • dh_make tool
    • Single, Library, Multibinary, Kernel package
    • Inspecting debian/ directory
  • 10. debian/*
    • debian/changelog
    • debian/control
    • debian/copyright
    • debian/compact
  • 11. debian/rules
    • We know that debian/rules !
    • Basically Makefile
    • configure, build, install, binary-indep, binary-arch, binary, clean
  • 12. cdbs
    • Common Debian Build System
    • Magic stuffs!
  • 13. Building package finally!
    • Extracting the existing package: dpkg-source -X *.dsc
    • dpkg-buildpackage -rfakeroot -uc -us -sa
  • 14. Practical!
    • Small demo of package building ..
  • 15. pbuilder
    • pbuilder = personal builder
    • Your package must build on unstable, and you are running stable/testing version ..
    • chroot system, works with Ubuntu/Knoppix
  • 16. Checking packages
    • Quality matters!!
    • Lintian and Linda tools
    • Install it, it works? Check on different machines
    • Debian Policy
    • Small silly things ..
  • 17. Your own packages in Debian ..
    • Only Debian Developers are allowed to upload packages in Debian FTP
    • Any one can maintain packages without being Debian Developer
    • But, Where to upload?
  • 18. mentors.debian.net
    • Mentoring NM people
    • Finding Sponsors
    • Sponsors may have different criteria, so look for it ..
  • 19. GPG Key
    • GPG Key
    • Keysigning Party
    • Find Developer to sign your key! (Not neccessary)
  • 20. Tips & Tricks
    • Must lintian and linda error free
    • Look for small things
    • Your package really works?
    • Copyright is important
    • Learn from mistakes
  • 21. Resources
    • debian.org contains almost everything!
    • mentors.debian.net
    • Debian New Maitainer Guide
    • Debian Policy Manual
    • Debian Developer Reference
    • #debian-mentors, #debian-devel on irc.oftc.net
  • 22. Questions ?
  • 23. Thanks!
    • Kartik Mistry
    • Blog : kartikmistry.org/blog
    • Contact : kartik.mistry at gmail.com
    • This Presentation/Notes: kartikmistry.org/slides