1
0
mirror of https://github.com/jordansissel/fpm synced 2025-04-19 13:18:03 +02:00
fpm/templates
Jordan Sissel 541550a74d Allow versions in Provides field for Debian packages
This fixes #1788. This also reverts #280. For #280, at the time, this
change to ignore versions was correct. Two years after #280, Debian
began allowing `Provides` field to have versions.

This change also fixes bug in gem-to-deb conversion where previously an
incorrect Provides syntax would be generated (but thanks to #280,
removed), so this bug was only noticed after #280 was undone!

Computers are hard sometimes.

Added tests for gem-to-deb conversion specifically for the Provides
field.

Tested manually with Docker on Ubuntu 14.04 and 18.04 and results meet
expectations.

The history here is follows:
* In 2012, fpm was patched to remove version specifiers in Provides
  field because Debian didn't support it.
* In 2014, Debian dpkg[1] added support for versions in Provides field
* Somewhere between 2015-2018, Debian and Ubuntu included this new
  version of dpkg.
* Debian packaging policy docs (v4.4.0) was updated to allow versions
  in the Provides field.

Expected impacts:
* Older versions of dpkg/etc should _ignore_ the presence of a version
  specifier. Testing on Ubuntu 14.04 confirmed this.
* Newer versions of dpkg/etc should respect the presence of a version
  specifier. Testing on Ubuntu 18.04 confirmed this.

[1] https://launchpad.net/debian/+source/dpkg/1.17.11
2021-07-06 14:25:06 -07:00
..
deb Ensure an if-then-else doesn't have an empty if block 2021-06-17 08:30:31 -07:00
pacman Fix more pacman tests 2015-05-08 19:59:38 -06:00
pleaserun Check for /lib and /usr/lib. Debian uses /lib, everyone else seems to use /usr/lib. 2016-05-16 05:22:41 -07:00
puppet - some code cleanup 2011-06-20 23:00:18 -07:00
rpm Auto add directories for rpm 2013-04-17 20:19:01 +05:30
deb.erb Allow versions in Provides field for Debian packages 2021-07-06 14:25:06 -07:00
osxpkg.erb Initial OS X package support, #317. 2013-01-07 12:28:03 -05:00
p5p_metadata.erb Add support for Solaris 11 style IPS packages using *.p5p format 2015-04-10 17:45:18 -04:00
pacman.erb Fix the bug brought up by @ServiusHack 2015-09-16 20:52:04 -06:00
rpm.erb Add back newlines after sections with macro expansion 2021-06-19 00:16:58 -07:00
sh.erb Use head/tail over sed for metadata fetching in sh.erb template 2021-01-19 12:49:18 -08:00
solaris.erb Restore solaris package building 2012-11-28 11:17:25 +01:00