Commit Graph

1173 Commits

Author SHA1 Message Date
Jordan Sissel 100a825796 Version bump for a newer pleaserun 2017-07-28 14:59:15 -07:00
Jordan Sissel b0fd3d2ef3 version bump 2017-07-28 14:53:45 -07:00
Scott Van Hess e777018424 Rename `--include-dependencies` to `--embed-dependencies` 2017-07-21 10:24:13 -07:00
Scott Van Hess c63e6fa89d Optionally allow gem dependencies to be installed 2017-07-21 10:24:13 -07:00
Jordan Sissel b9f4c1e64f - fix another bad conversion from ftw to net/http. I hate net::http so
much.
2017-07-21 10:24:13 -07:00
jakerobinson 783b06fe97 copy config files external to source 2017-07-21 10:09:23 -07:00
Ward Vandewege 55672427a5 Add --python-setup-py-arguments flag which can be used to pass arbitrary
arguments to setup.py.

This is helpful to package python modules that have a poorly written
setup.py that requires special arguments.
2017-07-21 09:55:01 -07:00
Alexander Weidinger 127b29194a Add --deb-after-purge FILE 2017-07-20 16:41:15 -07:00
Jan Delgado c7393be73f Performance optimization for apk packages: This patch dramatically improves
performance when building larger alpine apk packages.
2017-07-20 14:16:01 -07:00
Thiago Figueiró 07e7e5399d Fix #1123 do not include empty .scripts directory 2017-07-20 14:12:18 -07:00
Nemanja Boric fcd4dfd631 In case of a=b syntax where a is symlink, don't create directory (#1253)
Previously, if the symlink is included into the package and specified
with

my-sym-link.so=/usr/lib/my-sym-link.so

fpm would create directory, and put the
symlink inside `/usr/lib/my-sym-link.so/my-sym-link.so
which is very surprising and it doesn't follow the same
pattern as file copying is doing.

Fixes #1135
2017-07-20 14:00:21 -07:00
Jordan Sissel a8b431bc0b Use lowercase booleans. TRUE/FALSE cause Ruby to show warnings about deprecation 2017-07-20 13:50:10 -07:00
ServiusHack a3ddf38b84 Fix copy_entry for symlinks (#1348)
* Add test for copying symlinks

The test explicitly sets `preserve=true` and `remove_destination=true`
to show the currently broken behavior.

* Fix copy_entry for symlinks

The fourth argument to FileUtils.copy_entry is dereference_root to
which the value of remove_destination was passed.

The fix now passes the parameters in the required position.
2017-07-20 13:11:28 -07:00
Philippe Poilbarbe c2db5985f6 Added --deb-interest-noawait and --deb-activate-noawait (#1225) (#1359) 2017-07-20 13:05:03 -07:00
Dan Kegel 14c4819e41 Implement reproducible gem -> deb conversion (#1360)
* Add option --source-date-epoch-default and implement for deb output.

This is the first step towards supporting bit-for-bit identical
output files given identical inputs.

Alas, Apple's ar is not too good at reading gnu ar archives,
so always use ar_cmd to find ar.

* deb: remove lines duplicated in a tragic merge conflict

Probably introduced by 62d0060178 and not removed by 500f0c052f

* Add options --source-date-epoch-from-changelog and --gem-stagingdir to support bit-for-bit reproducible gem -> deb conversion

In those cases where we can get the release date out of the changelog,
use it; otherwise fall back to the value given by SOURCE_DATE_EPOCH aka --source-date-epoch-default.

--gem-stagingdir is a bit of a kludge, only needed because no
compiler supports https://reproducible-builds.org/specs/build-path-prefix-map/ yet.
Could have been global option, but not sure any other package handler
invokes compilers?  Could hoist it up later.

Also:
- Defer initializing staging_path so subclasses can sneak in new value
- gem: remove build files

* gem: handle a few more gem changelog variants

* gem: also remove mkmf.log; lets ffi, kgio, raindrops, and ruby-ldap build reproducibly.

* deb: don't expect diffoscope to be installed in /usr/bin.  Lets it be found on mac.

* gem: document new options
2017-07-20 12:33:14 -07:00
liger1978 1bda1089a4 Fixes #1345 Test for nil before using metadata[module] in cpan.rb (#1346) 2017-06-19 10:00:41 -07:00
Joseph Anthony Pasquale Holsten 2ea5ecf65f package/dir: remove spurious pry (#1293)
Fixes #1259
2017-06-14 21:46:44 -07:00
Bob Bell b13f2f0a05 Translate Perl version dependencies like 5.008001 proper versions like 5.8.1 (#1342) 2017-06-14 21:41:03 -07:00
liger1978 17cdacb782 Fixes #1343 Ensure self.version is converted to string (#1344) 2017-06-06 12:53:17 -07:00
Bob Bell 32d526fb14 Use capabilities in Perl dependencies (#1340) 2017-06-05 14:25:25 -07:00
Bob Bell 5148814866 Do not remove the leading "v" from version dependencies, since that is how the version of those dependencies themselves are being provided (#1339) 2017-06-05 14:24:12 -07:00
Bob Bell b930bcc874 Update to v1 of MetaCPAN API (#1341) 2017-06-05 13:06:24 -07:00
Bob Bell f393ca6382 Be consistent in letting newer Perl module versions meet the requirements, if not otherwise specified (#1338) 2017-06-05 11:44:13 -07:00
Paulo Sousa 37cc459dd8 pleaserun: add extra options to pleaserun (#1311) 2017-06-02 16:31:05 -07:00
memory 359e4847cb Add --virtualenv-find-links flag (#1318)
"pip install" in addition to the --index-url and --extra-index-url
flags, offers the `--find-links` flag, which tells pip to parse
an html index document looking for wheel/egg/source files without
expecting the "simple" pypi layout or to look in a local directory
for package files.
2017-05-26 08:30:45 -07:00
Bob Vincent c364b2a41e Fix zipfile target. (#1314)
* Fix zipfile target.

* Remove "-y" option which is unsupported on Windows.
2017-04-24 10:35:57 -07:00
vbakayev 6dca7cabf0 fix wrong init.d shim naming (#1325) 2017-04-20 09:22:33 -07:00
Jordan Sissel 859f602f56 Merge pull request #1262 from nicobrevin/fix-virtualenv-prefix-behaviour
Fix virtualenv prefix behaviour (#1248)
2017-04-04 22:43:15 -07:00
Jordan Sissel 1752f4fcb2 Version bump 2017-02-05 01:46:58 -08:00
Nick Griffiths d72ea6c625 Fix for #1248 - fix prefix behaviour 2016-12-30 19:57:15 +13:00
Jordan Sissel 7f483848f9 Release 1.8.0 2016-12-28 01:50:47 -08:00
Jordan Sissel af305e7a87 Merge pull request #1218 from nzjrs/master
make virtualenv packages truly standalone
2016-12-07 15:51:49 -08:00
Jordan Sissel b560b0fcce Merge pull request #1241 from liger1978/fix_cpan_version_query
Fixes #1236 Fixed version number for metacpan search
2016-11-29 17:25:07 -08:00
Jordan Sissel 16401efae9 Version bump to 1.7.0 2016-11-28 15:45:54 -08:00
Richard Grainger 93dacaf0fb Fixes #1236 Fixed version number for metacpan search 2016-11-28 08:42:29 +00:00
Jordan Sissel 888b5860a9 Merge pull request #1235 from cfstras/master
pleaserun: support chdir parameter
2016-11-27 20:13:28 -08:00
Jordan Sissel 9d9df389a0 Merge pull request #1213 from shalq/bz2-support
deb data file should support bz2 format
2016-11-27 19:59:58 -08:00
Jordan Sissel 98af0f6787 Merge pull request #1226 from Daniel15/patch-1
Fix comment in apk.rb
2016-11-27 19:49:59 -08:00
Claus Strasburger b999baf1b9 pleaserun: support chdir parameter
Added support for --pleaserun-chdir to specify the working directory of a
created service.
2016-11-25 14:13:00 +01:00
Jose Diaz-Gonzalez 098c9b2de5 Use StringIO from ruby stdlib
Closes #1148
2016-11-22 14:00:22 -07:00
Daniel Lo Nigro 0764bbdcd7 Fix comment in apk.rb
This file is for Alpine packages, not Debian packages! :D
2016-11-13 15:38:14 -08:00
John Stowers ca8aeb951d virtualenv: add option create with --system-site-packages
this allows virtualenv packages to see the system package
directory
2016-10-23 14:37:16 +02:00
John Stowers e72209b59c virtualenv: add option to also install the package in the virtualenv
one common use-case for a virtualenv requirements.txt source
is to distribute ones software and the dependencies in one
debian file. unfortunately the current implementation doesn't
get one all the way to that goal. Starting with a local checkout
of a python package (containing one's own software, setup.py and
requirements.txt) fpm can create a package that contains the
software dependencies, but not the software itself.

this commit adds an option to also run the package setup.py
after populating the virtualenv, thus giving a means to
package one's own application *and* the dependencies in
one step
2016-10-23 13:28:41 +02:00
Richard Grainger c7839af1f9 Fixes #1206 Improved download URL query for CPAN modules 2016-10-17 21:04:49 +01:00
Long Quan Sha afca45910e deb data file should support bz2 format 2016-10-17 06:29:17 +00:00
Jordan Sissel e9a6f63e2e Merge pull request #1203 from liger1978/fix_merge
Ensured result is not nil. Fixes #1202.
2016-10-15 19:33:10 -07:00
Jordan Sissel 9af51d7364 Merge pull request #1210 from nicobrevin/bugfix-virtualenv-various
Bugfix virtualenv various
2016-10-15 19:24:17 -07:00
Nick Griffiths 4cdab37074 Fix failing virtualenv test 2016-10-15 16:42:19 +13:00
Nick Griffiths fc648021e4 Cope with longer tmp dirs - shebangs must be < 128 chars 2016-10-15 16:11:17 +13:00
Richard Grainger 33216ad7d7 Ensured result is not nil. Fixes #1202. 2016-10-09 22:36:11 +01:00