Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package pattern breaks if epoch is set in recipe #1

Open
bernd opened this issue Sep 24, 2015 · 1 comment
Open

Package pattern breaks if epoch is set in recipe #1

bernd opened this issue Sep 24, 2015 · 1 comment
Labels

Comments

@bernd
Copy link
Collaborator

bernd commented Sep 24, 2015

The build does not work if the Debian epoch is set in the recipe version because the epoch does not show up in the package file name.

See: https://github.com/bernd/fpm-recipes/blob/master/clamz/recipe.rb#L5

$ bundle exec docker-cook -d package build clamz ubuntu-14.04
Tracking build state in stamp_dir: /tmp/docker-cook20150924-31373-161x8q2
Building clamz from: /vagrant/clamz
Ign file: ubuntu-14.04 InRelease
Ign file: ubuntu-14.04 Release.gpg
Get:1 file: ubuntu-14.04 Release [2297 B]
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Get:4 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Get:5 http://archive.ubuntu.com trusty-security Release [63.5 kB]
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Get:6 http://archive.ubuntu.com trusty-updates/main Sources [296 kB]
Get:7 http://archive.ubuntu.com trusty-updates/restricted Sources [4521 B]
Get:8 http://archive.ubuntu.com trusty-updates/universe Sources [174 kB]
Get:9 http://archive.ubuntu.com trusty-updates/main amd64 Packages [782 kB]
Get:10 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [22.7 kB]
Get:11 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [415 kB]
Get:12 http://archive.ubuntu.com trusty-security/main Sources [120 kB]
Get:13 http://archive.ubuntu.com trusty-security/restricted Sources [1874 B]
Get:14 http://archive.ubuntu.com trusty-security/universe Sources [35.4 kB]
Get:15 http://archive.ubuntu.com trusty-security/main amd64 Packages [434 kB]
Get:16 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.8 kB]
Get:17 http://archive.ubuntu.com trusty-security/universe amd64 Packages [151 kB]
Fetched 2580 kB in 7s (336 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
===> Cleanup!
===> Verifying build_depends and depends with Puppet
===> Verifying package: libgcrypt11-dev
===> Verifying package: libcurl4-gnutls-dev
===> Verifying package: libexpat1-dev
===> Missing/wrong version packages: libgcrypt11-dev, libcurl4-gnutls-dev, libexpat1-dev
===> Running as root; installing missing/wrong version build_depends and depends with Puppet
===> Installing package: libgcrypt11-dev
===> ensure changed 'purged' to 'present'
===> Installing package: libcurl4-gnutls-dev
===> ensure changed 'purged' to 'present'
===> Installing package: libexpat1-dev
===> ensure changed 'purged' to 'present'
===> Build dependencies installed!
===> Starting package creation for clamz-2:0.5 (ubuntu, deb)
===> 
===> Verifying build_depends and depends with Puppet
===> Verifying package: libgcrypt11-dev
===> Verifying package: libcurl4-gnutls-dev
===> Verifying package: libexpat1-dev
===> All build_depends and depends packages installed
===> Fetching source: 
######################################################################## 100.0%
===> Using source directory: clamz-0.5
===> Building in /build/tmp-build/clamz-0.5
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for update-mime-database... update-mime-database
checking for update-desktop-database... :
checking for XML_ParserCreate in -lexpat... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... yes
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.0... yes (1.5.3)
checking LIBGCRYPT API version... okay
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for off_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
gcc -g -O2 -W -Wall   -I.  -DHAVE_CONFIG_H -c ./clamz.c
gcc -g -O2 -W -Wall   -I.  -DHAVE_CONFIG_H -c ./options.c
gcc -g -O2 -W -Wall   -I.  -DHAVE_CONFIG_H -c ./playlist.c
gcc -g -O2 -W -Wall   -I.  -DHAVE_CONFIG_H -c ./download.c
gcc -g -O2 -W -Wall   -I.  -DHAVE_CONFIG_H -c ./vars.c
gcc -g -O2 -W -Wall  -o clamz clamz.o options.o playlist.o download.o vars.o -lgcrypt -lcurl   -lexpat 
===> Installing into /build/tmp-dest
/usr/bin/install -c -d -m 755 /build/tmp-dest/usr/bin
/usr/bin/install -c -m 755 clamz /build/tmp-dest/usr/bin
/usr/bin/install -c -d -m 755 /build/tmp-dest/usr/share/man/man1
/usr/bin/install -c -m 644 ./clamz.1 /build/tmp-dest/usr/share/man/man1
/usr/bin/install -c -d -m 755 /build/tmp-dest/usr/share/applications
/usr/bin/install -c -m 644 ./clamz.desktop /build/tmp-dest/usr/share/applications
: /build/tmp-dest/usr/share/applications
/usr/bin/install -c -d -m 755 /build/tmp-dest/usr/share/mime/packages
/usr/bin/install -c -m 644 ./clamz.xml /build/tmp-dest/usr/share/mime/packages
update-mime-database /build/tmp-dest/usr/share/mime

Note that '/build/tmp-dest/usr/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:

- /root/.local/share
- /usr/local/share/
- /usr/share/

===> [FPM] Converting dir to deb {}
WARNING: [FPM] epoch in Version is set {"epoch":"2"}
WARNING: [FPM] Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag {}
===> [FPM] No deb_installed_size set, calculating now. {}
===> [FPM] Reading template {"path":"/usr/local/rbenv/versions/2.1.7/lib/ruby/gems/2.1.0/gems/fpm-1.4.0/templates/deb.erb"}
===> [FPM] Creating {"path":"/tmp/package-deb-build20150924-505-1gteffc/control.tar.gz","from":"/tmp/package-deb-build20150924-505-1gteffc/control"}
===> [FPM] Creating boilerplate changelog file {}
===> [FPM] Reading template {"path":"/usr/local/rbenv/versions/2.1.7/lib/ruby/gems/2.1.0/gems/fpm-1.4.0/templates/deb/changelog.erb"}
===> Created package: /build/pkg/clamz_0.5-10.el5_amd64.deb
WARNING: no packages found after build with pattern: clamz*2:0.5*deb
Cleaning up stamp_dir: /tmp/docker-cook20150924-31373-161x8q2

@bernd bernd added the bug label Sep 24, 2015
@kisoku
Copy link
Owner

kisoku commented Sep 27, 2015

I was aware of this issue but didn't know a good way to work around it. FPM doesn't respect epoch properly for debian packages. Open to suggestions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants