Closed haf closed 10 years ago
Source of recipe: https://github.com/haf/fpm-recipes
Is it possible that you built as root before and didn't clean up the build directories?
No, I removed everything from there as a part of verifying it was a problem.
Okay, thanks. I'll try to reproduce this.
Tell me if you need anything.
I was able to reproduce the problem. The following diff to your recipe fixes the problem.
--- teamcity-server/recipe.rb
+++ teamcity-server/recipe.rb
@@ -28,11 +28,11 @@ class TeamcityServer < FPM::Cookery::Recipe
# InitV script
etc('init.d').install workdir('teamcity-server')
- chmod 755, etc('init.d/teamcity-server')
+ chmod 0755, etc('init.d/teamcity-server')
# data directory
(var/'lib/teamcity-server').mkdir
- chmod 755, (var/'lib/teamcity-server')
+ chmod 0755, (var/'lib/teamcity-server')
# installation directory
opt('teamcity-server/conf').mkdir
The first parameter (mode) for the chmod
method should be an octal number. (see FileUtils.chmod)
$ fpm-cook --no-deps
===> Starting package creation for teamcity-server-8.0.5 (ubuntu, deb)
===>
===> Fetching source:
===> Using cached file /tmp/fpm-recipes/teamcity-server/cache/TeamCity-8.0.5.tar.gz
===> Building in /tmp/fpm-recipes/teamcity-server/tmp-build/TeamCity
===> Installing into /tmp/fpm-recipes/teamcity-server/tmp-dest
===> [FPM] Converting dir to deb {}
===> Removing existing package file: teamcity-server_8.0.5-2_amd64.deb
===> [FPM] No deb_installed_size set, calculating now. {}
===> [FPM] Reading template {"path":"/home/bernd/.rvm/gems/ruby-1.9.3-p545/gems/fpm-1.0.2/templates/deb.erb"}
===> [FPM] Creating {"path":"/tmp/package-deb-build20140303-9280-1i8z8pg/control.tar.gz","from":"/tmp/package-deb-build20140303-9280-1i8z8pg/control"}
===> [FPM] Created deb package {"path":"teamcity-server_8.0.5-2_amd64.deb"}
===> Created package: /tmp/fpm-recipes/teamcity-server/pkg/teamcity-server_8.0.5-2_amd64.deb
Sorry it took so long...
Wow, gj @ me for giving it a decimal then :). I didn't even know there were a prefix for octal in ruby! Cool.
Thanks for spending the time to track this down!
Something like this: