Merge lp:~thumper/juju-core/package into lp:~dave-cheney/juju-core/package

Proposed by Tim Penhey
Status: Merged
Merged at revision: 12
Proposed branch: lp:~thumper/juju-core/package
Merge into: lp:~dave-cheney/juju-core/package
Diff against target: 94 lines (+17/-27)
5 files modified
debian/control (+5/-5)
debian/dirs (+1/-0)
debian/install (+1/-0)
debian/manpages (+1/-0)
debian/rules (+9/-22)
To merge this branch: bzr merge lp:~thumper/juju-core/package
Reviewer Review Type Date Requested Status
Dave Cheney Approve
Review via email: mp+157020@code.launchpad.net

Description of the change

This change adds the man page to the packaging.

I got some help from wgrant and SteveK, and they made lots of funny noises about the current state of the rules.
I'm sure they'd be happy to help some more, but SteveK gave me the general outline for the change to rules.

This has been tested locally, and also tested with a recipe.

To post a comment you must log in.
Revision history for this message
Dave Cheney (dave-cheney) wrote :

 - mkdir -p $(PKGDIR)/usr/bin
85 - cp $(GOPATH)/bin/* $(PKGDIR)/usr/bin/

^ what happened to this part. How are binaries moved from $GOPATH/bin to /usr/bin ?

Revision history for this message
Tim Penhey (thumper) wrote :

Several other files were added to the debian directory.

It seems that the debian/install directory lists what needs to be installed by
default, and in this case it says:

bin/* usr/bin

So this then uses the debhelper framework to actually install the binaries.

In the same way that the debian/manpages new file lists the man pages to install.

Revision history for this message
Dave Cheney (dave-cheney) wrote :

I have no idea how to merge this without my lbox security blanket.

review: Approve
Revision history for this message
William Reade (fwereade) wrote :

> I have no idea how to merge this without my lbox security blanket.

You should be able to just `bzr merge lp:~thumper/juju-core/package` into your own branch and commit; when it's time for it to go into trunk the security blanket will be fine ;p. Or was it meant to go straight into trunk? Doesn't look like it...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2012-10-31 13:16:54 +0000
3+++ debian/control 2013-04-04 08:04:21 +0000
4@@ -2,7 +2,7 @@
5 Section: devel
6 Priority: extra
7 Maintainer: David Cheney <david.cheney@canonical.com>
8-Build-Depends: debhelper (>= 7.0.50~), golang-go
9+Build-Depends: debhelper (>= 7.0.50~), golang-go, python
10 Standards-Version: 3.9.1
11 Homepage: http://launchpad.net/juju-core
12
13@@ -10,8 +10,8 @@
14 Architecture: amd64
15 Depends: ${misc:Depends}
16 Description: Juju is devops distilled
17- Through the use of charms, juju provides you with shareable, re-usable,
18- and repeatable expressions of devops best practices. You can use them
19- unmodified, or easily change and connect them to fit your needs. Deploying
20- a charm is similar to installing a package on Ubuntu: ask for it and
21+ Through the use of charms, juju provides you with shareable, re-usable,
22+ and repeatable expressions of devops best practices. You can use them
23+ unmodified, or easily change and connect them to fit your needs. Deploying
24+ a charm is similar to installing a package on Ubuntu: ask for it and
25 it’s there, remove it and it’s completely gone.
26
27=== added file 'debian/dirs'
28--- debian/dirs 1970-01-01 00:00:00 +0000
29+++ debian/dirs 2013-04-04 08:04:21 +0000
30@@ -0,0 +1,1 @@
31+usr/bin
32
33=== removed file 'debian/docs'
34=== added file 'debian/install'
35--- debian/install 1970-01-01 00:00:00 +0000
36+++ debian/install 2013-04-04 08:04:21 +0000
37@@ -0,0 +1,1 @@
38+bin/* usr/bin
39
40=== added file 'debian/manpages'
41--- debian/manpages 1970-01-01 00:00:00 +0000
42+++ debian/manpages 2013-04-04 08:04:21 +0000
43@@ -0,0 +1,1 @@
44+juju.1
45
46=== modified file 'debian/rules'
47--- debian/rules 2013-02-20 23:03:00 +0000
48+++ debian/rules 2013-04-04 08:04:21 +0000
49@@ -4,9 +4,8 @@
50 # Uncomment this to turn on verbose mode.
51 #export DH_VERBOSE=1
52
53-export GOPATH=$(CURDIR)
54-
55-PKGDIR=debian/juju-core
56+export GOPATH:=$(CURDIR)
57+export PATH:=$(GOPATH)/bin:$(PATH)
58
59 VERSION:=$(shell sed -n 's/^const version = "\(.*\)"/\1/p' $(GOPATH)/src/launchpad.net/juju-core/version/version.go)
60 ifeq ($(VERSION),)
61@@ -14,26 +13,14 @@
62 endif
63
64 %:
65- dh $@
66+ dh $@
67+
68+override_dh_auto_install-arch:
69+ dh_auto_install
70+ go install -v launchpad.net/juju-core/cmd/juju
71+ go install -v launchpad.net/juju-core/cmd/jujud
72+ $(GOPATH)/src/launchpad.net/juju-core/scripts/generate-docs.py man -o juju.1
73
74 clean:
75 sed -i 's/00000000/$(VERSION)/' debian/changelog
76 dh_clean
77- rm -rf $(GOPATH)/bin/* $(GOPATH)/pkg/*
78-
79-binary-arch: clean
80- dh_prep
81- dh_installdirs
82- go install -v launchpad.net/juju-core/cmd/juju
83- go install -v launchpad.net/juju-core/cmd/jujud
84- mkdir -p $(PKGDIR)/usr/bin
85- cp $(GOPATH)/bin/* $(PKGDIR)/usr/bin/
86- dh_strip
87- dh_compress
88- dh_fixperms
89- dh_installdeb
90- dh_gencontrol
91- dh_md5sums
92- dh_builddeb
93-
94-binary: binary-arch

Subscribers

People subscribed via source and target branches

to all changes: