Different file (/usr/share/nodejs/react-is/index.js ) contents when installing via "apt install" and build from source, install package node-react 17.0.2+dfsg+~cs106.66.62-1

Bug #2047517 reported by Petrov Petr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
node-react (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello.

Please help.

I have a problem with package node-react on Ubuntu 22.04.
node-react 17.0.2+dfsg+~cs106.66.62-1.

Different file (/usr/share/nodejs/react-is/index.js ) contents when installing via "apt install" and build from source, install built from source package.

Maybe there is a patch for this problem? It will be good for me.

Sequence of testing:

1. sudo apt-get install node-react
output of command:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
node-prop-types
The following NEW packages will be installed:
node-prop-types node-react
0 upgraded, 2 newly installed, 0 to remove and 54 not upgraded.
Need to get 0 B/528 kB of archives.
After this operation, 13,8 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package node-react.
(Reading database ... 206340 files and directories currently installed.)
Preparing to unpack .../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb ...
Unpacking node-react (17.0.2+dfsg+~cs106.66.62-1) ...
Selecting previously unselected package node-prop-types.
Preparing to unpack .../node-prop-types_15.7.2+~15.7.4-2_all.deb ...
Unpacking node-prop-types (15.7.2+~15.7.4-2) ...
Setting up node-react (17.0.2+dfsg+~cs106.66.62-1) ...
Setting up node-prop-types (15.7.2+~15.7.4-2) ...

2. cat /usr/share/nodejs/react-is/index.js
output:
'use strict';

if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-is.production.min.js');
} else {
module.exports = require('./cjs/react-is.development.js');
}

3. apt-get source -b node-react maybe required to call "sudo apt-get build-dep node-react" before.
some output:
dpkg-source: info: extracting node-react in node-react-17.0.2+dfsg+~cs106.66.62
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-react-shallow-renderer.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-create-subscription.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-cache.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-devtools.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-dom.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-is.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-reconciler.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-test-renderer.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-scheduler.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-use-subscription.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-typesreact.tar.xz
dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
....
dpkg-deb: building package 'node-react' in '../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb'.
dpkg-genbuildinfo --build=binary -O../node-react_17.0.2+dfsg+~cs106.66.62-1_amd64.buildinfo
dpkg-genchanges --build=binary -O../node-react_17.0.2+dfsg+~cs106.66.62-1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

3. sudo dpkg -i ./node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb
output:
(Reading database ... 206652 files and directories currently installed.)
Preparing to unpack .../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb ...
Unpacking node-react (17.0.2+dfsg+~cs106.66.62-1) over (17.0.2+dfsg+~cs106.66.62-1) ...
Setting up node-react (17.0.2+dfsg+~cs106.66.62-1) ...

4. cat /usr/share/nodejs/react-is/index.js
output:
/**

Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
@flow
*/
'use strict';

export * from './src/ReactIs';

Revision history for this message
Petrov Petr (ppetrov75) wrote :

Hello.

Additional Information. The difference is not just in the one file. If you unpack a deb files with the -x from repository and built from source, the contents of the directories will be very very different.

I hope the problem will be solved. Ubuntu 22.04 has label LTS (long term support)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.