Bug#719382: node-stringprep: FTBFS: /bin/sh: 1: node-waf: not found

2013-12-29 Thread Adam Conrad
Package: node-stringprep
Version: 0.1.5-1
Followup-For: Bug #719382
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu trusty ubuntu-patch



In Ubuntu, the attached patch was applied to achieve the following:

  * Switch from node-waf to node-gyp to fix FTBFS (Closes: #719382)

I'm not a particularly node-friendly person, and have no ideal how
to test this, but this naive patch seems to end up building and
installing the right files, at any rate.

... Adam

-- System Information:
Debian Release: wheezy/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 
'trusty'), (500, 'saucy-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-0-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru node-stringprep-0.1.5/debian/changelog node-stringprep-0.1.5/debian/changelog
diff -Nru node-stringprep-0.1.5/debian/control node-stringprep-0.1.5/debian/control
--- node-stringprep-0.1.5/debian/control	2013-03-05 16:56:44.0 -0700
+++ node-stringprep-0.1.5/debian/control	2013-12-29 04:55:42.0 -0700
@@ -7,6 +7,7 @@
  debhelper,
  dh-buildinfo,
  nodejs-dev (>= 0.2.6),
+ node-gyp,
  libicu-dev
 Standards-Version: 3.9.4
 Homepage: https://github.com/astro/node-stringprep
diff -Nru node-stringprep-0.1.5/debian/rules node-stringprep-0.1.5/debian/rules
--- node-stringprep-0.1.5/debian/rules	2013-03-05 16:54:22.0 -0700
+++ node-stringprep-0.1.5/debian/rules	2013-12-29 04:51:12.0 -0700
@@ -22,7 +22,7 @@
 
 libpkgname = node-node-stringprep
 
-CDBS_BUILD_DEPENDS += , nodejs-dev (>= 0.2.6), libicu-dev
+CDBS_BUILD_DEPENDS += , nodejs-dev (>= 0.2.6), node-gyp, libicu-dev
 
 # suppress optional build-dependencies
 CDBS_BUILD_DEPENDS_rules_upstream-tarball =
@@ -35,13 +35,14 @@
 DEB_INSTALL_DOCS_$(libpkgname) += README.markdown
 
 configure/$(libpkgname)::
-	NODE_PATH=$(cdbs_curdestdir)/usr/lib/nodejs node-waf configure
+	NODE_PATH=$(cdbs_curdestdir)/usr/lib/nodejs node-gyp configure
 
 build/$(libpkgname)::
-	NODE_PATH=$(cdbs_curdestdir)/usr/lib/nodejs node-waf build
+	NODE_PATH=$(cdbs_curdestdir)/usr/lib/nodejs node-gyp build
 
 install/$(libpkgname)::
-	NODE_PATH=$(cdbs_curdestdir)/usr/lib/nodejs node-waf install
+	install -m 644 -D build/Release/node-stringprep.node \
+	  $(cdbs_curdestdir)/usr/lib/nodejs/node-stringprep.node
 
 # Node modules have an uncommon extension preventing autodetection by
 # dh_shlibdeps, so we do it manually


Bug#719382: node-stringprep: FTBFS: /bin/sh: 1: node-waf: not found

2013-08-11 Thread David Suárez
Source: node-stringprep
Version: 0.1.5-1
Severity: serious
Tags: jessie sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20130811 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Maybe this is related to that as of node.js v0.8 node-waf was removed
and replaced with node-gyp (packaged independently).

Relevant part (hopefully):
>  debian/rules build
> test -x debian/rules
> mkdir -p "."
> 
> WARNING: copyright-check disabled - licensecheck (from devscripts package) is 
> missing.
> 
> touch debian/stamp-copyright-check
> touch debian/stamp-upstream-cruft
> NODE_PATH=/«PKGBUILDDIR»/debian/node-node-stringprep//usr/lib/nodejs node-waf 
> configure
> /bin/sh: 1: node-waf: not found
> make: *** [configure/node-node-stringprep] Error 127

The full build log is available from:
   
http://aws-logs.debian.net/ftbfs-logs/2013/08/11/node-stringprep_0.1.5-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org