[DRE-maint] Bug#998253: ExecJS::ProgramError: TypeError: Cannot read property 'env' of undefined

Pirate Praveen praveen at onenetbeyond.org
Wed Nov 3 21:49:27 GMT 2021


On Mon, 01 Nov 2021 19:07:19 +0200 Dragos Jarca
<dragos.jarca at dynamicpuzzle.ro> wrote:
> Package: gitlab
> Version: 14.2.6+ds1-1
> Severity: grave
> Justification: renders package unusable
> 
> Dear Maintainer,
> 
> Upgrade gitlab to 14.2.6+ds1-1 fail with error:
> 
> Precompiling assets...
> + runuser -u gitlab -- sh -c /usr/bin/bundle exec rake tmp:cache:clear assets:precompile
> 
> rake aborted!
> ExecJS::ProgramError: TypeError: Cannot read property 'env' of undefined
> browserslist ((execjs):63463:17)
> Browsers.parse ((execjs):65564:13)
> new Browsers ((execjs):65552:27)
> loadPrefixes ((execjs):74643:23)
> Object.prepare ((execjs):74657:23)
> (execjs):60521:40
> Array.map (<anonymous>)
> new LazyResult ((execjs):60519:44)
> Processor$1.process ((execjs):60920:13)
> process ((execjs):74707:62)
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/processor.rb:35:in `process'
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/sprockets.rb:22:in `run'
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/sprockets.rb:16:in `call'
> /usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
> Tasks: TOP => assets:precompile
> (See full trace by running task with --trace)
> dpkg: error processing package gitlab (--configure):
>  installed gitlab package post-installation script subprocess returned error exit status 1
>  
> Please help me to solve this situation.

I was able to reproduce the issue, but not yet sure what broke it. This
seems to be caused by node-browserslist but will need to confirm.

Staying on unstable is harder than fasttrack for this reason. I'd
recommend you switch to fasttrack versions or be prepared to have
breakages like this often.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211104/bec4877f/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list