Commit Graph

256053 Commits

Author SHA1 Message Date
Farid Zakaria
4af8bc084a
buildRubyGem: fix to support bundler cmds (#104977)
The way in which Nixpks builds Ruby gems means that certain operations
by bundler *will not work*, namely `bundle install --redownload`.

According to the source the _cache/_ directory should have been kept,
however it seems through revisions to the file it has been purged.

Here was the comment from the original commit that introduced
buildRubyGem:
```
  # Note:
  #   We really do need to keep the $out/${ruby.gemPath}/cache.
  #   This is very important in order for many parts of RubyGems/Bundler to not blow up.
  #   See https://github.com/bundler/bundler/issues/3327
```

Why is the _cache_ directory needed?

Bundler and RubyGems uses the cache as a source of truth.
When bundler executes `bundler install --redownload`, any gems it
discovers in the _GEM_PATH_ it assums must have their _.gem_ file
present in the cache (unaware it was installed from Nix).

Rather than downloading the gem from RubyGems the bundler code forcibly
re-installs the gem from the cache directory instead and **fails** if it
does not exist.

I've opened https://github.com/rubygems/rubygems/issues/4088 to see if
this failure should be soft and not so explicit; or fallback to fetching
the gem from scratch.

Without this change the following is the error:
```bash
> [nix-shell:~/code/nix/playground/jruby-bundler-rake]$ bundle install --force
[DEPRECATED] The `--force` option has been renamed to `--redownload`
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/nix/store/fis6nzrpw9pmcivr84qh5byfgm07qn10-jruby-9.2.13.0/lib/ruby/stdlib/jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Fetching gem metadata from https://rubygems.org/.
Using bundler 2.1.4
Installing hello-world 1.2.0
Bundler::GemNotFound: Could not find hello-world-1.2.0.gem for installation
An error occurred while installing hello-world (1.2.0), and Bundler
cannot continue.
Make sure that `gem install hello-world -v '1.2.0' --source
'https://rubygems.org/'` succeeds before bundling.
```

Wth the fix the following no woccurs:
```bash
[nix-shell:~/code/nix/playground/jruby-bundler-rake]$ bundle install --redownload
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/nix/store/69wjlj4yirp48rv1q03zxgd4xvf0150d-jruby-9.2.13.0/lib/ruby/stdlib/jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Fetching gem metadata from https://rubygems.org/.
Using bundler 2.1.4
Installing hello-world 1.2.0
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
```

```
[nix-shell:~/code/nix/playground/jruby-bundler-rake]$ ls -l /nix/store/cwl9n5073hqgpfhnw4wic13nrrgg9dn8-gem-env/lib/jruby/gems/2.5.0/cache/
total 8
lrwxrwxrwx 1 fmzakari primarygroup 102 Dec 31  1969 bundler-2.1.4.gem -> /nix/store/ifc8a0gsfkrhkv953rd4rz8bcspahi8y-bundler-2.1.4/lib/jruby/gems/2.5.0/cache/bundler-2.1.4.gem
lrwxrwxrwx 1 fmzakari primarygroup 110 Dec 31  1969 hello-world-1.2.0.gem -> /nix/store/xi9ln6n1mz2is5ppykjxqhhkpjq9zm6i-hello-world-1.2.0/lib/jruby/gems/2.5.0/cache/hello-world-1.2.0.gem
```

I have a minimal project that demonstrates this issue at https://github.com/fzakaria/jruby-bundler-nix-failure
2020-11-30 12:15:12 +01:00
adisbladis
a52850e304
Merge pull request #105113 from adisbladis/pythonforbuild-overrides
python: Propagate packageOverrides to pythonForBuild
2020-11-30 11:41:58 +01:00
Maximilian Bosch
b516a09d46
Merge pull request #104603 from siraben/errcheck-update
errcheck: 1.1.0 -> 1.4.0
2020-11-30 11:36:33 +01:00
Maximilian Bosch
b74f180181
Merge pull request #105421 from RaghavSood/aleth/delete
cpp_ethereum: remove
2020-11-30 11:30:16 +01:00
0x4A6F
7a6405448d
routinator: 0.8.0 -> 0.8.1 2020-11-30 10:18:04 +00:00
adisbladis
49b8738a5f
python: Propagate packageOverrides to pythonForBuild
When overriding versions of build tools injected via hooks
`packageOverrides` was not taken into account and 2 incompatible
versions of the same package (`wheel` in this case) ended up in the
closure, causing the builds to fail.
2020-11-30 11:12:59 +01:00
R. RyanTM
1a4e03072c python37Packages.vispy: 0.6.5 -> 0.6.6 2020-11-30 09:51:10 +00:00
Maximilian Bosch
ee3c23e0a3
documize-community: 3.8.1 -> 3.8.2
https://github.com/documize/community/releases/tag/v3.8.2
2020-11-30 10:36:24 +01:00
Andreas Rammhold
afcbecc144
firefox: remove unused "imports"
These haven't been used in some time and there is no point in keeping
them around. They just clutter the file right now.
2020-11-30 10:26:45 +01:00
Andreas Rammhold
cdff2a832c
firefox: add aarch64 SIMD patch
This patch fixes compilation on aarch64 that broke somewhere between the
upgrade to the lateste rustc and the firefox 82 to 83 upgrade.

The patch has been submitted upstream and can probably be removed on the
next version bump.
2020-11-30 10:24:46 +01:00
R. RyanTM
e53c0f98f7 python37Packages.pymavlink: 2.4.12 -> 2.4.13 2020-11-30 09:16:42 +00:00
Arnout Engelen
9062f6fdf7
parted: build with python3 2020-11-30 10:15:05 +01:00
Andreas Rammhold
1d0225adc0
firefox: move the no-buildconfig-ffx76 patch into common
This patch has been used on all our flavors for some time now. We can
just move it to the common expression.
2020-11-30 10:09:05 +01:00
R. RyanTM
1ddae1e4bf python37Packages.pybullet: 3.0.6 -> 3.0.7 2020-11-30 09:08:34 +00:00
Pavol Rusnak
24eb3f87fc
Merge pull request #105130 from Th0rgal/master
ledger-live-desktop: 2.16.0 -> 2.17.1
2020-11-30 09:33:03 +01:00
R. RyanTM
7f27852831 python37Packages.smart_open: 4.0.0 -> 4.0.1 2020-11-30 08:17:34 +00:00
R. RyanTM
524c24ceb8 python37Packages.blessed: 1.17.11 -> 1.17.12 2020-11-30 07:26:59 +00:00
Vincent Laporte
389ac5f00e ocamlPackages.batteries: 3.1.0 → 3.2.0 2020-11-30 08:13:28 +01:00
R. RyanTM
53408c2cf9 python37Packages.mac_alias: 2.1.0 -> 2.1.1 2020-11-30 06:50:37 +00:00
Jörg Thalheim
3b6ef967f3
nixos/rspamd: fix postfix integration 2020-11-30 07:29:32 +01:00
Farid Zakaria
aa7493063a doc: convert weechat docs to commonmark
This is essentially an automatic pandoc conversion of the weechat
section in docbook as part of the larger CommonMark Docs project
(https://github.com/NixOS/nixpkgs/projects/37)

fixes #105264

Update doc/builders/packages/weechat.section.md

Co-authored-by: Frederik Rietdijk <freddyrietdijk@fridh.nl>

Update doc/builders/packages/weechat.section.md

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2020-11-29 21:52:17 -08:00
Wil Taylor
b6bca3d806
doc/Qt: migrate to CommonMark (#105004)
* Updated QT section

* Fixed trailing whitespace

* Update doc/languages-frameworks/qt.section.md

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>

* Update doc/languages-frameworks/qt.section.md

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>

* Made changes to docs as per jtojnar's review

* Added docbook tags for callouts back in

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2020-11-29 20:30:29 -08:00
Mario Rodas
3c22950438 wal-g: 0.2.18 -> 0.2.19
https://github.com/wal-g/wal-g/releases/tag/v0.2.19
2020-11-30 04:20:00 +00:00
R. RyanTM
3b1b6510e3 python37Packages.pytest-metadata: 1.10.0 -> 1.11.0 2020-11-29 20:07:21 -08:00
Raghav Sood
1fd8d571ed
cpp_ethereum: remove 2020-11-30 03:23:21 +00:00
Sandro
ea3561228d
Merge pull request #105387 from freezeboy/unbreak-py2-ecpy
python2Packages.ecpy: unbreak due to invalid code
2020-11-30 04:05:14 +01:00
Mario Rodas
04238cf7f7
Merge pull request #104941 from r-ryantm/auto-update/axel
axel: 2.17.9 -> 2.17.10
2020-11-29 21:42:16 -05:00
Mario Rodas
f180a29b03
Merge pull request #105403 from r-ryantm/auto-update/python2.7-ijson
python27Packages.ijson: 3.1.2.post0 -> 3.1.3
2020-11-29 21:29:13 -05:00
Mario Rodas
4572d27853
Merge pull request #105416 from r-ryantm/auto-update/python3.7-jupyterlab_git
python37Packages.jupyterlab-git: 0.23.1 -> 0.23.2
2020-11-29 21:24:53 -05:00
Martin Weinelt
ec433df657
Merge pull request #105413 from ryantm/updatereadme
readme: update reference to number of packages
2020-11-30 03:07:20 +01:00
Sandro
c64538b659
Merge pull request #105348 from Mic92/httpbin
python3.pkgs.httpbin: 0.6.2 -> 0.7.0
2020-11-30 02:30:07 +01:00
Sandro
b678eab5d8
Merge pull request #105389 from oyren/portfolio-0.49.3
portfolio: 0.49.2 -> 0.49.3
2020-11-30 02:29:35 +01:00
Sandro
9d5d6b0a26
Merge pull request #104807 from SuperSandro2000/auto-update/python3.7-b2sdk 2020-11-30 02:13:30 +01:00
Sandro
142bd18593
Merge pull request #105408 from RonanMacF/master
vimPlugins.nvim-ts-rainbow: init at 2020-11-25
2020-11-30 02:03:13 +01:00
Sandro
5c9051e211
Merge pull request #105404 from jupblb/add-glow-nvim 2020-11-30 02:01:33 +01:00
R. RyanTM
6e1c706c00 python37Packages.jupyterlab-git: 0.23.1 -> 0.23.2 2020-11-30 00:53:15 +00:00
Sandro
e065cbf01c
Merge pull request #105386 from arnarg/tmux-jump
tmuxPlugins.jump: init at 2020-06-26
2020-11-30 01:42:52 +01:00
Sandro
26c543168c
Merge pull request #105352 from r-ryantm/auto-update/python2.7-dependency-injector
python27Packages.dependency-injector: 4.4.1 -> 4.5.1
2020-11-30 01:34:36 +01:00
R. RyanTM
4958f5060b python37Packages.Wand: 0.6.4 -> 0.6.5 2020-11-30 00:23:02 +00:00
Ryan Mulligan
82657dc074 readme: update reference to number of packages
We updated the top of the readme to reference 60,000, but we forgot to
update this reference. This changes it so it won't become invalid for
a bit.
2020-11-29 16:18:12 -08:00
Dennis Gosnell
a2b278f095
Merge pull request #105400 from arcz/libff
libff: init at 1.0.0
2020-11-30 09:08:26 +09:00
Ryan Mulligan
db4f3eafb0
Merge pull request #105302 from AndersonTorres/wip-kakoune
Convert Kakoune documentation from XML DocBook to Commonmark
2020-11-29 15:51:41 -08:00
jupblb
49528362eb
vimPlugins.glow-nvim: init at 2020-08-31 2020-11-30 00:49:23 +01:00
Sandro
438679e1fb
Merge pull request #105361 from stigtsp/package/perl-crypt-perl-init 2020-11-30 00:39:13 +01:00
AndersonTorres
25b8aa4a85 Convert Kakoune documentation from XML DocBook to Commonmark 2020-11-29 20:19:28 -03:00
Justin Bedo
5fc6258043
bwa: expand supported platforms 2020-11-30 09:46:51 +11:00
Sandro
e23f098b69
Merge pull request #105381 from arnarg/tmux-tilish
tmuxPlugins.tilish: init at 2020-08-12
2020-11-29 23:30:58 +01:00
RonanMacF
2724d807c9 vimPlugins.nvim-ts-rainbow: init at 2020-11-25 2020-11-29 22:29:34 +00:00
R. RyanTM
e15ce6b6fa python27Packages.ijson: 3.1.2.post0 -> 3.1.3 2020-11-29 22:23:32 +00:00
jupblb
09d73e29df
vimPlugins: update 2020-11-29 23:23:11 +01:00