Commit Graph

2402 Commits

Author SHA1 Message Date
Jordan Sissel 7cc4aa7509 Add two tests to cover parts of #2102. The 'normal files' test covers the reported issue in #2102 and fails in this commit. 2025-09-26 20:15:54 -07:00
Jordan Sissel 207bd73577 Add ruby 3.4 and also run apt-get update to try and work around "apt-get install ..." failing sometimes unpredictably? 2025-09-22 13:38:06 -07:00
André Kelpe 7ef007ef5f fix RPM documentation links in docs and code (#2092)
The previous versions where all returning 404. This change points to the
new correct locations.
2025-03-05 20:42:25 -08:00
Markson Hon 3f044a426f
pacman.rb: fix aarch64 & arm7hf (#2017) 2025-03-05 20:18:15 -08:00
Jordan Sissel 4beb98f193
Merge pull request #2088 from jordansissel/issue/2087
rpm: Escape { and } characters in filenames
2025-03-05 20:15:07 -08:00
Jordan Sissel 2c301c733d Try to make {} file names work in RPM v4.18 and older.
RPM 4.19 added some changes to make it easier or at least more
consistent to escape 'unusual' filename characters. However, RPM v4.18
and earlier do not benefit from this change, so I'm hoping that
replacing {} with ? (wild-card single) characters will work on those
versions. It works fine on v4.19.
2024-12-20 20:52:45 -08:00
Jordan Sissel b10350b913 Fix bug causing DEBUG logging not to work in rspec 2024-12-19 13:34:08 -08:00
Jordan Sissel 93ac15729b Escape { and } characters in filenames
* Add test coverage for escaping { and } filename characters

Fixes #2087
2024-12-19 12:59:07 -08:00
Jordan Sissel 08dc21b8f1 Version bump and generate docs 2024-12-08 23:22:18 -08:00
Jordan Sissel f817f7a5da Update changelog prep for release. 2024-12-08 23:21:12 -08:00
Jordan Sissel f714f4b4f1
Merge pull request #2084 from jordansissel/pull/2009
When using zstd, use tar flags that are compatible with both gnu tar and bsdtar (#2009)
2024-12-08 22:53:24 -08:00
Jordan Sissel 28fea4c930
Merge pull request #2085 from jordansissel/feature/add-rpm-old-perl-flag
Add flag to allow using older 'perl' rpm dependency name for systems which do not have 'perl-interpreter' dependency available. (#2066)
2024-12-08 22:53:09 -08:00
Jordan Sissel b2f2fc6624
Merge branch 'main' into pull/2009 2024-12-08 22:45:49 -08:00
Jordan Sissel e7e7449815
Merge pull request #2053 from JordanStopford/main
Fix for #1627
2024-12-08 22:42:37 -08:00
Jordan Sissel 862a6863cd Add flag to allow using older 'perl' rpm dependency name for systems which do not have 'perl-interpreter' dependency available. (#2066) 2024-12-08 22:21:30 -08:00
Jordan Sissel 858d1c1419
Merge pull request #2066 from kduret/fix-rpm-perl-dependency-name
fix(rpm): replace perl dependency by perl-interpreter
2024-12-08 22:20:34 -08:00
Jordan Sissel 98cc060ede Merge branch 'chouquette/add_compression_level' (#2036) 2024-12-07 23:28:55 -08:00
Jordan Sissel 512f4a9eb3 Fix syntax I broke when doing a merge conflict 2024-12-07 23:28:42 -08:00
Jordan Sissel 8acb2f51d7
Merge branch 'main' into chouquette/add_compression_level 2024-12-07 23:24:39 -08:00
Jordan Sissel 468f455862
Merge pull request #2041 from UiP9AV6Y/feature_rpm_changelog
rpm: generate changelog if none is provided
2024-12-07 23:17:00 -08:00
Jordan Sissel e6b83c4788
Merge pull request #2062 from willaerk/main
Escape the pylib path when using it in a shell command
2024-12-07 23:12:58 -08:00
Jordan Sissel 13a3c6992e
Merge pull request #2063 from skoef/systemd-path-flag
Add option --deb-systemd-path
2024-12-07 23:11:12 -08:00
Jordan Sissel 572cf390a7
Merge branch 'main' into systemd-path-flag 2024-12-07 23:09:53 -08:00
Jordan Sissel d30e641bb8 Update changelog 2024-12-07 23:00:04 -08:00
Jordan Sissel ad4402f3bf
Merge pull request #2068 from mattaezell/pip_zip
Support pip download returning a zip file
2024-12-07 22:56:43 -08:00
Jordan Sissel c326b39d95 When using zstd, use tar flags that are compatible with both gnu tar and bsdtar (#2009) 2024-12-07 22:43:00 -08:00
Jordan Sissel e66a359a10
Merge pull request #2009 from SaltwaterC/main
Add support for zstd compression for deb packages.
2024-12-07 22:42:46 -08:00
Jordan Sissel c028e71206
Merge pull request #2082 from wheaney/patch-1
Update rpm.rb
2024-12-02 10:17:07 -08:00
Wayne Heaney 0fb0d26152
Update rpm.rb
Leave old `--define` argument in place for `buildroot`
2024-11-04 22:02:31 -08:00
Wayne Heaney b852c59b02
Update rpm.rb
Fix how buildroot is specified to better conform with the rpmbuild CLI. The old way was failing with `File not found` errors.
2024-10-29 13:45:47 -07:00
Matt Ezell 790f53c766 Support pip download returning a zip file
Signed-off-by: Matt Ezell <ezellma@ornl.gov>
2024-09-23 10:33:57 -04:00
Jordan Sissel d81a1ad1ac
Merge pull request #2064 from TwitchCaptain/main
Create FreeBSD packages with correct architecture
2024-09-12 10:56:52 -07:00
Jordan Sissel fd06d93533
Merge pull request #2067 from jordansissel/improvement/errors-not-exceptions
Configuration problems should print errors, not stack traces.
2024-09-12 10:52:50 -07:00
Jordan Sissel e94f56c01e Flag errors should use FPM::Package::InvalidArgument 2024-09-12 10:48:55 -07:00
Jordan Sissel 843c729b16 Configuration errors should raise a specific exception
Raising FPM::InvalidPackageConfiguration will allow the fpm command-line
to print an error message and exit non-zero.

Raising other exceptions will often produce a crash-like behavior which
prints the exception and a stack trace. Stack traces are not helpful
content in situations where a user has made a configuration error.
2024-09-12 10:39:55 -07:00
Jordan Sissel 18e04a70e1
Merge pull request #2065 from phillipp/main
Add support for .timer units to --deb-systemd
2024-09-12 10:20:56 -07:00
Kevin Duret e7903804af fix(rpm): replace perl dependency by perl-interpreter 2024-09-06 09:22:28 +02:00
Phillipp Röll 6957220642 Add support for .timer units to --deb-systemd
Before the change, when using an option --deb-systemd myunit.timer,
the actual file created would be
/lib/systemd/system/myunit.timer.service

Because of that, systemd would then not find the timer.

With this change, the correct extension is extracted from the file,
defaulting to .service.

Typically, there would be two files for installing a timer:

--deb-systemd myunit.service (where .service could be omitted) and
--deb-systemd myunit.timer

So that the .timer references a .service file.
2024-08-12 14:47:47 +02:00
David Newhall II bf0aa55655 build proper freebsd package 2024-08-08 06:07:24 -07:00
Reinier Schoof 5092c5f659 Add option --deb-systemd-path
This option will allow you to override the path within the staging directory
systemd service files are moved to in debian packages.

On some systems systemd should not go in the hardcoded /lib/systemd/system but
in /usr/lib/systemd/system instead. Many systems have the both symlinked, but
not all so assuming /lib/systemd/system can be dangerous.

Signed-off-by: Reinier Schoof <reinier@skoef.nl>
2024-06-26 15:54:02 +02:00
Kristof Willaert 5960c8c4a7 Escape the pylib path when using it in a shell command 2024-05-16 18:13:54 +02:00
Jordan Stopford eb56972540 Fix for #1627
Strip rpmlib dependencies
2024-04-23 17:30:48 +01:00
Jordan Stopford 20aa78c72c Fix for #1627
When packaging a deb sometimes a path to a binary comes into the requires field i.e. /bin/sh but this isn't valid for control files. Strip this out
2024-04-23 16:33:39 +01:00
Jordan Stopford ae8205261a Fix for #1627
When packaging a deb sometimes a path to a binary comes into the requires field i.e. /bin/sh but this isn't valid for control files. Strip this out
2024-04-23 16:01:42 +01:00
Jordan Stopford 0cba81fbe4
Merge branch 'jordansissel:main' into main 2024-04-17 16:31:26 +01:00
Jordan Sissel 9d3d96a93d
Merge pull request #2057 from brad/patch-1
fix the link to ruby installation instructions
2024-04-11 08:54:05 -07:00
Brad Pitcher 86be3cc802
fix the link to ruby installation instructions 2024-04-11 08:06:02 -06:00
Jordan Sissel 13228bf566
Merge pull request #2023 from cwegener/main
chore: relax 'clamp' version pin
2024-04-08 21:28:38 -07:00
Christoph Wegener d0884e8903 chore: relax 'clamp' version pin
Ubuntu 22.04 LTS comes with ruby-clamp 1.1.1 which seems to work just
fine with fpm 1.15.1

Relaxing the version pin seems to be the right thing to do.
2024-04-09 10:31:22 +10:00
Jordan Stopford 3b2b258020 Fix for #1627
When packaging a deb sometimes the architecture comes through as part of the provides (not sure why) but this causes problems with the deb package as it seems to only ever expect one set of round brackets which is the version indicator
2024-03-08 10:37:34 +00:00