[personal profile] gdt

Build environment

$ sudo apt-get install build-essential devscripts fakeroot

Fetch source

This is three files: a .dsc, a debian.tar.gz and a .tar.gz.

There are a few ways to do this.

1)

$ apt-get source openssl

2)

$ dget http://security.debian.org/debian-security/pool/updates/main/o/openssl/openssl_1.0.1e-2+deb7u5.dsc

dget is in the devscripts package, which has a tonne of dependencies (such as installing a SMTP mail system).

3)

$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/openssl_1.0.1e-2+deb7u5.dsc
$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/openssl_1.0.1e-2+deb7u5.debian.tar.gz
$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/openssl_1.0.1e.orig.tar.gz

Unpack the source and apply patches with:

$ dpkg-source -x openssl_1.0.1e-2+deb7u5.dsc
$ cd openssl-1.0.1e

Fetch build dependencies

1) The simplest way

$ sudo apt-get build-dep openssl

2) Otherwise look for Build-Requires lines in the file debian/control and install them individually:

$ sudo apt-get install debhelper m4 bc zlib1g-dev dpkg-dev

Build

There are multiple ways to do this.

1) The most basic is:

$ dpkg-buildpackage -us -uc -b

2) Debuild adds various checking of the resulting .deb (debuild is in the devscripts package):

$ debuild -us -uc -b

3) Pbuilder does the build in a clean environment, giving the best result (pbuilder is in the pbuilder package):

$ pbuilder --create
$ pbuilder --update
$ pbuilder --build --debbuildopts '-us -uc -b'
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User (will be screened)
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

Glen Turner

July 2017

S M T W T F S
      1
2345678
9 101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2017-08-22 20:45
Powered by Dreamwidth Studios