Skip to content

Instantly share code, notes, and snippets.

@repeatedly
Created March 21, 2013 17:55
Show Gist options
  • Save repeatedly/5215137 to your computer and use it in GitHub Desktop.
Save repeatedly/5215137 to your computer and use it in GitHub Desktop.
Bundlerを使ったFluentdのdeb作成の試み.with_bundlerのパッチを当てた後にcommand.shを実行した感じ.環境はUbuntu 12.10で,pbuilderとかubuntu-dev-toolsとか必要なパッケージはapt-getでupgradeしてからインストール.
% ./make-deb-init.sh
... long time ...
% ./make-deb.sh ede5a1f42603da86c3b8dab980fe924c43709fb6
Cloning into 'fluentd'...
Note: checking out 'ede5a1f42603da86c3b8dab980fe924c43709fb6'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at ede5a1f... Goodbye jeweler and welcome bundler!
~/git/td-agent/td-agent-1.1.11 ~/git/td-agent
Maintainer name : repeatedly
Email-Address : [email protected]
Date : Thu, 21 Mar 2013 10:49:10 -0700
Package Name : td-agent
Version : 1.1.11
License : blank
Type of Package : Single
Hit <enter> to confirm: Currently there is no top level Makefile. This may require additional tuning.
You already have a debian/ subdirectory in the source tree.
dh_make will not try to overwrite anything.
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `ac'.
libtoolize: copying file `ac/ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add `LT_INIT' to configure.in.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.in:3: installing `ac/install-sh'
configure.in:3: installing `ac/missing'
Makefile.am: installing `./INSTALL'
dpkg-buildpackage: source package td-agent
dpkg-buildpackage: source version 1.1.11-1
dpkg-buildpackage: source changed by Kazuki Ohta <[email protected]>
dpkg-source --before-build td-agent-1.1.11
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
rm -f debian/td-agent.substvars
rm -f debian/td-agent.*.debhelper
rm -rf debian/td-agent/
rm -f debian/*.debhelper.log
rm -f debian/files
find . \( \( -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} \; \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
rm -f *-stamp
dpkg-source -b td-agent-1.1.11
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building td-agent using existing ./td-agent_1.1.11.orig.tar.gz
dpkg-source: warning: newly created empty file 'NEWS' will not be represented in diff
dpkg-source: warning: newly created empty file 'NOTICE' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'make_dist.sh' will not be represented in diff
dpkg-source: warning: executable mode 0775 of 'configure' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'ac/install-sh' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'ac/missing' will not be represented in diff
dpkg-source: info: local changes detected, the modified files are:
td-agent-1.1.11/INSTALL
td-agent-1.1.11/Makefile.in
td-agent-1.1.11/README
td-agent-1.1.11/ac/install-sh
td-agent-1.1.11/ac/ltmain.sh
td-agent-1.1.11/ac/missing
td-agent-1.1.11/aclocal.m4
td-agent-1.1.11/configure
td-agent-1.1.11/make_dist.sh
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/td-agent_1.1.11-1.diff.nyhuFF
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source -b td-agent-1.1.11 gave error exit status 2
~/git/td-agent
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
td-agent_1.1.11-1.dsc
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
td-agent_1.1.11-1.dsc
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
td-agent_1.1.11-1.dsc
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
td-agent_1.1.11-1.dsc
W: /home/repeatedly/.pbuilderrc does not exist
I: Logging to /home/repeatedly/pbuilder/lucid-i386_result/last_operation.log
W: /home/repeatedly/.pbuilderrc does not exist
I: Logging to /home/repeatedly/pbuilder/lucid_result/last_operation.log
E: Command line parameter [td-agent_1.1.11-1.dsc] does not exist
W: /home/repeatedly/.pbuilderrc does not exist
E: Command line parameter [td-agent_1.1.11-1.dsc] does not exist
W: /home/repeatedly/.pbuilderrc does not exist
I: Logging to /home/repeatedly/pbuilder/precise-i386_result/last_operation.log
E: Command line parameter [td-agent_1.1.11-1.dsc] does not exist
I: Logging to /home/repeatedly/pbuilder/precise_result/last_operation.log
E: Command line parameter [td-agent_1.1.11-1.dsc] does not exist
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
cp: cannot stat `/home/repeatedly/pbuilder/lucid-i386_result/td-agent_1.1.11-1_i386.deb': No such file or directory
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
cp: cannot stat `/home/repeatedly/pbuilder/lucid-amd64_result/td-agent_1.1.11-1_amd64.deb': No such file or directory
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
cp: cannot stat `/home/repeatedly/pbuilder/precise-i386_result/td-agent_1.1.11-1_i386.deb': No such file or directory
1.1.11 1.1.11.tar.gz Makefile.am PASSWORD README.md REVISION VERSION autogen.sh configure.in debian example-clients failed.txt fluentd make-deb-init.sh
make-deb.sh make-deb5.sh make-rpm.sh redhat td-agent-1.1.11 td-agent-1.1.11.tar.gz td-agent.conf td-agent.prelink.conf td-agent_1.1.11.orig.tar.gz
cp: cannot stat `/home/repeatedly/pbuilder/precise-amd64_result/td-agent_1.1.11-1_amd64.deb': No such file or directory
cp: cannot stat `td-agent_1.1.11-1.dsc': No such file or directory
cp: cannot stat `td-agent_1.1.11-1.debian.tar.gz': No such file or directory
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
index e0bc1bb..cde0320 100644
--- a/debian/source/include-binaries
+++ b/debian/source/include-binaries
@@ -1,5 +1,6 @@
deps/ruby-1.9.3-p194.tar.bz2
deps/jemalloc-2.2.5.tar.bz2
+deps/bundler-1.2.5.gem
deps/cool.io-1.1.0.gem
deps/json-1.5.2.gem
deps/http_parser.rb-0.5.1.gem
diff --git a/make-deb-init.sh b/make-deb-init.sh
index 9b2f576..5717cdd 100755
--- a/make-deb-init.sh
+++ b/make-deb-init.sh
@@ -3,7 +3,7 @@ password=`cat PASSWORD`
echo $password | sudo -S apt-get install git-core
-DISTS='lucid'
+DISTS='lucid precise'
ARCHITECTURES='i386 amd64'
for dist in $DISTS; do
diff --git a/make-deb.sh b/make-deb.sh
index 5722de5..a7ae5d8 100755
--- a/make-deb.sh
+++ b/make-deb.sh
@@ -4,6 +4,11 @@ password=`cat PASSWORD`
dst=td-agent-$version
rev=`cat REVISION`
+# user defined revision
+if [ ! -z "$1" ]; then
+ rev=$1
+fi
+
rm -fR fluentd
git clone git://github.com/fluent/fluentd.git
cd fluentd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment