Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585490 - app-editors/atom-1.7.4-r1 - runtime error: `apm help' returns 'Error: Module version mismatch. Expected 48, got 47'
Summary: app-editors/atom-1.7.4-r1 - runtime error: `apm help' returns 'Error: Module ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-09 19:08 UTC by José Romildo Malaquias
Modified: 2016-06-12 22:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=app-editors/atom-1.7.4-r1' (info.txt,17.93 KB, text/plain)
2016-06-09 19:08 UTC, José Romildo Malaquias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2016-06-09 19:08:43 UTC
Created attachment 437018 [details]
emerge --info '=app-editors/atom-1.7.4-r1'

Running apm on my ~amd64 system fails with the error below:

% apm help                                             
(node:1836) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:1836) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
module.js:568
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: Module version mismatch. Expected 48, got 47.
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib64/atom/app/apm/node_modules/git-utils/lib/git.js:8:16)
    at Object.<anonymous> (/usr/lib64/atom/app/apm/node_modules/git-utils/lib/git.js:371:4)
    at Module._compile (module.js:541:32)
Comment 1 Patrice Clement (RETIRED) gentoo-dev 2016-06-10 16:51:14 UTC
commit 16c842dc06be668d6b9491eba9bf5c234fc2c00a (HEAD -> master, origin/master, origin/HEAD)
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: Fri Jun 10 10:35:46 2016 -0400
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Jun 10 16:22:43 2016 +0000

app-editors/atom: Fix app.asar repacking. Fixes bug 585490.

Gentoo-Bug: https://bugs.gentoo.org/585490

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1640

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

app-editors/atom/atom-1.7.4-r1.ebuild      | 392 -----------------------------------------------------------------------------------------------------------------------
app-editors/atom/atom-1.7.4-r2.ebuild      | 405 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
app-editors/atom/files/atom-apm-path.patch |   4 +-
3 files changed, 407 insertions(+), 394 deletions(-)
delete mode 100644 app-editors/atom/atom-1.7.4-r1.ebuild
create mode 100644 app-editors/atom/atom-1.7.4-r2.ebuild
Comment 2 Elvis Pranskevichus 2016-06-10 18:15:12 UTC
Actually, it seems like this particular bug is caused by NodeJS version mismatch.  Looks like NodeJS 6.0 bumped the module version.
Comment 3 Patrice Clement (RETIRED) gentoo-dev 2016-06-12 22:11:44 UTC
commit d0e3063815f3a4ae8ea583593f9d4eef3d53e460 (HEAD -> master, origin/master, origin/HEAD)
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: Sun Jun 12 17:05:27 2016 -0400
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Sun Jun 12 21:41:49 2016 +0000

dev-util/electron: Build node executable, fix automagic cups dependency.

Electron and apps based on it cannot rely on system NodeJS
for compatibility reasons. Fix this by building and using
a nodejs executable based on bundled nodejs code.

Additionally, fix automagic dependency on libcups and remove dependency on
system nodejs

Gentoo-Bug: https://bugs.gentoo.org/585116
Gentoo-Bug: https://bugs.gentoo.org/585490
Gentoo-Bug: https://bugs.gentoo.org/585464

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1664
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

app-editors/atom/atom-1.7.4-r2.ebuild                         | 405 ----------------------------------------------------------
app-editors/atom/atom-1.7.4-r3.ebuild                         | 420 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dev-util/electron/electron-0.36.12-r2.ebuild                  | 721 -------------------------------------------------------------------------------------------------------
dev-util/electron/electron-0.36.12-r3.ebuild                  | 722 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dev-util/electron/files/brightray-gentoo-build-fixes-r1.patch |  37 +++++-
dev-util/electron/files/electron-gentoo-build-fixes.patch     | 127 +++++++++++++++++--
dev-util/electron/files/node-external-snapshots.patch         | 116 +++++++++++++++++
dev-util/electron/files/node-gentoo-build-fixes.patch         |  95 +++++++++++---
8 files changed, 1478 insertions(+), 1165 deletions(-)
delete mode 100644 app-editors/atom/atom-1.7.4-r2.ebuild
create mode 100644 app-editors/atom/atom-1.7.4-r3.ebuild
delete mode 100644 dev-util/electron/electron-0.36.12-r2.ebuild
create mode 100644 dev-util/electron/electron-0.36.12-r3.ebuild
create mode 100644 dev-util/electron/files/node-external-snapshots.patch