[Pkg-javascript-devel] node-react, Version: 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 package
Petr Petrov
petr.petrov75 at gmail.com
Thu Dec 21 08:29:03 GMT 2023
Hello.
Please help.
I have a problem with package node-react on Ubuntu 22.04.
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 you will point me to the patch etc? Required to open a ticket?
I checked this problem on Debian12. Contents of the file react-is/index.js
are the same when installed via apt or install from sources. Debian12
has node-react_18.2.0+dfsg+~cs87.31.26-4 and added a separate package
node-react-is.
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');
}
1.
*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)
2.
*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) ...
3.
*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 <https://github.com/flow>
*/
'use strict';
export * from './src/ReactIs';
Best Wishes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20231221/9cd6f026/attachment.htm>
More information about the Pkg-javascript-devel
mailing list