Public bug reported:

node-mime-types FTBFS with node-mime 2.3.1

node-mime 2.3.1 no longer ships /usr/share/node-mime/types.json,
leading to this build failure:

 ...
 # just copy the file from node-mime
 cp /usr/share/node-mime/types.json node_modules/mime-db/src/deb.types.json
 cp: cannot stat '/usr/share/node-mime/types.json': No such file or directory

 make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1
 make[1]: Leaving directory '/tmp/autopkgtest.bNiyPN/build.yAz/src'
 make: *** [debian/rules:8: build] Error 2
 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
 ...

The new version ships /usr/share/node-mime/{standard,other}.json instead.
Debian upstream switched to only standard.json, not other.json.

With this patch from Debian, the package builds correctly:

 ...
 # just copy the file from node-mime
 cp /usr/share/node-mime/standard.json node_modules/mime-db/src/deb.types.json
 cd node_modules/mime-db/ && nodejs scripts/build
 make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 ...

** Affects: node-mime-types (Ubuntu)
     Importance: Undecided
     Assignee: Mauricio Faria de Oliveira (mfo)
         Status: In Progress

** Changed in: node-mime-types (Ubuntu)
       Status: New => In Progress

** Changed in: node-mime-types (Ubuntu)
     Assignee: (unassigned) => Mauricio Faria de Oliveira (mfo)

** Description changed:

  node-mime-types FTBFS with node-mime 2.3.1
  
  node-mime 2.3.1 no longer ships /usr/share/node-mime/types.json,
  leading to this build failure:
  
-       ...
-       # just copy the file from node-mime
-       cp /usr/share/node-mime/types.json 
node_modules/mime-db/src/deb.types.json
-       cp: cannot stat '/usr/share/node-mime/types.json': No such file or 
directory
+  ...
+  # just copy the file from node-mime
+  cp /usr/share/node-mime/types.json node_modules/mime-db/src/deb.types.json
+  cp: cannot stat '/usr/share/node-mime/types.json': No such file or directory
  
-       make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1
-       make[1]: Leaving directory '/tmp/autopkgtest.bNiyPN/build.yAz/src'
-       make: *** [debian/rules:8: build] Error 2
-       dpkg-buildpackage: error: debian/rules build subprocess returned exit 
status 2
-       ...
+  make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1
+  make[1]: Leaving directory '/tmp/autopkgtest.bNiyPN/build.yAz/src'
+  make: *** [debian/rules:8: build] Error 2
+  dpkg-buildpackage: error: debian/rules build subprocess returned exit status 
2
+  ...
  
  The new version ships /usr/share/node-mime/{standard,other}.json instead.
  Debian upstream switched to only standard.json, not other.json.
  
- With this patch, the package builds correctly.
+ With this patch from Debian, the package builds correctly:
+ 
+  ...
+  # just copy the file from node-mime
+  cp /usr/share/node-mime/standard.json node_modules/mime-db/src/deb.types.json
+  cd node_modules/mime-db/ && nodejs scripts/build
+  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
+  ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1793367

Title:
  node-mime-types FTBFS with node-mime 2.3.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/node-mime-types/+bug/1793367/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to