Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: apache-log4j1.2

apache-log4j1.2 (1.2.17-7ubuntu2) artful; urgency=medium * Revert Ubuntu delta, no longer needed post archive reorg. -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Jul 2017 14:48:03 -0700 apache-log4j1.2 (1.2.17-7ubuntu1) xenial; urgency=low * Merge from Debian unstable. Remaining changes: - d/{rules,control}: Remove dependency on bnd and don't add OSGi headers to jar file. - d/liblog4j1.2.manifest,control,rules: Add OSGi manifest for log4j using javahelper. - d/control,rules: Switch libmail-java -> libgnumail-java to avoid Maven in Ubuntu main. -- James Page <james.page@ubuntu.com> Mon, 07 Mar 2016 15:29:00 +0000

Modifications :
  1. Download patch debian/control

    --- 1.2.17-7/debian/control 2015-11-17 17:22:57.000000000 +0000 +++ 1.2.17-7ubuntu2/debian/control 2017-07-28 21:47:01.000000000 +0000 @@ -1,7 +1,8 @@ Source: apache-log4j1.2 Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Varun Hiremath <varun@debian.org>, Torsten Werner <twerner@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>,

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: derby

derby (10.13.1.1-2ubuntu1) zesty; urgency=medium * Add transitional packages to take over unmaintained sun-javadb * Add Breaks/Replaces against sun-javadb packages that shipped the same filenames (LP: #1276353) -- Jeremy Bicha <jbicha@ubuntu.com> Tue, 20 Dec 2016 12:22:52 -0500

Modifications :
  1. Download patch debian/control

    --- 10.13.1.1-2/debian/control 2016-12-19 01:13:07.000000000 +0000 +++ 10.13.1.1-2ubuntu1/debian/control 2016-12-20 17:22:52.000000000 +0000 @@ -1,7 +1,8 @@ Source: derby Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Tim Booth <tbooth@ceh.ac.uk>, Emmanuel Bourg <ebourg@apache.org> Build-Depends: ant (>= 1.7), debhelper (>= 9), @@ -21,6 +22,8 @@ Homepage: http://db.apache.org/derby/ Package: libderbyclient-java Architecture: all Depends: ${misc:Depends} +Breaks: sun-javadb-client (<< 10.13.1.1) +Replaces: sun-javadb-client (<< 10.13.1.1) Suggests: derby-doc, derby-tools Description: Apache Derby Client JDBC Driver The Derby network client provides network connectivity to the Derby Network @@ -35,6 +38,8 @@ Description: Apache Derby Client JDBC Dr Package: libderby-java Architecture: all Depends: ${misc:Depends} +Breaks: sun-javadb-core (<< 10.13.1.1) +Replaces: sun-javadb-core (<< 10.13.1.1) Suggests: derby-doc Description: Apache Derby Database Engine and Embedded JDBC Driver Apache Derby is an open source relational database implemented entirely @@ -94,3 +99,43 @@ Description: Apache Derby API documentat . This package contains a Javadoc documenting the API and demo software for Apache Derby. + +Package: sun-javadb-client +Depends: libderbyclient-java, ${misc:Depends} +Architecture: all +Priority: extra +Section: oldlibs +Description: Apache Derby Client JDBC Driver (transitional package) + This is a transitional package and can safely be removed. + +Package: sun-javadb-core +Depends: libderby-java, derby-tools, ${misc:Depends} +Architecture: all +Priority: extra +Section: oldlibs +Description: Apache Derby Database Engine (transitional package) + This is a transitional package and can safely be removed. + +Package: sun-javadb-demo +Depends: derby-doc, ${misc:Depends} +Architecture: all +Priority: extra +Section: oldlibs +Description: Apache Derby API documentation and examples (transitional pkg) + This is a transitional package and can safely be removed. + +Package: sun-javadb-doc +Depends: derby-doc, ${misc:Depends} +Architecture: all +Priority: extra +Section: oldlibs +Description: Apache Derby API documentation and examples (transitional pkg) + This is a transitional package and can safely be removed. + +Package: sun-javadb-javadoc +Depends: derby-doc, ${misc:Depends} +Architecture: all +Priority: extra +Section: oldlibs +Description: Apache Derby API documentation and examples (transitional pkg) + This is a transitional package and can safely be removed.

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: dom4j

dom4j (1.6.1+dfsg.3-2ubuntu1) saucy; urgency=low * Drop support for XSD; this requires libmsv-java which is built using maven2 which is not in main: - d/control: Remove dependencies on libmsv-java. - d/rules: Don't include xsdlib on build classpath. - d/p/07_disable_xsd_support.patch: Patch out compilation and testing of XSD support features. -- James Page <james.page@ubuntu.com> Tue, 02 Jul 2013 13:27:34 +0100

Modifications :
  1. Download patch debian/rules

    --- 1.6.1+dfsg.3-2/debian/rules 2013-06-26 21:29:09.000000000 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/debian/rules 2013-07-02 12:01:53.000000000 +0000 @@ -5,7 +5,7 @@ include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := ant ant-launcher xpp2 xpp3 jaxen \ - xalan2 xercesImpl ant-junit junit junitperf xsdlib + xalan2 xercesImpl ant-junit junit junitperf DEB_ANT_BUILD_TARGET := package release-javadoc DEB_ANT_CHECK_TARGET := test
  2. Download patch debian/control

    --- 1.6.1+dfsg.3-2/debian/control 2013-06-26 21:12:47.000000000 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/debian/control 2013-07-02 12:06:11.000000000 +0000 @@ -1,12 +1,12 @@ Source: dom4j Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Marcus Better <marcus@better.se>, Emmanuel Bourg <ebourg@apache.org> Build-Depends: debhelper (>= 7), ant-optional, default-jdk, maven-repo-helper, cdbs Build-Depends-Indep: antlr, libjaxen-java, libxpp2-java, libxpp3-java, - libxerces2-java, libxalan2-java (>= 2.7.0), junit, libjunitperf-java, libmsv-java, - librelaxng-datatype-java + libxerces2-java, libxalan2-java (>= 2.7.0), junit, libjunitperf-java Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/dom4j Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/dom4j @@ -14,7 +14,7 @@ Homepage: http://sourceforge.net/project Package: libdom4j-java Architecture: all -Depends: ${misc:Depends}, libjaxen-java, libmsv-java, libxpp2-java, libxpp3-java +Depends: ${misc:Depends}, libjaxen-java, libxpp2-java, libxpp3-java Suggests: libdom4j-java-doc Description: flexible XML framework for Java dom4j is a library for working with XML, XPath and XSLT on the Java
  3. Download patch .pc/applied-patches

    --- 1.6.1+dfsg.3-2/.pc/applied-patches 2013-07-02 14:36:06.519509241 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/.pc/applied-patches 2013-07-02 14:36:06.931519849 +0000 @@ -4,3 +4,4 @@ 04_headless-test.patch 05_java7-compat.patch 06_dom-level3-support.patch +07_disable_xsd_support.patch
  4. Download patch debian/patches/series

    --- 1.6.1+dfsg.3-2/debian/patches/series 2013-06-26 19:35:23.000000000 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/debian/patches/series 2013-07-02 12:20:07.000000000 +0000 @@ -4,3 +4,4 @@ 04_headless-test.patch 05_java7-compat.patch 06_dom-level3-support.patch +07_disable_xsd_support.patch
  5. Download patch build.xml

    --- 1.6.1+dfsg.3-2/build.xml 2013-07-02 14:36:06.000000000 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/build.xml 2013-07-02 14:36:06.000000000 +0000 @@ -155,6 +155,9 @@ source="1.3" deprecation="${deprecation}" classpathref="compile.classpath"> + <exclude name="org/dom4j/datatype/**"/> + <exclude name="org/dom4j/io/STAXEventReader.java"/> + <exclude name="org/dom4j/io/STAXEventWriter.java"/> </javac> </target> @@ -169,6 +172,8 @@ optimize="${optimize}" deprecation="${deprecation}" classpathref="test.classpath"> + <exclude name="org/dom4j/datatype/**"/> + <exclude name="org/dom4j/io/StaxTest.java"/> </javac> </target> @@ -292,6 +297,7 @@ <fileset dir="${test.dir}"> <include name="**/*Test.java" /> <exclude name="**/AllTests.java,**/Abstract*.java,**/TestCase.java" /> + <exclude name="**/StaxTest.java,**/datatype/*Test.java" /> </fileset> </batchtest> </junit>
  6. Download patch debian/patches/07_disable_xsd_support.patch

    --- 1.6.1+dfsg.3-2/debian/patches/07_disable_xsd_support.patch 1970-01-01 00:00:00.000000000 +0000 +++ 1.6.1+dfsg.3-2ubuntu1/debian/patches/07_disable_xsd_support.patch 2013-07-02 12:22:34.000000000 +0000 @@ -0,0 +1,29 @@ +--- a/build.xml ++++ b/build.xml +@@ -155,6 +155,9 @@ + source="1.3" + deprecation="${deprecation}" + classpathref="compile.classpath"> ++ <exclude name="org/dom4j/datatype/**"/> ++ <exclude name="org/dom4j/io/STAXEventReader.java"/> ++ <exclude name="org/dom4j/io/STAXEventWriter.java"/> + </javac> + </target> + +@@ -169,6 +172,8 @@ + optimize="${optimize}" + deprecation="${deprecation}" + classpathref="test.classpath"> ++ <exclude name="org/dom4j/datatype/**"/> ++ <exclude name="org/dom4j/io/StaxTest.java"/> + </javac> + </target> + +@@ -292,6 +297,7 @@ + <fileset dir="${test.dir}"> + <include name="**/*Test.java" /> + <exclude name="**/AllTests.java,**/Abstract*.java,**/TestCase.java" /> ++ <exclude name="**/StaxTest.java,**/datatype/*Test.java" /> + </fileset> + </batchtest> + </junit>
  7. Download patch .pc/07_disable_xsd_support.patch/build.xml

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: excalibur-logkit

excalibur-logkit (2.0-11ubuntu3) artful; urgency=medium * Revert Ubuntu delta, no longer needed post archive reorg. -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Jul 2017 14:51:26 -0700 excalibur-logkit (2.0-11ubuntu2) xenial; urgency=medium * Switch back to Servlet API 3.1 (LP: #1539903) -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 22 Feb 2016 15:19:27 +0100 excalibur-logkit (2.0-11ubuntu1) vivid; urgency=medium * Update for continued main inclusion in Ubuntu: - d/control: Switch libmail-java -> libgnumail-java. - d/control,rules: Switch Servlet API 3.1 -> 3.0; this should be revisited when work begins on Tomcat 7->8 transition in Ubuntu main. -- James Page <james.page@ubuntu.com> Tue, 25 Nov 2014 16:39:11 +0000

Modifications :
  1. Download patch debian/control

    --- 2.0-11/debian/control 2014-10-22 08:57:03.000000000 +0000 +++ 2.0-11ubuntu3/debian/control 2017-07-28 21:51:26.000000000 +0000 @@ -1,7 +1,8 @@ Source: excalibur-logkit Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Onkar Shinde <onkarshinde@ubuntu.com>, Emmanuel Bourg <ebourg@apache.org> Build-Depends: debhelper (>= 9), cdbs, javahelper, ant Build-Depends-Indep: default-jdk, default-jdk-doc, ant-optional, junit,

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: geronimo-jacc-1.1-spec

geronimo-jacc-1.1-spec (1.0.1-2fakesync1ubuntu1) yakkety; urgency=medium * Fake sync due to mismatching tarball. -- Matthias Klose <doko@ubuntu.com> Wed, 05 Oct 2016 11:12:00 +0200

Modifications :
  1. Download patch src/main/java/javax/security/jacc/WebResourcePermission.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/WebResourcePermission.java 2008-01-23 08:45:36.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/WebResourcePermission.java 2008-01-23 08:45:36.000000000 +0000 @@ -36,7 +36,7 @@ import java.util.Enumeration; import javax.servlet.http.HttpServletRequest; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ */ public final class WebResourcePermission extends Permission implements Serializable { private transient int cachedHashCode = 0;
  2. Download patch src/test/java/javax/security/jacc/WebRoleRefPermissionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/WebRoleRefPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/WebRoleRefPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 @@ -28,7 +28,7 @@ package javax.security.jacc; import junit.framework.TestCase; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public class WebRoleRefPermissionTest extends TestCase {
  3. Download patch .pc/02-servlet-3.1-compatibility.patch/src/test/java/javax/security/jacc/MockHttpServletRequest.java

    --- 1.0.1-2/.pc/02-servlet-3.1-compatibility.patch/src/test/java/javax/security/jacc/MockHttpServletRequest.java 2008-01-23 08:45:36.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/.pc/02-servlet-3.1-compatibility.patch/src/test/java/javax/security/jacc/MockHttpServletRequest.java 2008-01-23 08:45:36.000000000 +0000 @@ -33,7 +33,7 @@ import javax.servlet.http.HttpServletReq import javax.servlet.http.HttpSession; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ */ public class MockHttpServletRequest implements HttpServletRequest {
  4. Download patch src/test/java/javax/security/jacc/MockHttpServletRequest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/MockHttpServletRequest.java 2016-10-05 12:39:28.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/MockHttpServletRequest.java 2016-10-05 12:39:28.000000000 +0000 @@ -43,7 +43,7 @@ import javax.servlet.http.HttpUpgradeHan import javax.servlet.http.Part; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ */ public class MockHttpServletRequest implements HttpServletRequest {
  5. Download patch src/test/java/javax/security/jacc/WebResourcePermissionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/WebResourcePermissionTest.java 2008-01-23 08:45:36.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/WebResourcePermissionTest.java 2008-01-23 08:45:36.000000000 +0000 @@ -36,7 +36,7 @@ import javax.servlet.http.HttpServletReq import junit.framework.TestCase; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ */ public class WebResourcePermissionTest extends TestCase {
  6. Download patch debian/control

    --- 1.0.1-2/debian/control 2016-05-30 10:33:54.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/debian/control 2016-10-05 09:12:00.000000000 +0000 @@ -1,7 +1,8 @@ Source: geronimo-jacc-1.1-spec Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Chris Grzegorczyk <grze@eucalyptus.com>, Graziano Obertelli <graziano@eucalyptus.com>, Kyo Lee <kyo.lee@eucalyptus.com> Build-Depends: default-jdk, debhelper (>= 9), maven-debian-helper, libservlet3.1-java, junit Standards-Version: 3.9.8
  7. Download patch src/main/java/javax/security/jacc/PolicyContextException.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/PolicyContextException.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/PolicyContextException.java 2006-10-25 04:01:51.000000000 +0000 @@ -26,7 +26,7 @@ package javax.security.jacc; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public class PolicyContextException extends Exception {
  8. Download patch src/main/java/javax/security/jacc/PolicyContextHandler.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/PolicyContextHandler.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/PolicyContextHandler.java 2006-10-25 04:01:51.000000000 +0000 @@ -36,7 +36,7 @@ package javax.security.jacc; * activated via the <code>PolicyContext</code> class must implement the * <code>PolicyContextHandler</code> interface. * - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public interface PolicyContextHandler {
  9. Download patch src/main/java/javax/security/jacc/WebRoleRefPermission.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/WebRoleRefPermission.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/WebRoleRefPermission.java 2006-10-25 04:01:51.000000000 +0000 @@ -29,7 +29,7 @@ import java.io.Serializable; import java.security.Permission; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public final class WebRoleRefPermission extends Permission implements Serializable { private transient int cachedHashCode = 0;
  10. Download patch src/main/java/javax/security/jacc/PolicyConfigurationFactory.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/PolicyConfigurationFactory.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/PolicyConfigurationFactory.java 2006-10-25 04:01:51.000000000 +0000 @@ -43,7 +43,7 @@ import java.security.SecurityPermission; * @see PolicyConfiguration * @see PolicyContextException * - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public abstract class PolicyConfigurationFactory {
  11. Download patch src/main/java/javax/security/jacc/WebUserDataPermission.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/WebUserDataPermission.java 2008-01-23 08:45:36.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/WebUserDataPermission.java 2008-01-23 08:45:36.000000000 +0000 @@ -43,7 +43,7 @@ import javax.servlet.http.HttpServletReq * The name of a WebUserDataPermission (also referred to as the target name) * identifies a Web resource by its context path relative URL pattern. * - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ * * @see java.security.Permission */
  12. Download patch debian/patches/02-servlet-3.1-compatibility.patch

    --- 1.0.1-2/debian/patches/02-servlet-3.1-compatibility.patch 2016-05-30 10:54:32.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/debian/patches/02-servlet-3.1-compatibility.patch 2016-10-05 09:12:00.000000000 +0000 @@ -1,9 +1,11 @@ Description: Fix the compatibility with the Servlet API 3.1 Author: Emmanuel Bourg <ebourg@apache.org> Forwarded: no +Index: b/src/test/java/javax/security/jacc/MockHttpServletRequest.java +=================================================================== --- a/src/test/java/javax/security/jacc/MockHttpServletRequest.java +++ b/src/test/java/javax/security/jacc/MockHttpServletRequest.java -@@ -23,14 +23,24 @@ +@@ -23,14 +23,24 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.Principal; @@ -27,8 +29,8 @@ Forwarded: no +import javax.servlet.http.Part; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ -@@ -268,4 +278,64 @@ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ +@@ -268,4 +278,64 @@ public class MockHttpServletRequest impl public int getLocalPort() { return 0; }
  13. Download patch src/test/java/javax/security/jacc/EJBMethodPermissionCollectionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/EJBMethodPermissionCollectionTest.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/EJBMethodPermissionCollectionTest.java 2006-10-25 04:01:51.000000000 +0000 @@ -31,7 +31,7 @@ import java.security.PermissionCollectio /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public class EJBMethodPermissionCollectionTest extends TestCase {
  14. Download patch src/test/java/javax/security/jacc/WebUserDataPermissionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/WebUserDataPermissionTest.java 2008-01-23 08:45:36.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/WebUserDataPermissionTest.java 2008-01-23 08:45:36.000000000 +0000 @@ -35,7 +35,7 @@ import java.security.Permission; import junit.framework.TestCase; /** - * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (Mi, 23 Jan 2008) $ + * @version $Rev: 614454 $ $Date: 2008-01-23 09:45:36 +0100 (mer. 23 janv. 2008) $ */ public class WebUserDataPermissionTest extends TestCase {
  15. Download patch src/main/java/javax/security/jacc/URLPatternSpec.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/URLPatternSpec.java 2007-01-20 19:29:22.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/URLPatternSpec.java 2007-01-20 19:29:22.000000000 +0000 @@ -31,7 +31,7 @@ import java.util.LinkedList; import javax.servlet.http.HttpServletRequest; /** - * @version $Rev: 498156 $ $Date: 2007-01-20 20:29:22 +0100 (Sa, 20 Jan 2007) $ + * @version $Rev: 498156 $ $Date: 2007-01-20 20:29:22 +0100 (sam. 20 janv. 2007) $ */ final class URLPatternSpec {
  16. Download patch .pc/01-missing-dependencies.patch/pom.xml

    --- 1.0.1-2/.pc/01-missing-dependencies.patch/pom.xml 2008-02-01 10:32:54.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/.pc/01-missing-dependencies.patch/pom.xml 2008-02-01 10:32:54.000000000 +0000 @@ -18,7 +18,7 @@ under the License. --> -<!-- $Rev: 617430 $ $Date: 2008-02-01 11:32:54 +0100 (Fr, 01 Feb 2008) $ --> +<!-- $Rev: 617430 $ $Date: 2008-02-01 11:32:54 +0100 (ven. 01 févr. 2008) $ --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  17. Download patch src/test/java/javax/security/jacc/EJBMethodPermissionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/EJBMethodPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/EJBMethodPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 @@ -34,7 +34,7 @@ import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public class EJBMethodPermissionTest extends TestCase { protected Method method;
  18. Download patch src/site/site.xml

    --- 1.0.1-2/src/site/site.xml 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/site/site.xml 2006-10-25 04:01:51.000000000 +0000 @@ -18,7 +18,7 @@ under the License. --> -<!-- $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ --> +<!-- $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ --> <project name="${project.name}">
  19. Download patch pom.xml

    --- 1.0.1-2/pom.xml 2016-10-05 12:39:28.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/pom.xml 2016-10-05 12:39:28.000000000 +0000 @@ -18,7 +18,7 @@ under the License. --> -<!-- $Rev: 617430 $ $Date: 2008-02-01 11:32:54 +0100 (Fr, 01 Feb 2008) $ --> +<!-- $Rev: 617430 $ $Date: 2008-02-01 11:32:54 +0100 (ven. 01 févr. 2008) $ --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. Download patch src/test/java/javax/security/jacc/EJBRoleRefPermissionTest.java

    --- 1.0.1-2/src/test/java/javax/security/jacc/EJBRoleRefPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/test/java/javax/security/jacc/EJBRoleRefPermissionTest.java 2006-10-25 04:01:51.000000000 +0000 @@ -28,7 +28,7 @@ package javax.security.jacc; import junit.framework.TestCase; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public class EJBRoleRefPermissionTest extends TestCase {
  21. Download patch src/main/java/javax/security/jacc/PolicyConfiguration.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/PolicyConfiguration.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/PolicyConfiguration.java 2006-10-25 04:01:51.000000000 +0000 @@ -29,7 +29,7 @@ import java.security.Permission; import java.security.PermissionCollection; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public interface PolicyConfiguration {
  22. Download patch src/main/java/javax/security/jacc/EJBMethodPermission.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/EJBMethodPermission.java 2007-03-23 09:18:38.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/EJBMethodPermission.java 2007-03-23 09:18:38.000000000 +0000 @@ -40,7 +40,7 @@ import java.util.Enumeration; import java.util.Collections; /** - * @version $Rev: 521639 $ $Date: 2007-03-23 10:18:38 +0100 (Fr, 23 Mär 2007) $ + * @version $Rev: 521639 $ $Date: 2007-03-23 10:18:38 +0100 (ven. 23 mars 2007) $ */ public final class EJBMethodPermission extends Permission implements Serializable {
  23. Download patch src/main/java/javax/security/jacc/EJBRoleRefPermission.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/EJBRoleRefPermission.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/EJBRoleRefPermission.java 2006-10-25 04:01:51.000000000 +0000 @@ -40,7 +40,7 @@ import java.security.Permission; * which the permission applies. An EJBRoleRefPermission is checked to * determine if the subject is a member of the role identified by the reference. * - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public final class EJBRoleRefPermission extends Permission implements Serializable {
  24. Download patch src/main/java/javax/security/jacc/PolicyContext.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/PolicyContext.java 2006-10-25 04:01:51.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/PolicyContext.java 2006-10-25 04:01:51.000000000 +0000 @@ -31,7 +31,7 @@ import java.util.Set; /** - * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25 Okt 2006) $ + * @version $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (mer. 25 oct. 2006) $ */ public final class PolicyContext {
  25. Download patch src/main/java/javax/security/jacc/HTTPMethodSpec.java

    --- 1.0.1-2/src/main/java/javax/security/jacc/HTTPMethodSpec.java 2006-12-01 00:37:43.000000000 +0000 +++ 1.0.1-2fakesync1ubuntu1/src/main/java/javax/security/jacc/HTTPMethodSpec.java 2006-12-01 00:37:43.000000000 +0000 @@ -33,7 +33,7 @@ import java.util.regex.Pattern; /** - * @version $Rev: 481119 $ $Date: 2006-12-01 01:37:43 +0100 (Fr, 01 Dez 2006) $ + * @version $Rev: 481119 $ $Date: 2006-12-01 01:37:43 +0100 (ven. 01 déc. 2006) $ */ final class HTTPMethodSpec {

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: geronimo-jta-1.1-spec

geronimo-jta-1.1-spec (1.1.1-3ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - Switch build system to ant to support continued inclusion in Ubuntu main: + d/control: Drop Build-Depends on maven-debian-helper, add Build-Depends on ant + maven-{ant,repo}-helper, removed ${maven:*}. + d/rules: Switch back to ant build system. + d/ant.properties: Define extra configuration for maven-ant-helper. -- James Page <james.page@ubuntu.com> Tue, 21 May 2013 12:39:45 +0100

Modifications :
  1. Download patch debian/rules

    --- 1.1.1-3/debian/rules 2013-05-18 17:04:59.000000000 +0000 +++ 1.1.1-3ubuntu1/debian/rules 2013-05-18 21:39:39.000000000 +0000 @@ -1,9 +1,16 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk +include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java +UPSTREAM_NAME := geronimo-jta_1.1_spec +DEB_ANT_BUILDFILE := /usr/share/maven-ant-helper/maven-build.xml +DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(DEB_SOURCE_PACKAGE) + +binary-post-install/lib$(DEB_SOURCE_PACKAGE)-java:: + mh_installpoms -plib$(DEB_SOURCE_PACKAGE)-java + mh_installjar -plib$(DEB_SOURCE_PACKAGE)-java --java-lib pom.xml build/$(UPSTREAM_NAME)-$(DEB_UPSTREAM_VERSION).jar get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
  2. Download patch debian/control

    --- 1.1.1-3/debian/control 2013-05-18 17:04:59.000000000 +0000 +++ 1.1.1-3ubuntu1/debian/control 2013-05-21 11:35:55.000000000 +0000 @@ -1,10 +1,11 @@ Source: geronimo-jta-1.1-spec Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org> -Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) -Build-Depends-Indep: default-jdk-doc, libmaven-javadoc-plugin-java +Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant +Build-Depends-Indep: default-jdk-doc, maven-ant-helper, maven-repo-helper Standards-Version: 3.9.4 Homepage: http://geronimo.apache.org Vcs-Git: git://anonscm.debian.org/git/pkg-java/geronimo-jta-1.1-spec.git @@ -12,8 +13,7 @@ Vcs-Browser: http://anonscm.debian.org/g Package: libgeronimo-jta-1.1-spec-java Architecture: all -Depends: ${misc:Depends}, ${maven:Depends} -Recommends: ${maven:OptionalDepends} +Depends: ${misc:Depends} Suggests: libgeronimo-jta-java-doc Conflicts: libgeronimo-jta-1.0.1b-spec-java Replaces: libgeronimo-jta-1.0.1b-spec-java @@ -31,8 +31,7 @@ Description: Geronimo API implementation Package: libgeronimo-jta-1.1-spec-java-doc Architecture: all Section: doc -Depends: ${misc:Depends}, ${maven:DocDepends} -Recommends: ${maven:DocOptionalDepends} +Depends: ${misc:Depends} Suggests: libgeronimo-jta-java Description: Documentation for the JTA 1.1 spec The goal of the Geronimo project is to produce a server runtime framework
  3. Download patch debian/ant.properties

    --- 1.1.1-3/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.1-3ubuntu1/debian/ant.properties 2011-11-24 19:18:09.000000000 +0000 @@ -0,0 +1,3 @@ +javadoc.generate=true +maven.test.skip=true +javadoc.dir=target/apidocs

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: java-common

java-common (0.57ubuntu1) yakkety; urgency=medium * Merge with Debian; remaining changes: - default-jre: Lower recommends of default-java-plugin to a suggests. -- Matthias Klose <doko@ubuntu.com> Wed, 25 May 2016 15:52:29 +0200

Modifications :
  1. Download patch debian/control

    --- 0.57/debian/control 2016-02-26 17:36:35.000000000 +0000 +++ 0.57ubuntu1/debian/control 2016-05-25 13:53:55.000000000 +0000 @@ -23,7 +23,7 @@ Package: default-jre Architecture: any Depends: default-jre-headless (= ${binary:Version}), ${jre}, ${misc:Depends} -Recommends: default-java-plugin +Suggests: default-java-plugin Provides: ${jre:provides} Description: Standard Java or Java compatible Runtime This dependency package points to the Java runtime, or Java compatible
  2. Download patch xxx

    --- 0.57/xxx 1970-01-01 00:00:00.000000000 +0000 +++ 0.57ubuntu1/xxx 2016-05-25 13:54:21.000000000 +0000 @@ -0,0 +1,54 @@ +diff -pruN 0.56/debian/rules 0.56ubuntu2/debian/rules +--- 0.56/debian/rules 2016-02-10 14:58:21.000000000 +0000 ++++ 0.56ubuntu2/debian/rules 2016-02-25 01:53:18.000000000 +0000 +@@ -12,6 +12,7 @@ include debian/java_defaults.mk + p_jre = openjdk-$(java_default_version)-jre + p_jhl = openjdk-$(java_default_version)-jre-headless + p_jdk = openjdk-$(java_default_version)-jdk ++p_jdkhl = openjdk-$(java_default_version)-jdk-headless + p_doc = openjdk-$(java_default_version)-doc + p_plugin = icedtea-$(java_default_version)-plugin + dversion = 2:1.$(java_default_version)-$(release) +@@ -21,6 +22,7 @@ ifeq (5, $(java_default_version)) + p_jre = gcj-jre + p_jhl = gcj-jre-headless + p_jdk = gcj-jdk ++ p_jdkhl = gcj-jdk # no gcj-jdk-headless package + p_doc = openjdk-8-doc + p_plugin = + jvmdir = java-gcj +@@ -34,6 +36,7 @@ endif + jre_provides = java-runtime, java2-runtime, $(shell seq --format java%.f-runtime --separator ', ' 5 $(java_default_version)) + jhl_provides = java-runtime-headless, java2-runtime-headless, $(shell seq --format java%.f-runtime-headless --separator ', ' 5 $(java_default_version)) + jdk_provides = java-sdk, java2-sdk, $(shell seq --format java%.f-sdk --separator ', ' 5 $(java_default_version)) ++jdkhl_provides = java-sdk-headless, java2-sdk-headless, $(shell seq --format java%.f-sdk-headless --separator ', ' 5 $(java_default_version)) + + + %: +@@ -54,9 +57,10 @@ override_dh_installdocs: + + # Install the changelog and copyright once in default-jre-headless and use links for the other packages + dh_installdocs -pdefault-jre-headless +- dh_link -pdefault-jre /usr/share/doc/default-jre-headless /usr/share/doc/default-jre +- dh_link -pdefault-jdk /usr/share/doc/default-jre /usr/share/doc/default-jdk +- dh_link -pdefault-java-plugin /usr/share/doc/default-jre /usr/share/doc/default-java-plugin ++ dh_link -pdefault-jre /usr/share/doc/default-jre-headless /usr/share/doc/default-jre ++ dh_link -pdefault-jdk-headless /usr/share/doc/default-jre-headless /usr/share/doc/default-jdk-headless ++ dh_link -pdefault-jdk /usr/share/doc/default-jre /usr/share/doc/default-jdk ++ dh_link -pdefault-java-plugin /usr/share/doc/default-jre /usr/share/doc/default-java-plugin + + dh_installdocs -pdefault-jdk-doc + dh_installdocs -pgcj-native-helper +@@ -69,10 +73,12 @@ ifneq (,$(p_jre)) + '-Vjre=$(p_jre)' \ + '-Vjhl=$(p_jhl)' \ + '-Vjdk=$(p_jdk)' \ ++ '-Vjdkhl=$(p_jdkhl)' \ + '-Vdoc=$(p_doc)' \ + '-Vjre:arch=$(DEB_HOST_ARCH)' \ + '-Vjre:provides=$(jre_provides)' \ + '-Vjhl:provides=$(jhl_provides)' \ ++ '-Vjdkhl:provides=$(jdkhl_provides)' \ + '-Vjdk:provides=$(jdk_provides)' + endif + ifneq (,$(p_plugin))

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: java3d

java3d (1.5.2+dfsg-11ubuntu1) vivid; urgency=medium * Resynchronise with Debian. Remaining changes: - 02_fix_generic_ftbfs.patch: Link with gcc -shared, not ld; don't explicitly link with libc. -- Colin Watson <cjwatson@ubuntu.com> Mon, 24 Nov 2014 13:02:59 +0000

Modifications :
  1. Download patch debian/control

    --- 1.5.2+dfsg-11/debian/control 2014-11-23 03:02:30.000000000 +0000 +++ 1.5.2+dfsg-11ubuntu1/debian/control 2014-11-24 13:02:41.000000000 +0000 @@ -1,7 +1,8 @@ Source: java3d Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Onkar Shinde <onkarshinde@ubuntu.com>, Emmanuel Bourg <ebourg@apache.org>, Torsten Werner <twerner@debian.org>
  2. Download patch j3d-core/src/native/ogl/build-linux-generic.xml

    --- 1.5.2+dfsg-11/j3d-core/src/native/ogl/build-linux-generic.xml 2014-11-24 15:07:05.000000000 +0000 +++ 1.5.2+dfsg-11ubuntu1/j3d-core/src/native/ogl/build-linux-generic.xml 2014-11-24 15:07:05.000000000 +0000 @@ -28,8 +28,8 @@ </exec> <!-- Create the library file--> - <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld"> - <arg line="DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -G -z defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -lc -L${java.home}/lib/${os.arch} -ljawt -L${java.home}/lib/${os.arch}/server -ljvm -o libj3dcore-ogl.so"/> + <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc"> + <arg line="-shared DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -L${java.home}/lib/${os.arch} -ljawt -L${java.home}/lib/${os.arch}/server -ljvm -o libj3dcore-ogl.so"/> </exec> </target> @@ -41,8 +41,8 @@ </exec> <!-- Create the wrapper library --> - <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld"> - <arg line="CgWrapper.o -G -z defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -lc -o libj3dcore-ogl-cg.so"/> + <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc"> + <arg line="-shared CgWrapper.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -o libj3dcore-ogl-cg.so"/> </exec> </target>
  3. Download patch debian/patches/02_fix_generic_ftbfs.patch

    --- 1.5.2+dfsg-11/debian/patches/02_fix_generic_ftbfs.patch 2010-01-16 19:50:20.000000000 +0000 +++ 1.5.2+dfsg-11ubuntu1/debian/patches/02_fix_generic_ftbfs.patch 2014-11-24 13:02:41.000000000 +0000 @@ -1,7 +1,7 @@ Index: java3d-1.5.2+dfsg/j3d-core/build.xml =================================================================== ---- java3d-1.5.2+dfsg.orig/j3d-core/build.xml 2010-01-09 18:52:55.000000000 +0530 -+++ java3d-1.5.2+dfsg/j3d-core/build.xml 2010-01-09 20:24:13.000000000 +0530 +--- java3d-1.5.2+dfsg.orig/j3d-core/build.xml 2008-05-23 20:31:19.000000000 +0000 ++++ java3d-1.5.2+dfsg/j3d-core/build.xml 2012-10-13 11:09:55.000000000 +0000 @@ -196,6 +196,15 @@ <property name="install.bin" value="lib/ppc"/> </target> @@ -43,8 +43,8 @@ Index: java3d-1.5.2+dfsg/j3d-core/build. </condition> Index: java3d-1.5.2+dfsg/j3d-core/src/native/build.xml =================================================================== ---- java3d-1.5.2+dfsg.orig/j3d-core/src/native/build.xml 2010-01-09 18:52:55.000000000 +0530 -+++ java3d-1.5.2+dfsg/j3d-core/src/native/build.xml 2010-01-09 20:23:04.000000000 +0530 +--- java3d-1.5.2+dfsg.orig/j3d-core/src/native/build.xml 2008-02-28 20:17:58.000000000 +0000 ++++ java3d-1.5.2+dfsg/j3d-core/src/native/build.xml 2012-10-13 11:10:00.000000000 +0000 @@ -45,6 +45,13 @@ <property name="osNativeScreenInfo" value="X11NativeScreenInfo"/> </target> @@ -94,7 +94,7 @@ Index: java3d-1.5.2+dfsg/j3d-core/src/na Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-generic.xml =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-generic.xml 2010-01-09 20:23:04.000000000 +0530 ++++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-generic.xml 2012-10-13 11:11:17.000000000 +0000 @@ -0,0 +1,74 @@ +<?xml version="1.0"?> + @@ -126,8 +126,8 @@ Index: java3d-1.5.2+dfsg/j3d-core/src/na + </exec> + + <!-- Create the library file--> -+ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld"> -+ <arg line="DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -G -z defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -lc -L${java.home}/lib/${os.arch} -ljawt -L${java.home}/lib/${os.arch}/server -ljvm -o libj3dcore-ogl.so"/> ++ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc"> ++ <arg line="-shared DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -L${java.home}/lib/${os.arch} -ljawt -L${java.home}/lib/${os.arch}/server -ljvm -o libj3dcore-ogl.so"/> + </exec> + + </target> @@ -139,8 +139,8 @@ Index: java3d-1.5.2+dfsg/j3d-core/src/na + </exec> + + <!-- Create the wrapper library --> -+ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld"> -+ <arg line="CgWrapper.o -G -z defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -lc -o libj3dcore-ogl-cg.so"/> ++ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc"> ++ <arg line="-shared CgWrapper.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -o libj3dcore-ogl-cg.so"/> + </exec> + + </target>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: jmagick

jmagick (6.6.9~20130201-svn99-3ubuntu2) zesty; urgency=medium * Rebuild against new imagemagick 6.9.7.0. -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 18 Jan 2017 13:33:21 +0100 jmagick (6.6.9~20130201-svn99-3ubuntu1) yakkety; urgency=medium * Merge with Debian; remaining changes: - Fix warnings about implicit function declaration. Closes: #727776. -- Matthias Klose <doko@ubuntu.com> Tue, 06 Sep 2016 15:48:31 +0200

Modifications :
  1. Download patch .pc/02_jmagick_implicit_decl.patch/src/magick/jmagick.h
  2. Download patch src/magick/jmagick.h

    --- 6.6.9~20130201-svn99-3/src/magick/jmagick.h 2009-11-10 13:24:51.000000000 +0000 +++ 6.6.9~20130201-svn99-3ubuntu2/src/magick/jmagick.h 2017-03-29 22:42:25.000000000 +0000 @@ -110,6 +110,29 @@ int setIntFieldValue(JNIEnv *env, jint value); /* + * Retrieve the byte array from the specified field. + * + * Input: + * env Java VM environment. + * obj Java object for which the value is to be retrieved. + * fieldName name of the field to be retrieved. + * fieldID if non-null, points to field ID. 0 to request retrieval. + * + * Output: + * fieldID if non-null, will contain the field ID. + * size the size of the array is returned here. Must not be NULL. + * + * Return: + * The byte array requested. The caller is responsible for + * deallocating this byte array. + */ +unsigned char* getByteArrayFieldValue(JNIEnv *env, + jobject obj, + const char *fieldName, + jfieldID *fieldID, + int *size); + +/* * From a java.awt.Rectangle object, construct a ImageMagick * RectangleInfo, as passed in from the parameter. *
  3. Download patch debian/control

    --- 6.6.9~20130201-svn99-3/debian/control 2016-09-05 04:13:53.000000000 +0000 +++ 6.6.9~20130201-svn99-3ubuntu2/debian/control 2016-09-06 13:48:31.000000000 +0000 @@ -1,5 +1,6 @@ Source: jmagick -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Varun Hiremath <varun@debian.org> Section: graphics Priority: optional
  4. Download patch .pc/applied-patches

    --- 6.6.9~20130201-svn99-3/.pc/applied-patches 2017-03-29 22:42:25.321938217 +0000 +++ 6.6.9~20130201-svn99-3ubuntu2/.pc/applied-patches 2017-03-29 22:42:25.573945071 +0000 @@ -1,2 +1,3 @@ 01_fix_load_jnilib.patch 0001-Use-pkgconfig-for-flags.patch +02_jmagick_implicit_decl.patch
  5. Download patch debian/patches/02_jmagick_implicit_decl.patch

    --- 6.6.9~20130201-svn99-3/debian/patches/02_jmagick_implicit_decl.patch 1970-01-01 00:00:00.000000000 +0000 +++ 6.6.9~20130201-svn99-3ubuntu2/debian/patches/02_jmagick_implicit_decl.patch 2016-09-06 13:48:31.000000000 +0000 @@ -0,0 +1,37 @@ +Description: Include the missing prototype for getByteArrayFieldValue +Author: Adam Conrad <adconrad@ubuntu.com> + +Index: jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h +=================================================================== +--- jmagick-6.6.9~20130201-svn99.orig/src/magick/jmagick.h 2013-10-26 10:45:26.000000000 -0600 ++++ jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h 2013-10-26 10:50:51.932356603 -0600 +@@ -110,6 +110,29 @@ + jint value); + + /* ++ * Retrieve the byte array from the specified field. ++ * ++ * Input: ++ * env Java VM environment. ++ * obj Java object for which the value is to be retrieved. ++ * fieldName name of the field to be retrieved. ++ * fieldID if non-null, points to field ID. 0 to request retrieval. ++ * ++ * Output: ++ * fieldID if non-null, will contain the field ID. ++ * size the size of the array is returned here. Must not be NULL. ++ * ++ * Return: ++ * The byte array requested. The caller is responsible for ++ * deallocating this byte array. ++ */ ++unsigned char* getByteArrayFieldValue(JNIEnv *env, ++ jobject obj, ++ const char *fieldName, ++ jfieldID *fieldID, ++ int *size); ++ ++/* + * From a java.awt.Rectangle object, construct a ImageMagick + * RectangleInfo, as passed in from the parameter. + *
  6. Download patch debian/patches/series

    --- 6.6.9~20130201-svn99-3/debian/patches/series 2016-09-05 04:13:53.000000000 +0000 +++ 6.6.9~20130201-svn99-3ubuntu2/debian/patches/series 2016-09-06 13:48:31.000000000 +0000 @@ -1,3 +1,4 @@ 01_fix_load_jnilib.patch 0001-Use-pkgconfig-for-flags.patch +02_jmagick_implicit_decl.patch

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: jsch-agent-proxy

jsch-agent-proxy (0.0.8-2ubuntu1) xenial; urgency=medium * Switch to using maven-ant-helper to avoid maven in main: - d/rules,modules: Switch maven->ant; add targets for jar installs - d/build.xml: Wrapper for maven-ant-helper build.xml to support multi-module projects. - d/control: Update BD's to drop maven related dependencies, add maven-ant-helper and maven-repo-helper. -- James Page <james.page@ubuntu.com> Wed, 17 Feb 2016 15:00:47 +0000

Modifications :
  1. Download patch debian/modules

    --- 0.0.8-2/debian/modules 1970-01-01 00:00:00.000000000 +0000 +++ 0.0.8-2ubuntu1/debian/modules 2016-02-17 14:33:12.000000000 +0000 @@ -0,0 +1,7 @@ +jsch-agent-proxy-core +jsch-agent-proxy-jsch +jsch-agent-proxy-pageant +jsch-agent-proxy-sshagent +jsch-agent-proxy-usocket-jna +jsch-agent-proxy-usocket-nc +jsch-agent-proxy-connector-factory
  2. Download patch debian/rules

    --- 0.0.8-2/debian/rules 2015-06-15 21:17:13.000000000 +0000 +++ 0.0.8-2ubuntu1/debian/rules 2016-02-17 14:52:10.000000000 +0000 @@ -1,10 +1,21 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk +include /usr/share/cdbs/1/class/ant.mk -JAVA_HOME := /usr/lib/jvm/default-java -DEB_MAVEN_DOC_TARGET := javadoc:javadoc javadoc:aggregate +PACKAGE := $(DEB_SOURCE_PACKAGE) +VERSION := $(DEB_UPSTREAM_VERSION) +JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := ant-nodeps ant-junit jsch jna-platform jna +DEB_ANT_BUILDFILE := debian/build.xml +DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION) +binary-post-install/lib$(PACKAGE)-java:: + mh_installpoms -plib$(PACKAGE)-java + set -e; \ + for module in `cat debian/modules`; do \ + jar=`echo $$module | sed -e "s/jsch-agent-proxy-/jsch.agentproxy./g"`; \ + mh_installjar -plib$(PACKAGE)-java -l $$module/pom.xml $$module/build/$$jar-$(VERSION).jar; \ + done get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
  3. Download patch debian/control

    --- 0.0.8-2/debian/control 2015-09-02 21:32:39.000000000 +0000 +++ 0.0.8-2ubuntu1/debian/control 2016-02-17 12:24:13.000000000 +0000 @@ -1,10 +1,11 @@ Source: jsch-agent-proxy Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Emmanuel Bourg <ebourg@apache.org> -Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5), libjna-platform-java -Build-Depends-Indep: libmaven-bundle-plugin-java, libjsch-java +Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-ant-helper, maven-repo-helper, libjna-platform-java, ant, ant-optional +Build-Depends-Indep: libjsch-java Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-java/jsch-agent-proxy.git Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/jsch-agent-proxy.git
  4. Download patch debian/build.xml

    --- 0.0.8-2/debian/build.xml 1970-01-01 00:00:00.000000000 +0000 +++ 0.0.8-2ubuntu1/debian/build.xml 2016-02-17 15:00:45.000000000 +0000 @@ -0,0 +1,86 @@ +<?xml version="1.0"?> +<project name="jsch.agent" default="build-all" basedir="."> + <property name="build.xml" value="/usr/share/maven-ant-helper/maven-build.xml"/> + <target name="build-all"> + <antcall target="component"> + <param name="component" value="."/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-core"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-jsch"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-pageant"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-sshagent"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-usocket-jna"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-usocket-nc"/> + <param name="target" value="package"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-connector-factory"/> + <param name="target" value="package"/> + </antcall> + </target> + + <target name="clean"> + <antcall target="component"> + <param name="component" value="."/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-core"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-jsch"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-pageant"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-sshagent"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-usocket-jna"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-usocket-nc"/> + <param name="target" value="clean"/> + </antcall> + <antcall target="component"> + <param name="component" value="jsch-agent-proxy-connector-factory"/> + <param name="target" value="clean"/> + </antcall> + </target> + + <target name="component"> + <!-- Ensure any jar files already built in this project are used for compilation --> + <path id="local.path.ref"> + <fileset dir="${basedir}" includes="**/*.jar"/> + </path> + <ant antfile="${build.xml}" dir="${basedir}/${component}" target="${target}"> + <property name="package" value="${package}"/> + <property name="version" value="${version}"/> + <property name="debian.dir" value="${basedir}/debian"/> + <property name="classpath.compile" value="${toString:local.path.ref}"/> + </ant> + </target> +</project>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: junit4

junit4 (4.12-4ubuntu1) xenial; urgency=low * Merge from Debian unstable. Remaining changes: - d/*: Re-use 4.11-3 packaging to avoid the switch. - d/build.xml,d/junit-pom-template.xml: Pick ant build components from 4.11 and adapt for new location and version. - d/tweak-resulttest.patch: Strip out failing part of ResultTest test case due to differences in the way classes are loaded using ant for the package build. -- James Page <james.page@ubuntu.com> Tue, 08 Mar 2016 12:15:34 +0000

Modifications :
  1. Download patch debian/rules

    --- 4.12-4/debian/rules 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/rules 2016-03-08 11:31:26.000000000 +0000 @@ -1,14 +1,35 @@ #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java -%: - dh $@ --parallel --buildsystem=maven +include /usr/share/cdbs/1/class/ant.mk +include /usr/share/cdbs/1/rules/debhelper.mk -override_dh_install: - dh_install - # Run jh_manifest after dh_install to ensure that debian/junit4.manifest is - # really installed into the jar file. See also #808736 +PACKAGE := $(DEB_SOURCE_PACKAGE) +VERSION := $(DEB_UPSTREAM_VERSION) +JAVA_HOME := /usr/lib/jvm/default-java +DEB_ANT_BUILD_TARGET := dist +DEB_ANT_BUILDFILE := debian/build.xml +DEB_JARS := ant-nodeps hamcrest-core + +binary-post-install/junit4:: + sed "s/@artifactId@/junit/;s/@version@/$(VERSION)/" debian/junit-pom-template.xml > debian/pom.xml + mh_installpoms -pjunit4 + mh_installjar -pjunit4 -njunit4 -l debian/pom.xml junit$(VERSION)/junit-dep-$(VERSION).jar jh_manifest -pjunit4 +binary-post-install/junit4-doc:: + dh_install -pjunit4-doc junit$(VERSION)/javadoc/* /usr/share/doc/junit4/api/ + +clean:: + -rm debian/pom.xml + -rm src/main/java/junit/runner/Version.java + mh_clean + +upstream-from-git: + git-archive --format=tar --prefix=junit4-$(DEB_UPSTREAM_VERSION)/ \ + v$(DEB_UPSTREAM_VERSION) | gzip -9 \ + > ../junit4_$(DEB_UPSTREAM_VERSION).orig.tar.gz + get-orig-source: -uscan --upstream-version 0 --rename +
  2. Download patch debian/control

    --- 4.12-4/debian/control 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/control 2016-03-08 11:28:05.000000000 +0000 @@ -1,6 +1,7 @@ Source: junit4 Section: java -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Florian Weimer <fw@deneb.enyo.de>, Varun Hiremath <varun@debian.org>, Damien Raude-Morvan <drazzib@debian.org>, @@ -8,13 +9,11 @@ Uploaders: Florian Weimer <fw@deneb.enyo Jakub Adam <jakub.adam@ktknet.cz>, Emmanuel Bourg <ebourg@apache.org> Priority: optional -Build-Depends: debhelper (>= 9), default-jdk, javahelper +Build-Depends: ant, cdbs, debhelper (>= 9), default-jdk, javahelper Build-Depends-Indep: default-jdk-doc, libhamcrest-java (>= 1.3), libhamcrest-java-doc, - libmaven-enforcer-plugin-java, - libmaven-javadoc-plugin-java, - maven-debian-helper + maven-repo-helper Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-java/junit4.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/junit4.git
  3. Download patch .pc/exclude-dependency-sources.patch/pom.xml
  4. Download patch debian/patches/exclude-dependency-sources.patch

    --- 4.12-4/debian/patches/exclude-dependency-sources.patch 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/patches/exclude-dependency-sources.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -Description: Don't include hamcrest in the Javadoc (the source artifact isn't available) -Author: Emmanuel Bourg <ebourg@apache.org> -Forwarded: not-needed ---- a/pom.xml -+++ b/pom.xml -@@ -303,7 +303,7 @@ - <minmemory>32m</minmemory> - <maxmemory>128m</maxmemory> - <failOnError>true</failOnError> -- <includeDependencySources>true</includeDependencySources> -+ <includeDependencySources>false</includeDependencySources> - <dependencySourceIncludes> - <dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude> - </dependencySourceIncludes> -@@ -407,7 +407,7 @@ - <minmemory>32m</minmemory> - <maxmemory>128m</maxmemory> - <failOnError>true</failOnError> -- <includeDependencySources>true</includeDependencySources> -+ <includeDependencySources>false</includeDependencySources> - <dependencySourceIncludes> - <dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude> - </dependencySourceIncludes>
  5. Download patch debian/junit4.poms

    --- 4.12-4/debian/junit4.poms 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/junit4.poms 2015-12-22 23:14:37.000000000 +0000 @@ -1 +1 @@ -pom.xml --no-parent --java-lib --has-package-version --usj-name=junit4 +debian/pom.xml --no-parent
  6. Download patch .pc/applied-patches

    --- 4.12-4/.pc/applied-patches 2016-03-08 17:37:35.504465060 +0000 +++ 4.12-4ubuntu1/.pc/applied-patches 2016-03-08 17:37:35.740471640 +0000 @@ -1,4 +1,3 @@ -maven2-compatibility.patch -exclude-dependency-sources.patch Version.java.patch privacy-breach-logo.patch +tweak-resulttest.patch
  7. Download patch debian/orig-tar.sh

    --- 4.12-4/debian/orig-tar.sh 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/orig-tar.sh 2015-12-22 23:14:36.000000000 +0000 @@ -3,7 +3,7 @@ # called by uscan with '--upstream-version' <version> <file> VERSION=$2 DIR=junit4-$VERSION -TAR=../junit4_$VERSION.orig.tar.xz +TAR=../junit4_$VERSION.orig.tar.gz ORIG_TAR=$3 #rm -f $3 @@ -14,7 +14,7 @@ mkdir $DIR tar -x -v -z -f $ORIG_TAR rm $ORIG_TAR find . -maxdepth 2 -wholename "./junit-*/*" -exec mv '{}' $DIR \; -XZ_OPT=--best tar -c -J -f $TAR -X debian/orig-tar.exclude $DIR +GZIP=--best tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR rm -rf $DIR junit-* # move to directory 'tarballs'
  8. Download patch debian/junit4.manifest

    --- 4.12-4/debian/junit4.manifest 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/junit4.manifest 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -usr/share/java/junit4.jar: - Class-Path: hamcrest-core.jar - Bundle-Vendor: JUnit - Bundle-Version: 4.12 - Bundle-Name: JUnit Testing Framework - Bundle-ManifestVersion: 2 - Bundle-SymbolicName: org.junit - Export-Package: org.junit.experimental.theories.suppliers;uses:="org.junit.experimental.theories";version="4.12",org.junit.experimental.theories;uses:="org.junit.experimental.theories.internal,org.junit.internal,org.junit.runners.model,org.junit.runners,org.junit";version="4.12",org.junit.experimental.theories.internal;uses:="org.junit.experimental.theories,org.junit.runners.model";version="4.12",org.junit.internal.runners;uses:="org.junit.runner,org.junit.internal,org.junit.runner.notification,org.junit.runners.model,junit.framework,org.junit.runner.manipulation,junit.extensions,org.junit";version="4.12",org.junit.internal;uses:="org.hamcrest,org.junit,org.junit.runners,org.junit.runner,org.junit.runner.notification";version="4.12",org.junit.internal.runners.model;uses:="org.junit.internal,org.junit.runner,org.junit.runners.model,org.junit.runner.notification";version="4.12",org.junit.experimental.categories;uses:="org.junit.runner.manipulation,org.junit.runner,org.junit.runners,org.junit.runners.model";version="4.12",org.junit.runner.manipulation;uses:="org.junit.runner";version="4.12",org.junit.rules;uses:="org.hamcrest,org.junit,org.junit.runners.model,org.junit.internal,org.junit.internal.matchers,org.junit.runner,org.junit.matchers,org.junit.internal.runners.statements";version="4.12",org.junit.runner;uses:="org.junit.runners.model,org.junit.runners,junit.framework,org.junit.internal.runners,org.junit.internal,junit.runner,org.junit.runner.notification,org.junit.runner.manipulation,org.junit.internal.requests,org.junit.internal.builders";version="4.12",org.junit.runners;uses:="org.junit.internal.runners,org.junit.runners.model,org.junit.internal.runners.model,org.junit.internal.runners.rules,org.junit.rules,org.junit.runner,org.junit.runner.notification,org.junit.internal.runners.statements,org.junit,org.junit.internal,org.junit.runner.manipulation,org.junit.internal.builders";version="4.12",org.junit.matchers;uses:="org.junit.internal.matchers,org.hamcrest.core,org.hamcrest";version="4.12",org.junit.runner.notification;uses:="org.junit.runner";version="4.12",org.junit.experimental.results;uses:="org.junit.runner,org.junit.runner.notification,org.junit.internal,org.hamcrest";version="4.12",org.junit.experimental.max;uses:="org.junit.runner,org.junit.runners,org.junit.internal.runners,org.junit.runners.model,org.junit.internal.requests,junit.framework,org.junit.runner.notification";version="4.12",org.junit.internal.builders;uses:="org.junit.runner,org.junit.runners.model,org.junit,org.junit.runner.notification,junit.framework,org.junit.internal.runners,org.junit.runners";version="4.12",org.junit;uses:="org.junit.internal,org.hamcrest,org.junit.runners";version="4.12",org.junit.experimental.runners;uses:="org.junit.runners,org.junit.runners.model";version="4.12",org.junit.internal.runners.rules;uses:="org.junit.rules,org.junit.runners.model,org.junit";version="4.12",org.junit.internal.matchers;uses:="org.hamcrest,org.junit.internal";version="4.12",org.junit.internal.requests;uses:="org.junit.runner,org.junit.internal.builders,org.junit.runner.manipulation,org.junit.internal.runners";version="4.12",org.junit.experimental;uses:="org.junit.runner,org.junit.runners.model,org.junit.runners";version="4.12",org.junit.runners.model;uses:="org.junit.internal.runners.model,org.junit.internal.runners,org.junit.runner,org.junit.internal,org.junit";version="4.12",org.junit.internal.runners.statements;uses:="org.junit.internal,org.junit.runners.model";version="4.12",junit.runner;uses:="junit.framework";version="4.12",junit.textui;uses:="junit.framework,junit.runner";version="4.12",junit.extensions;uses:="junit.framework";version="4.12",junit.framework;uses:="org.junit.runner.manipulation,org.junit.runner,org.junit.runner.notification,org.junit,org.junit.internal";version="4.12" - Import-Package: org.hamcrest;version="1.3",org.hamcrest.core;version="1. 3"
  9. Download patch .pc/tweak-resulttest.patch/src/test/java/junit/tests/runner/ResultTest.java

    --- 4.12-4/.pc/tweak-resulttest.patch/src/test/java/junit/tests/runner/ResultTest.java 1970-01-01 00:00:00.000000000 +0000 +++ 4.12-4ubuntu1/.pc/tweak-resulttest.patch/src/test/java/junit/tests/runner/ResultTest.java 2014-12-04 16:13:56.000000000 +0000 @@ -0,0 +1,107 @@ +package junit.tests.runner; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.util.List; + +import junit.framework.TestCase; +import junit.tests.framework.Success; +import org.junit.runner.JUnitCore; +import org.junit.runner.Result; +import org.junit.runner.notification.Failure; +import org.junit.tests.running.methods.AnnotationTest; + +public class ResultTest extends TestCase { + + public void testRunFailureResultCanBeSerialised() throws Exception { + JUnitCore runner = new JUnitCore(); + Result result = runner.run(AnnotationTest.FailureTest.class); + assertResultSerializable(result); + } + + public void testRunSuccessResultCanBeSerialised() throws Exception { + JUnitCore runner = new JUnitCore(); + Result result = runner.run(Success.class); + assertResultSerializable(result); + } + + private void assertResultSerializable(Result result) throws IOException, ClassNotFoundException { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + new ObjectOutputStream(byteArrayOutputStream).writeObject(result); + byte[] bytes = byteArrayOutputStream.toByteArray(); + ObjectInputStream objectInputStream = new ObjectInputStream(new ByteArrayInputStream(bytes)); + Result fromStream = (Result) objectInputStream.readObject(); + assertSerializedCorrectly(result, fromStream); + + InputStream resource = getClass().getResourceAsStream(getName()); + assertNotNull("Could not read resource " + getName(), resource); + objectInputStream = new ObjectInputStream(resource); + fromStream = (Result) objectInputStream.readObject(); + + assertSerializedCorrectly(new ResultWithFixedRunTime(result), fromStream); + } + + /** + * A version of {@code Result} that returns a hard-coded runtime. + * This makes values returned by the methods deterministic. + */ + private static class ResultWithFixedRunTime extends Result { + private final Result delegate; + + public ResultWithFixedRunTime(Result delegate) { + this.delegate = delegate; + } + + @Override + public int getRunCount() { + return delegate.getRunCount(); + } + + @Override + public int getFailureCount() { + return delegate.getFailureCount(); + } + + @Override + public long getRunTime() { + return 2; + } + + @Override + public List<Failure> getFailures() { + return delegate.getFailures(); + } + + @Override + public int getIgnoreCount() { + return delegate.getIgnoreCount(); + } + } + + private void assertSerializedCorrectly(Result result, Result fromStream) { + assertNotNull(fromStream); + + // Exceptions don't implement equals() so we need to compare field by field + assertEquals("failureCount", result.getFailureCount(), fromStream.getFailureCount()); + assertEquals("ignoreCount", result.getIgnoreCount(), fromStream.getIgnoreCount()); + assertEquals("runTime", result.getRunTime(), fromStream.getRunTime()); + assertEquals("failures", result.getFailures().size(), fromStream.getFailures().size()); + int index = 0; + for (Failure failure : result.getFailures()) { + Failure failureFromStream = fromStream.getFailures().get(index); + String messagePrefix = String.format("failures[%d]", index++); + assertEquals(messagePrefix + ".description", + failure.getDescription(), failureFromStream.getDescription()); + Throwable exception = failure.getException(); + Throwable exceptionFromStream = failureFromStream.getException(); + assertEquals(messagePrefix + ".exception", + exception.getClass(), exceptionFromStream.getClass()); + assertEquals(messagePrefix + ".exception", + exception.getMessage(), exceptionFromStream.getMessage()); + } + } +}
  10. Download patch debian/patches/maven2-compatibility.patch

    --- 4.12-4/debian/patches/maven2-compatibility.patch 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/patches/maven2-compatibility.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -Description: Remove the prerequisite on Maven 3 -Author: Emmanuel Bourg <ebourg@apache.org> -Forwarded: not-needed ---- a/pom.xml -+++ b/pom.xml -@@ -65,7 +65,7 @@ - </mailingLists> - - <prerequisites> -- <maven>3.0.4</maven> -+ <maven>2.2.1</maven> - </prerequisites> - - <scm>
  11. Download patch debian/patches/series

    --- 4.12-4/debian/patches/series 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/patches/series 2016-03-08 11:29:41.000000000 +0000 @@ -1,4 +1,5 @@ -maven2-compatibility.patch -exclude-dependency-sources.patch Version.java.patch privacy-breach-logo.patch + +# Ubuntu +tweak-resulttest.patch
  12. Download patch pom.xml

    --- 4.12-4/pom.xml 2016-03-08 17:37:35.000000000 +0000 +++ 4.12-4ubuntu1/pom.xml 2014-12-04 16:13:56.000000000 +0000 @@ -65,7 +65,7 @@ </mailingLists> <prerequisites> - <maven>2.2.1</maven> + <maven>3.0.4</maven> </prerequisites> <scm> @@ -303,7 +303,7 @@ <minmemory>32m</minmemory> <maxmemory>128m</maxmemory> <failOnError>true</failOnError> - <includeDependencySources>false</includeDependencySources> + <includeDependencySources>true</includeDependencySources> <dependencySourceIncludes> <dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude> </dependencySourceIncludes> @@ -407,7 +407,7 @@ <minmemory>32m</minmemory> <maxmemory>128m</maxmemory> <failOnError>true</failOnError> - <includeDependencySources>false</includeDependencySources> + <includeDependencySources>true</includeDependencySources> <dependencySourceIncludes> <dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude> </dependencySourceIncludes>
  13. Download patch debian/MANIFEST.MF

    --- 4.12-4/debian/MANIFEST.MF 1970-01-01 00:00:00.000000000 +0000 +++ 4.12-4ubuntu1/debian/MANIFEST.MF 2015-06-19 14:36:25.000000000 +0000 @@ -0,0 +1,64 @@ +Manifest-Version: 1.0 +Class-Path: hamcrest-core.jar +Bundle-Vendor: JUnit +Bundle-Version: 4.11 +Bundle-Name: JUnit Testing Framework +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.junit +Export-Package: org.junit.experimental.theories.suppliers;uses:="org.jun + it.experimental.theories";version="4.11",org.junit.experimental.theorie + s;uses:="org.junit.experimental.theories.internal,org.junit.internal,or + g.junit.runners.model,org.junit.runners,org.junit";version="4.11",org.j + unit.experimental.theories.internal;uses:="org.junit.experimental.theor + ies,org.junit.runners.model";version="4.11",org.junit.internal.runners; + uses:="org.junit.runner,org.junit.internal,org.junit.runner.notificatio + n,org.junit.runners.model,junit.framework,org.junit.runner.manipulation + ,junit.extensions,org.junit";version="4.11",org.junit.internal;uses:="o + rg.hamcrest,org.junit,org.junit.runners,org.junit.runner,org.junit.runn + er.notification";version="4.11",org.junit.internal.runners.model;uses:= + "org.junit.internal,org.junit.runner,org.junit.runners.model,org.junit. + runner.notification";version="4.11",org.junit.experimental.categories;u + ses:="org.junit.runner.manipulation,org.junit.runner,org.junit.runners, + org.junit.runners.model";version="4.11",org.junit.runner.manipulation;u + ses:="org.junit.runner";version="4.11",org.junit.rules;uses:="org.hamcr + est,org.junit,org.junit.runners.model,org.junit.internal,org.junit.inte + rnal.matchers,org.junit.runner,org.junit.matchers,org.junit.internal.ru + nners.statements";version="4.11",org.junit.runner;uses:="org.junit.runn + ers.model,org.junit.runners,junit.framework,org.junit.internal.runners, + org.junit.internal,junit.runner,org.junit.runner.notification,org.junit + .runner.manipulation,org.junit.internal.requests,org.junit.internal.bui + lders";version="4.11",org.junit.runners;uses:="org.junit.internal.runne + rs,org.junit.runners.model,org.junit.internal.runners.model,org.junit.i + nternal.runners.rules,org.junit.rules,org.junit.runner,org.junit.runner + .notification,org.junit.internal.runners.statements,org.junit,org.junit + .internal,org.junit.runner.manipulation,org.junit.internal.builders";ve + rsion="4.11",org.junit.matchers;uses:="org.junit.internal.matchers,org. + hamcrest.core,org.hamcrest";version="4.11",org.junit.runner.notificatio + n;uses:="org.junit.runner";version="4.11",org.junit.experimental.result + s;uses:="org.junit.runner,org.junit.runner.notification,org.junit.inter + nal,org.hamcrest";version="4.11",org.junit.experimental.max;uses:="org. + junit.runner,org.junit.runners,org.junit.internal.runners,org.junit.run + ners.model,org.junit.internal.requests,junit.framework,org.junit.runner + .notification";version="4.11",org.junit.internal.builders;uses:="org.ju + nit.runner,org.junit.runners.model,org.junit,org.junit.runner.notificat + ion,junit.framework,org.junit.internal.runners,org.junit.runners";versi + on="4.11",org.junit;uses:="org.junit.internal,org.hamcrest,org.junit.ru + nners";version="4.11",org.junit.experimental.runners;uses:="org.junit.r + unners,org.junit.runners.model";version="4.11",org.junit.internal.runne + rs.rules;uses:="org.junit.rules,org.junit.runners.model,org.junit";vers + ion="4.11",org.junit.internal.matchers;uses:="org.hamcrest,org.junit.in + ternal";version="4.11",org.junit.internal.requests;uses:="org.junit.run + ner,org.junit.internal.builders,org.junit.runner.manipulation,org.junit + .internal.runners";version="4.11",org.junit.experimental;uses:="org.jun + it.runner,org.junit.runners.model,org.junit.runners";version="4.11",org + .junit.runners.model;uses:="org.junit.internal.runners.model,org.junit. + internal.runners,org.junit.runner,org.junit.internal,org.junit";version + ="4.11",org.junit.internal.runners.statements;uses:="org.junit.internal + ,org.junit.runners.model";version="4.11",junit.runner;uses:="junit.fram + ework";version="4.11",junit.textui;uses:="junit.framework,junit.runner" + ;version="4.11",junit.extensions;uses:="junit.framework";version="4.11" + ,junit.framework;uses:="org.junit.runner.manipulation,org.junit.runner, + org.junit.runner.notification,org.junit,org.junit.internal";version="4. + 11" +Import-Package: org.hamcrest;version="1.3",org.hamcrest.core;version="1. + 3"
  14. Download patch src/test/java/junit/tests/runner/ResultTest.java

    --- 4.12-4/src/test/java/junit/tests/runner/ResultTest.java 2014-12-04 16:13:56.000000000 +0000 +++ 4.12-4ubuntu1/src/test/java/junit/tests/runner/ResultTest.java 2016-03-08 17:37:35.000000000 +0000 @@ -36,13 +36,6 @@ public class ResultTest extends TestCase ObjectInputStream objectInputStream = new ObjectInputStream(new ByteArrayInputStream(bytes)); Result fromStream = (Result) objectInputStream.readObject(); assertSerializedCorrectly(result, fromStream); - - InputStream resource = getClass().getResourceAsStream(getName()); - assertNotNull("Could not read resource " + getName(), resource); - objectInputStream = new ObjectInputStream(resource); - fromStream = (Result) objectInputStream.readObject(); - - assertSerializedCorrectly(new ResultWithFixedRunTime(result), fromStream); } /**
  15. Download patch debian/junit4-doc.install

    --- 4.12-4/debian/junit4-doc.install 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/junit4-doc.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -target/site/apidocs/* usr/share/doc/junit4/api -target/apidocs/* usr/share/doc/junit4/api
  16. Download patch .pc/maven2-compatibility.patch/pom.xml
  17. Download patch debian/patches/tweak-resulttest.patch

    --- 4.12-4/debian/patches/tweak-resulttest.patch 1970-01-01 00:00:00.000000000 +0000 +++ 4.12-4ubuntu1/debian/patches/tweak-resulttest.patch 2015-06-19 15:08:19.000000000 +0000 @@ -0,0 +1,16 @@ +--- a/src/test/java/junit/tests/runner/ResultTest.java ++++ b/src/test/java/junit/tests/runner/ResultTest.java +@@ -36,13 +36,6 @@ public class ResultTest extends TestCase + ObjectInputStream objectInputStream = new ObjectInputStream(new ByteArrayInputStream(bytes)); + Result fromStream = (Result) objectInputStream.readObject(); + assertSerializedCorrectly(result, fromStream); +- +- InputStream resource = getClass().getResourceAsStream(getName()); +- assertNotNull("Could not read resource " + getName(), resource); +- objectInputStream = new ObjectInputStream(resource); +- fromStream = (Result) objectInputStream.readObject(); +- +- assertSerializedCorrectly(new ResultWithFixedRunTime(result), fromStream); + } + + /**
  18. Download patch debian/ant.properties

    --- 4.12-4/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 4.12-4ubuntu1/debian/ant.properties 2015-06-19 14:36:25.000000000 +0000 @@ -0,0 +1,3 @@ +hamcrestlib=/usr/share/java/hamcrest-core.jar +manifest=debian/MANIFEST.MF +version-status=
  19. Download patch debian/build.xml
  20. Download patch debian/orig-tar.exclude

    --- 4.12-4/debian/orig-tar.exclude 2015-12-22 17:47:55.000000000 +0000 +++ 4.12-4ubuntu1/debian/orig-tar.exclude 2015-12-22 23:14:37.000000000 +0000 @@ -1,8 +1,5 @@ *.jar *.zip apache-maven -hopscotch-*.min.js -.classpath -.project -.settings -.travis.yml + +
  21. Download patch debian/junit-pom-template.xml

    --- 4.12-4/debian/junit-pom-template.xml 1970-01-01 00:00:00.000000000 +0000 +++ 4.12-4ubuntu1/debian/junit-pom-template.xml 2015-06-19 15:09:44.000000000 +0000 @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> + <modelVersion>4.0.0</modelVersion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>@version@</version> + <name>JUnit</name> + <url>http://junit.org</url> + <description> + JUnit is a regression testing framework written by Erich Gamma and Kent Beck. + It is used by the developer who implements unit tests in Java. + </description> + <organization> + <name>JUnit</name> + <url>http://www.junit.org</url> + </organization> + <mailingLists> + <mailingList> + <name>JUnit Mailing List</name> + <post>junit@yahoogroups.com</post> + <archive> + http://tech.groups.yahoo.com/group/junit/ + </archive> + </mailingList> + </mailingLists> + <licenses> + <license> + <name>Common Public License Version 1.0</name> + <url>http://www.opensource.org/licenses/cpl1.0.txt</url> + </license> + </licenses> + <scm> + <connection>scm:git:git://github.com/KentBeck/junit.git</connection> + <developerConnection>scm:git:git@github.com:KentBeck/junit.git</developerConnection> + <url>http://github.com/KentBeck/junit/tree/master</url> + </scm> + <developers> + <developer> + <id>dsaff</id> + <name>David Saff</name> + <email>david@saff.net</email> + </developer> + </developers> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <encoding>ISO-8859-1</encoding> + <source>${jdk.version}</source> + <target>${jdk.version}</target> + </configuration> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-core</artifactId> + <version>1.3</version> + <scope>compile</scope> + </dependency> + </dependencies> + <properties> + <jdk.version>1.5</jdk.version> + </properties> +</project> \ No newline at end of file

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: junitperf

junitperf (1.9.1-8ubuntu1) quantal; urgency=low * Ensure backwards compatible bytecode is built (LP: #1049787): - d/rules: Ensure debian/ant.properties is used by dh_auto_build. -- James Page <james.page@ubuntu.com> Thu, 20 Sep 2012 10:23:59 +0100 junitperf (1.9.1-8build1) quantal; urgency=low * No-change rebuild with openjdk-7 as default-jdk. -- James Page <james.page@ubuntu.com> Fri, 18 May 2012 11:41:22 +0100

Modifications :
  1. Download patch debian/rules

    --- 1.9.1-8/debian/rules 2010-05-20 19:35:08.000000000 +0000 +++ 1.9.1-8ubuntu1/debian/rules 2012-09-20 09:21:41.000000000 +0000 @@ -4,4 +4,4 @@ dh $@ --with javahelper override_dh_auto_build: - dh_auto_build -- jar javadoc + dh_auto_build -- -propertyfile debian/ant.properties jar javadoc
  2. Download patch debian/control

    --- 1.9.1-8/debian/control 2010-05-20 19:35:08.000000000 +0000 +++ 1.9.1-8ubuntu1/debian/control 2012-09-20 09:24:13.000000000 +0000 @@ -1,7 +1,8 @@ Source: junitperf Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Arnaud Vandyck <avdyk@debian.org>, Wolfgang Baer <WBaer@gmx.de>, Niels Thykier <niels@thykier.net> Build-Depends: ant, debhelper (>= 7.0.50~), default-jdk, javahelper

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-dbcp-java

libcommons-dbcp-java (1.4-5ubuntu2) xenial; urgency=medium * Build-depend on libtomcat8-java. -- Matthias Klose <doko@ubuntu.com> Mon, 22 Feb 2016 20:56:42 +0100 libcommons-dbcp-java (1.4-5ubuntu1) vivid; urgency=low * Merge from Debian unstable. Remaining changes: - d/ant.properties: Specifiy location of dependencies for build, set source/target version of Java to 1.5. - d/control: Switch BD/BDI's for ant based build, manually specify dependencies for binary packages. - d/libcommons-dbcp-java-doc.install: Pickup docs from ant build location. - d/maven.rules: Specify mappings for installed maven artifacts. - d/patches/01_build.patch: Patch ant build file for Javadoc locations. - d/rules: Rewrite for ant based build. - d/maven.*, d/patches/0001-configure-source-and-target-version-1.5.patch, d/README.source: Dropped as not required for ant based build. -- James Page <james.page@ubuntu.com> Mon, 08 Dec 2014 15:30:21 +0000

Modifications :
  1. Download patch .pc/01_build.patch/build.xml
  2. Download patch debian/README.source

    --- 1.4-5/debian/README.source 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/README.source 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -Information about libcommons-dbcp-java --------------------------------------- - -This package was debianized using the mh_make command -from the maven-debian-helper package. - -The build system uses Maven but prevents it from downloading -anything from the Internet, making the build compliant with -the Debian policy.
  3. Download patch debian/rules

    --- 1.4-5/debian/rules 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/rules 2014-10-26 04:26:39.000000000 +0000 @@ -1,9 +1,25 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk +include /usr/share/cdbs/1/class/ant.mk -JAVA_HOME := /usr/lib/jvm/default-java +JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := commons-collections3 commons-pool junit geronimo-jta_1.1_spec + +PACKAGE=commons-dbcp + +DEB_ANT_CLEAN_TARGET := clean +DEB_ANT_BUILD_TARGET := build +#DEB_ANT_CHECK_TARGET := test + +# Per Debian Java Policy, install a versioned JAR and an unversioned symlink +binary-post-install/lib$(PACKAGE)-java:: + mh_installpoms -plib$(PACKAGE)-java + mh_installjar -plib$(PACKAGE)-java -l pom.xml dist/$(PACKAGE).jar + +clean:: + -rm -rf debian/tmp + -rm -fr doc/api DEB_INSTALL_CHANGELOGS_ALL := RELEASE-NOTES.txt
  4. Download patch debian/patches/01_build.patch

    --- 1.4-5/debian/patches/01_build.patch 1970-01-01 00:00:00.000000000 +0000 +++ 1.4-5ubuntu2/debian/patches/01_build.patch 2012-07-09 09:14:53.000000000 +0000 @@ -0,0 +1,24 @@ +Description: Cleanup upstream build.xml: + - Use local Javadoc index from default-jdk-doc + - Set test.failonerror to false +Origin: vendor +Forwarded: not-needed +Author: Damien Raude-Morvan <drazzib@debian.org> +Last-Update: 2010-02-20 +--- a/build.xml ++++ b/build.xml +@@ -179,8 +179,8 @@ + nohelp="true" + nonavbar="false" + serialwarn="false"> +- <link href="http://java.sun.com/j2se/1.5.0/docs/api"/> +- <link href="http://commons.apache.org/pool/apidocs"/> ++ <link href="/usr/share/doc/default-jdk-doc/api/"/> ++ <link href="/usr/share/doc/libcommons-pool-java/api/"/> + </javadoc> + </target> + +--- /dev/null ++++ b/build.properties +@@ -0,0 +1 @@ ++test.failonerror=false
  5. Download patch .pc/0001-configure-source-and-target-version-1.5.patch/pom.xml
  6. Download patch debian/control

    --- 1.4-5/debian/control 2014-10-25 20:45:36.000000000 +0000 +++ 1.4-5ubuntu2/debian/control 2016-02-22 19:56:40.000000000 +0000 @@ -1,16 +1,16 @@ Source: libcommons-dbcp-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Damien Raude-Morvan <drazzib@debian.org>, Emmanuel Bourg <ebourg@apache.org> -Build-Depends: cdbs, debhelper (>= 9), default-jdk, maven-debian-helper (>= 1.4) +Build-Depends: ant, cdbs, debhelper (>= 9), default-jdk, maven-repo-helper Build-Depends-Indep: default-jdk-doc, junit, libcommons-pool-java, libcommons-pool-java-doc, libgeronimo-jta-1.1-spec-java, - libmaven-javadoc-plugin-java, libtomcat8-java Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-java/libcommons-dbcp-java.git @@ -19,8 +19,8 @@ Homepage: http://commons.apache.org/dbcp Package: libcommons-dbcp-java Architecture: all -Depends: ${maven:Depends}, ${misc:Depends} -Suggests: libcommons-dbcp-java-doc, ${maven:OptionalDepends} +Depends: ${misc:Depends}, libcommons-pool-java, libcommons-collections3-java +Suggests: libcommons-dbcp-java-doc, libgeronimo-jta-1.1-spec-java Description: Database Connection Pooling Services The DBCP package provides database connection pooling services. The following features are supported @@ -38,8 +38,8 @@ Description: Database Connection Pooling Package: libcommons-dbcp-java-doc Architecture: all Section: doc -Depends: ${maven:DocDepends}, ${misc:Depends} -Recommends: ${maven:DocOptionalDepends} +Depends: ${misc:Depends} +Recommends: libcommons-pool-java-doc, default-jdk-doc Suggests: libcommons-dbcp-java Description: Database Connection Pooling Services - documentation The DBCP package provides database connection pooling services. The
  7. Download patch .pc/03_exclude-transactions-tests.patch/pom.xml

    --- 1.4-5/.pc/03_exclude-transactions-tests.patch/pom.xml 2016-02-22 23:09:56.000000000 +0000 +++ 1.4-5ubuntu2/.pc/03_exclude-transactions-tests.patch/pom.xml 2010-02-07 16:59:20.000000000 +0000 @@ -265,14 +265,6 @@ <tarLongFileMode>gnu</tarLongFileMode> </configuration> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> </plugins> </build> <reporting>
  8. Download patch .pc/applied-patches

    --- 1.4-5/.pc/applied-patches 2016-02-22 23:09:56.927601551 +0000 +++ 1.4-5ubuntu2/.pc/applied-patches 2016-02-22 23:09:57.171608059 +0000 @@ -1,3 +1,3 @@ -0001-configure-source-and-target-version-1.5.patch +01_build.patch 02_java7_compat.patch 03_exclude-transactions-tests.patch
  9. Download patch debian/maven.rules

    --- 1.4-5/debian/maven.rules 2014-10-25 20:52:44.000000000 +0000 +++ 1.4-5ubuntu2/debian/maven.rules 2016-02-22 19:57:43.000000000 +0000 @@ -19,3 +19,5 @@ commons-dbcp commons-dbcp jar s/.*/debian/ * * junit junit jar s/.*/3.x/ * * s/tomcat/org.apache.tomcat/ s/naming-common/tomcat-catalina/ * s/.*/8.x/ * * +commons-collections commons-collections jar s/3\..*/3.x/ +s/org.apache.geronimo.specs/glassfish/ s/geronimo-jta_1.1_spec/javaee/ jar s/.*/debian/
  10. Download patch build.properties

    --- 1.4-5/build.properties 1970-01-01 00:00:00.000000000 +0000 +++ 1.4-5ubuntu2/build.properties 2016-02-22 23:09:57.000000000 +0000 @@ -0,0 +1 @@ +test.failonerror=false
  11. Download patch debian/patches/0001-configure-source-and-target-version-1.5.patch

    --- 1.4-5/debian/patches/0001-configure-source-and-target-version-1.5.patch 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/patches/0001-configure-source-and-target-version-1.5.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -From: Torsten Werner <twerner@debian.org> -Date: Sun, 11 Sep 2011 17:24:30 +0200 -Subject: configure source and target version 1.5 - ---- - pom.xml | 8 ++++++++ - 1 files changed, 8 insertions(+), 0 deletions(-) - -diff --git a/pom.xml b/pom.xml -index bff49ea..e145e42 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -265,6 +265,14 @@ - <tarLongFileMode>gnu</tarLongFileMode> - </configuration> - </plugin> -+ <plugin> -+ <groupId>org.apache.maven.plugins</groupId> -+ <artifactId>maven-compiler-plugin</artifactId> -+ <configuration> -+ <source>1.5</source> -+ <target>1.5</target> -+ </configuration> -+ </plugin> - </plugins> - </build> - <reporting> ---
  12. Download patch debian/patches/03_exclude-transactions-tests.patch

    --- 1.4-5/debian/patches/03_exclude-transactions-tests.patch 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/patches/03_exclude-transactions-tests.patch 2014-12-08 15:05:46.000000000 +0000 @@ -3,9 +3,9 @@ Author: Emmanuel Bourg <ebourg@apache.or Forwarded: not-needed --- a/pom.xml +++ b/pom.xml -@@ -272,6 +272,20 @@ - <source>1.5</source> - <target>1.5</target> +@@ -278,6 +278,20 @@ + <effort>Default</effort> + <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile> </configuration> + <executions> + <execution> @@ -22,5 +22,5 @@ Forwarded: not-needed + </execution> + </executions> </plugin> - </plugins> - </build> + <plugin> + <groupId>org.codehaus.mojo</groupId>
  13. Download patch debian/patches/series

    --- 1.4-5/debian/patches/series 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/patches/series 2014-10-26 04:26:39.000000000 +0000 @@ -1,3 +1,3 @@ -0001-configure-source-and-target-version-1.5.patch +01_build.patch 02_java7_compat.patch 03_exclude-transactions-tests.patch
  14. Download patch debian/libcommons-dbcp-java-doc.install

    --- 1.4-5/debian/libcommons-dbcp-java-doc.install 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/libcommons-dbcp-java-doc.install 2014-10-26 04:26:39.000000000 +0000 @@ -1,2 +1,2 @@ -target/apidocs/* usr/share/doc/libcommons-dbcp-java/api +dist/docs/* usr/share/doc/libcommons-dbcp-java
  15. Download patch pom.xml

    --- 1.4-5/pom.xml 2016-02-22 23:09:56.000000000 +0000 +++ 1.4-5ubuntu2/pom.xml 2016-02-22 23:09:57.000000000 +0000 @@ -265,12 +265,18 @@ <tarLongFileMode>gnu</tarLongFileMode> </configuration> </plugin> + </plugins> + </build> + <reporting> + <plugins> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <version>2.1</version> <configuration> - <source>1.5</source> - <target>1.5</target> + <threshold>Normal</threshold> + <effort>Default</effort> + <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile> </configuration> <executions> <execution> @@ -287,20 +293,6 @@ </execution> </executions> </plugin> - </plugins> - </build> - <reporting> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <version>2.1</version> - <configuration> - <threshold>Normal</threshold> - <effort>Default</effort> - <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile> - </configuration> - </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId>
  16. Download patch debian/maven.cleanIgnoreRules

    --- 1.4-5/debian/maven.cleanIgnoreRules 2014-10-25 20:52:32.000000000 +0000 +++ 1.4-5ubuntu2/debian/maven.cleanIgnoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -# Maven clean ignore rules - ignore some Maven dependencies and plugins -# during the clean phase of a Maven build -# Format of this file is: -# [group] [artifact] [type] [version] [classifier] [scope] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM before mvn clean is called -# junit junit jar s/3\\..*/3.x/ -
  17. Download patch debian/maven.properties

    --- 1.4-5/debian/maven.properties 2014-10-25 20:19:43.000000000 +0000 +++ 1.4-5ubuntu2/debian/maven.properties 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -# Include here properties to pass to Maven during the build. -# For example: -# maven.test.skip=true -
  18. Download patch build.xml

    --- 1.4-5/build.xml 2010-02-07 16:59:20.000000000 +0000 +++ 1.4-5ubuntu2/build.xml 2016-02-22 23:09:57.000000000 +0000 @@ -179,8 +179,8 @@ nohelp="true" nonavbar="false" serialwarn="false"> - <link href="http://java.sun.com/j2se/1.5.0/docs/api"/> - <link href="http://commons.apache.org/pool/apidocs"/> + <link href="/usr/share/doc/default-jdk-doc/api/"/> + <link href="/usr/share/doc/libcommons-pool-java/api/"/> </javadoc> </target>
  19. Download patch debian/maven.ignoreRules

    --- 1.4-5/debian/maven.ignoreRules 2014-10-25 20:52:32.000000000 +0000 +++ 1.4-5ubuntu2/debian/maven.ignoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -# Maven ignore rules - ignore some Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] [classifier] [scope] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM -# junit junit jar s/3\\..*/3.x/ - -commons-logging commons-logging * * * * -org.apache.geronimo.modules geronimo-transaction * * * * -org.apache.maven.plugins maven-assembly-plugin * * * * -org.apache.maven.plugins maven-changes-plugin * * * * -org.apache.maven.plugins maven-checkstyle-plugin * * * * -org.apache.maven.plugins maven-pmd-plugin * * * * -org.apache.maven.plugins maven-surefire-plugin * * * * -org.codehaus.mojo clirr-maven-plugin * * * * -org.codehaus.mojo cobertura-maven-plugin * * * * -org.codehaus.mojo findbugs-maven-plugin * * * * -tomcat naming-java * * * *
  20. Download patch debian/maven.publishedRules

    --- 1.4-5/debian/maven.publishedRules 2014-10-25 20:52:32.000000000 +0000 +++ 1.4-5ubuntu2/debian/maven.publishedRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -# Maven published rules - additional rules to publish, to help -# the packaging work of Debian maintainers using mh_make -# Format of this file is: -# [group] [artifact] [type] [version] [classifier] [scope] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# - a regular expression of the form s/match/replace/ -# in this case, elements that match are transformed using -# the regex rule. -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., replacing the version with 3.x -# junit junit jar s/3\\..*/3.x/ -
  21. Download patch debian/ant.properties

    --- 1.4-5/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 1.4-5ubuntu2/debian/ant.properties 2012-07-09 09:45:00.000000000 +0000 @@ -0,0 +1,4 @@ +commons-collections.jar=/usr/share/java/commons-collections3.jar +commons-pool.jar=/usr/share/java/commons-pool.jar +ant.build.javac.source=1.5 +ant.build.javac.target=1.5

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-discovery-java

libcommons-discovery-java (0.5-3ubuntu1) quantal; urgency=low * Merge from Debian testing. Remaining changes: - d/control: Switch Build-Deps from maven to ant, fix Depends on binary packages. - d/rules: Switch from maven to ant cdbs build and ensure that junit4 is used to execute unit tests. - d/ant.properties: Specify build overrides for upstream build.xml to support use of system Java libraries. - d/libcommons-discovery-java-doc.install: install API docs from ant build output. - d/patches/fix_junit4_tests.diff: fix build process to execute tests using the junit ant task rather than executing junit directly in order to support use of JUnit4 annotations. -- James Page <james.page@ubuntu.com> Mon, 28 May 2012 17:18:46 +0100

Modifications :
  1. Download patch debian/rules

    --- 0.5-3/debian/rules 2011-11-14 23:12:27.000000000 +0000 +++ 0.5-3ubuntu1/debian/rules 2012-05-22 09:44:00.000000000 +0000 @@ -1,10 +1,20 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk include /usr/share/cdbs/1/class/javahelper.mk +include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := ant-junit4 ant-junit +DEB_ANT_BUILD_TARGET := dist test.discovery +LIBRARY := commons-discovery + +install/lib$(LIBRARY)-java:: + mh_installpoms -plib$(LIBRARY)-java + mh_installjar -plib$(LIBRARY)-java -l pom.xml dist/$(LIBRARY).jar + +clean:: + -rm -rf debian/tmp get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
  2. Download patch debian/control

    --- 0.5-3/debian/control 2012-03-08 16:08:49.000000000 +0000 +++ 0.5-3ubuntu1/debian/control 2012-05-28 16:19:24.000000000 +0000 @@ -1,13 +1,14 @@ Source: libcommons-discovery-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Damien Raude-Morvan <drazzib@debian.org>, Kumar Appaiah <akumar@debian.org>, Varun Hiremath <varun@debian.org>, Jakub Adam <jakub.adam@ktknet.cz> -Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) -Build-Depends-Indep: libcommons-logging-java, junit4, default-jdk-doc, libcommons-logging-java-doc, - libmaven-javadoc-plugin-java, javahelper +Build-Depends: debhelper (>= 7), cdbs, ant, default-jdk +Build-Depends-Indep: ant-optional, libcommons-logging-java, junit4, default-jdk-doc, + libcommons-logging-java-doc, maven-repo-helper, javahelper Standards-Version: 3.9.3 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libcommons-discovery-java/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libcommons-discovery-java/ @@ -15,8 +16,7 @@ Homepage: http://commons.apache.org/disc Package: libcommons-discovery-java Architecture: all -Depends: ${misc:Depends}, ${maven:Depends} -Recommends: ${maven:OptionalDepends} +Depends: ${misc:Depends}, libcommons-logging-java Suggests: libcommons-discovery-java-doc Description: locates classes that implement a given Java interface The Discovery Component is about discovering, or finding, @@ -39,8 +39,7 @@ Description: locates classes that implem Package: libcommons-discovery-java-doc Section: doc Architecture: all -Depends: ${misc:Depends}, ${maven:DocDepends} -Recommends: ${maven:DocOptionalDepends} +Depends: ${misc:Depends}, libcommons-logging-java-doc Suggests: libcommons-discovery-java Description: locates classes that implement a given Java interface (documentation) The Discovery Component is about discovering, or finding,
  3. Download patch .pc/applied-patches

    --- 0.5-3/.pc/applied-patches 2012-05-28 17:36:07.931191460 +0000 +++ 0.5-3ubuntu1/.pc/applied-patches 2012-05-28 17:36:08.135196371 +0000 @@ -1,2 +1,3 @@ java6_incompatible_types.diff java6_incompatible_types_tests.diff +fix_junit4_tests.diff
  4. Download patch debian/patches/series

    --- 0.5-3/debian/patches/series 2011-11-01 14:41:14.000000000 +0000 +++ 0.5-3ubuntu1/debian/patches/series 2012-05-22 09:44:00.000000000 +0000 @@ -1,2 +1,3 @@ java6_incompatible_types.diff java6_incompatible_types_tests.diff +fix_junit4_tests.diff
  5. Download patch .pc/fix_junit4_tests.diff/build.xml
  6. Download patch build.xml

    --- 0.5-3/build.xml 2008-07-14 22:44:17.000000000 +0000 +++ 0.5-3ubuntu1/build.xml 2012-05-28 17:36:08.000000000 +0000 @@ -221,11 +221,20 @@ <target name="test.discovery" depends="compile.tests" description="Run basic Service unit tests ..."> <echo message="Running basic Service tests ..."/> - <java classname="${test.runner}" fork="yes" + <!-- java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}"> <arg value="org.apache.commons.discovery.test.TestAll"/> <classpath refid="test.classpath"/> - </java> + </java --> + <junit printsummary="yes" haltonfailure="yes"> + <classpath refid="test.classpath"/> + <formatter type="plain"/> + <batchtest fork="yes"> + <fileset dir="${test.home}"> + <include name="**/TestAll.java"/> + </fileset> + </batchtest> + </junit> </target>
  7. Download patch debian/libcommons-discovery-java-doc.install

    --- 0.5-3/debian/libcommons-discovery-java-doc.install 2011-09-19 21:29:37.000000000 +0000 +++ 0.5-3ubuntu1/debian/libcommons-discovery-java-doc.install 2012-05-22 09:44:00.000000000 +0000 @@ -1,2 +1,2 @@ -target/apidocs/* usr/share/doc/libcommons-discovery-java/api +dist/docs/api/* usr/share/doc/libcommons-discovery-java/api
  8. Download patch debian/ant.properties

    --- 0.5-3/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 0.5-3ubuntu1/debian/ant.properties 2011-11-23 11:06:21.000000000 +0000 @@ -0,0 +1,4 @@ +junit.jar=/usr/share/java/junit4.jar +logger.jar=/usr/share/java/commons-logging.jar +ant.build.javac.source=1.5 +ant.build.javac.target=1.5
  9. Download patch debian/patches/fix_junit4_tests.diff

    --- 0.5-3/debian/patches/fix_junit4_tests.diff 1970-01-01 00:00:00.000000000 +0000 +++ 0.5-3ubuntu1/debian/patches/fix_junit4_tests.diff 2011-11-23 11:47:23.000000000 +0000 @@ -0,0 +1,35 @@ +Description: Execute JUnit tests using Ant junit task instead of executing + junit directory using java as this does not support JUnit4 test annotations. + . + Upstream have switched build system to maven so this patch will not be + forwarded either to Debian or to upstream. +Author: James Page <james.page@ubuntu.com> +Forwarded: not-needed + +Index: libcommons-discovery-java-0.5/build.xml +=================================================================== +--- libcommons-discovery-java-0.5.orig/build.xml 2011-11-23 11:13:50.206722656 +0000 ++++ libcommons-discovery-java-0.5/build.xml 2011-11-23 11:16:25.095112101 +0000 +@@ -221,11 +221,20 @@ + <target name="test.discovery" depends="compile.tests" + description="Run basic Service unit tests ..."> + <echo message="Running basic Service tests ..."/> +- <java classname="${test.runner}" fork="yes" ++ <!-- java classname="${test.runner}" fork="yes" + failonerror="${test.failonerror}"> + <arg value="org.apache.commons.discovery.test.TestAll"/> + <classpath refid="test.classpath"/> +- </java> ++ </java --> ++ <junit printsummary="yes" haltonfailure="yes"> ++ <classpath refid="test.classpath"/> ++ <formatter type="plain"/> ++ <batchtest fork="yes"> ++ <fileset dir="${test.home}"> ++ <include name="**/TestAll.java"/> ++ </fileset> ++ </batchtest> ++ </junit> + </target> + +

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-lang-java

libcommons-lang-java (2.6-6ubuntu3) artful; urgency=medium * Drop Ubuntu diff, no longer required and causes other packages to fail. LP: #1652759. -- Tiago Stürmer Daitx <tiago.daitx@ubuntu.com> Wed, 28 Jun 2017 01:48:54 +0000 libcommons-lang-java (2.6-6ubuntu2) xenial; urgency=medium * d/libcommons-lang-java.poms: do not reference javadoc.jar (LP: #1556647) . -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Wed, 16 Mar 2016 12:24:31 -0700 libcommons-lang-java (2.6-6ubuntu1) xenial; urgency=medium * Resync with Debian unstable, remaining changes: - d/control,rules,libcommons-lang-java.poms: Drop use of bnd for generating OSGi metadata. -- James Page <james.page@ubuntu.com> Tue, 08 Mar 2016 11:12:15 +0000

Modifications :
  1. Download patch debian/control

    --- 2.6-6/debian/control 2015-11-17 15:09:35.000000000 +0000 +++ 2.6-6ubuntu3/debian/control 2017-06-28 01:48:54.000000000 +0000 @@ -1,7 +1,8 @@ Source: libcommons-lang-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Emmanuel Bourg <ebourg@apache.org> Build-Depends:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libjaxen-java

libjaxen-java (1.1.6-1ubuntu1) trusty; urgency=low * Revert to using ant for build process to support continued main inclusion in Ubuntu. -- James Page <james.page@ubuntu.com> Tue, 12 Nov 2013 14:35:11 +0000

Modifications :
  1. Download patch debian/rules

    --- 1.1.6-1/debian/rules 2013-07-25 17:27:31.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/rules 2013-11-12 13:55:46.000000000 +0000 @@ -1,9 +1,19 @@ #!/usr/bin/make -f -include /usr/share/cdbs/1/class/maven.mk +include /usr/share/cdbs/1/class/ant.mk include /usr/share/cdbs/1/rules/debhelper.mk JAVA_HOME := /usr/lib/jvm/default-java +DEB_ANT_BUILDFILE := debian/build.xml +DEB_JARS := ant-junit junit xom +DEB_ANT_BUILD_TARGET := dist + +install/libjaxen-java:: + mh_installpoms -plibjaxen-java + mh_installjar -plibjaxen-java -l pom.xml dist/jaxen.jar + +clean:: + mh_clean get-orig-source: uscan --force-download --download-version $(DEB_UPSTREAM_VERSION) --rename
  2. Download patch debian/control

    --- 1.1.6-1/debian/control 2013-07-26 09:31:47.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/control 2013-11-12 13:27:56.000000000 +0000 @@ -1,11 +1,12 @@ Source: libjaxen-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Marcus Better <marcus@better.se>, Emmanuel Bourg <ebourg@apache.org>, Damien Raude-Morvan <drazzib@debian.org> -Build-Depends: cdbs, debhelper (>= 7), default-jdk -Build-Depends-Indep: junit, libdom4j-java, libjdom1-java, libxom-java, maven-debian-helper, libmaven-javadoc-plugin-java +Build-Depends: cdbs, debhelper (>= 7), ant, ant-optional, default-jdk +Build-Depends-Indep: junit, libdom4j-java, libjdom1-java, libxom-java, maven-repo-helper Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/libjaxen-java Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/libjaxen-java
  3. Download patch debian/libjaxen-java-doc.docs

    --- 1.1.6-1/debian/libjaxen-java-doc.docs 2013-07-25 16:24:04.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/libjaxen-java-doc.docs 2013-11-12 14:05:09.000000000 +0000 @@ -1 +1 @@ -target/apidocs +dist/docs/api
  4. Download patch debian/libjaxen-java-doc.links
  5. Download patch debian/libjaxen-java-doc.doc-base

    --- 1.1.6-1/debian/libjaxen-java-doc.doc-base 2013-07-25 16:26:28.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/libjaxen-java-doc.doc-base 2013-11-12 14:08:23.000000000 +0000 @@ -5,5 +5,5 @@ Abstract: This is the API Javadoc provid Section: Programming Format: HTML -Index: /usr/share/doc/libjaxen-java-doc/apidocs/index.html -Files: /usr/share/doc/libjaxen-java-doc/apidocs/* +Index: /usr/share/doc/libjaxen-java-doc/api/index.html +Files: /usr/share/doc/libjaxen-java-doc/api/*
  6. Download patch debian/ant.properties

    --- 1.1.6-1/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/ant.properties 2013-11-12 14:08:06.000000000 +0000 @@ -0,0 +1,4 @@ +ant.build.javac.source=1.3 +ant.build.javac.target=1.3 +noget=true +libdir=/usr/share/java
  7. Download patch debian/build.xml

    --- 1.1.6-1/debian/build.xml 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.6-1ubuntu1/debian/build.xml 2013-11-12 13:55:37.000000000 +0000 @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!--build.xml generated by maven from project.xml version 1.1 + on date February 13 2006, time 1000--> +<project default="jar" name="jaxen" basedir=".."> + <!--Load local and user build preferences--> + <property file="build.properties"></property> + <property file="${user.home}/build.properties"></property> + <!--Build properties--> + <property name="defaulttargetdir" value="${basedir}/target"></property> + <property name="libdir" value="/usr/share/java"></property> + <property name="classesdir" value="${basedir}/target/classes"></property> + <property name="testclassesdir" value="${basedir}/target/test-classes"></property> + <property name="testreportdir" value="${basedir}/target/test-reports"></property> + <property name="distdir" value="${basedir}/dist"></property> + <property name="javadocdir" value="${basedir}/dist/docs/api"></property> + <property name="final.name" value="jaxen"></property> + <property name="proxy.host" value=""></property> + <property name="proxy.port" value=""></property> + <property name="proxy.username" value=""></property> + <property name="proxy.password" value=""></property> + <path id="build.classpath"> + <pathelement location="${libdir}/dom4j.jar"></pathelement> + <pathelement location="${libdir}/jdom1.jar"></pathelement> + <pathelement location="${libdir}/xml-apis.jar"></pathelement> + <pathelement location="${libdir}/xercesImpl.jar"></pathelement> + <pathelement location="${libdir}/xom.jar"></pathelement> + <pathelement location="${libdir}/junit.jar"></pathelement> + </path> + <target name="init" description="o Initializes some properties"> + <mkdir dir="${libdir}"></mkdir> + <!--Test if JUNIT is present in ANT classpath--> + <available property="Junit.present" classname="junit.framework.Test"></available> + <!--Test if user defined a proxy--> + <condition property="useProxy"> + <and> + <isset property="proxy.host"></isset> + <not> + <equals trim="true" arg2="" arg1="${proxy.host}"></equals> + </not> + </and> + </condition> + </target> + <target name="compile" description="o Compile the code"> + <mkdir dir="${classesdir}"></mkdir> + <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> + <src> + <pathelement location="${basedir}/src/java/main"></pathelement> + </src> + <classpath refid="build.classpath"></classpath> + </javac> + </target> + <target name="jar" description="o Create the jar" depends="compile,test"> + <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar> + </target> + <target name="clean" description="o Clean up the generated directories"> + <delete dir="${defaulttargetdir}"></delete> + <delete dir="${distdir}"></delete> + </target> + <target name="dist" description="o Create a distribution" depends="jar, javadoc"> + <mkdir dir="dist"></mkdir> + <copy todir="dist"> + <fileset dir="${defaulttargetdir}" includes="*.jar"></fileset> + <fileset dir="${basedir}" includes="LICENSE*, README*"></fileset> + </copy> + </target> + <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test"> + <fail message="There were test failures."></fail> + </target> + <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests"> + <mkdir dir="${testreportdir}"></mkdir> + <junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true"> + <sysproperty key="basedir" value="."></sysproperty> + <formatter type="xml"></formatter> + <formatter usefile="false" type="plain"></formatter> + <classpath> + <path refid="build.classpath"></path> + <pathelement path="${testclassesdir}"></pathelement> + <pathelement path="${classesdir}"></pathelement> + </classpath> + <batchtest todir="${testreportdir}"> + <fileset dir="${basedir}/src/java/test"> + <include name="**/*Test.java"></include> + <exclude name="org/jaxen/jdom/XPathTest.java"></exclude> + </fileset> + </batchtest> + </junit> + </target> + <target name="junit-present" unless="Junit.present" depends="init"> + <echo>================================= WARNING ================================</echo> + <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo> + <echo>==========================================================================</echo> + </target> + <target name="compile-tests" if="Junit.present" depends="junit-present,compile"> + <mkdir dir="${testclassesdir}"></mkdir> + <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> + <src> + <pathelement location="${basedir}/src/java/test"></pathelement> + </src> + <classpath> + <path refid="build.classpath"></path> + <pathelement path="${classesdir}"></pathelement> + </classpath> + </javac> + <copy todir="${testclassesdir}"> + <fileset dir="${basedir}/src/java/test"> + <include name="**/*.werk"></include> + <include name="**/*.xml"></include> + <include name="**/*.properties"></include> + </fileset> + </copy> + </target> + <target name="javadoc" description="o Generate javadoc"> + <mkdir dir="${javadocdir}"></mkdir> + <tstamp> + <format pattern="2001-yyyy" property="year"></format> + </tstamp> + <property name="copyright" value="Copyright &amp;copy; Codehaus. All Rights Reserved."></property> + <property name="title" value="jaxen 1.1.3 API"></property> + <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/src/java/main" packagenames="org.jaxen.*"> + <classpath> + <path refid="build.classpath"></path> + </classpath> + </javadoc> + </target> + <target name="get-dep-dom4j.jar" description="o Download the dependency : dom4j.jar" unless="dom4j.jar" depends="init,setProxy,noProxy,get-custom-dep-dom4j.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/dom4j.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/dom4j.jar"></get> + </target> + <target name="get-custom-dep-dom4j.jar" if="dom4j.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/dom4j.jar" usetimestamp="true" ignoreerrors="true" src="${dom4j.jar}"></get> + </target> + <target name="get-dep-jdom.jar" description="o Download the dependency : jdom.jar" unless="jdom.jar" depends="init,setProxy,noProxy,get-custom-dep-jdom.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/jdom.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/jdom.jar"></get> + </target> + <target name="get-custom-dep-jdom.jar" if="jdom.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/jdom.jar" usetimestamp="true" ignoreerrors="true" src="${jdom.jar}"></get> + </target> + <target name="get-dep-xmlParserAPIs.jar" description="o Download the dependency : xmlParserAPIs.jar" unless="xmlParserAPIs.jar" depends="init,setProxy,noProxy,get-custom-dep-xmlParserAPIs.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xml-commons-apis.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/xml-commons-apis.jar"></get> + </target> + <target name="get-custom-dep-xmlParserAPIs.jar" if="xmlParserAPIs.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xml-commons-apis.jar" usetimestamp="true" ignoreerrors="true" src="${xmlParserAPIs.jar}"></get> + </target> + <target name="get-dep-xercesImpl.jar" description="o Download the dependency : xercesImpl.jar" unless="xercesImpl.jar" depends="init,setProxy,noProxy,get-custom-dep-xercesImpl.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xerces-j2.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/xerces-j2.jar"></get> + </target> + <target name="get-custom-dep-xercesImpl.jar" if="xercesImpl.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xerces-j2.jar" usetimestamp="true" ignoreerrors="true" src="${xercesImpl.jar}"></get> + </target> + <target name="get-dep-xom.jar" description="o Download the dependency : xom.jar" unless="xom.jar" depends="init,setProxy,noProxy,get-custom-dep-xom.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xom.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/xom.jar"></get> + </target> + <target name="get-custom-dep-xom.jar" if="xom.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/xom.jar" usetimestamp="true" ignoreerrors="true" src="${xom.jar}"></get> + </target> + <target name="get-dep-junit.jar" description="o Download the dependency : junit.jar" unless="junit.jar" depends="init,setProxy,noProxy,get-custom-dep-junit.jar"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/junit.jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven/repository/JPP/jars/junit.jar"></get> + </target> + <target name="get-custom-dep-junit.jar" if="junit.jar" depends="init,setProxy,noProxy"> + <mkdir dir="${libdir}/JPP/jars/"></mkdir> + <get dest="${libdir}/JPP/jars/junit.jar" usetimestamp="true" ignoreerrors="true" src="${junit.jar}"></get> + </target> + <target name="get-deps" unless="noget" depends="get-dep-dom4j.jar,get-dep-jdom.jar,get-dep-xmlParserAPIs.jar,get-dep-xercesImpl.jar,get-dep-xom.jar,get-dep-junit.jar"></target> + <target name="setProxy" if="useProxy" depends="init"> + <!--Proxy settings works only with a JDK 1.2 and higher.--> + <echo>Proxy used :</echo> + <echo>Proxy host [${proxy.host}]</echo> + <echo>Proxy port [${proxy.port}]</echo> + <echo>Proxy user [${proxy.username}]</echo> + <setproxy proxyuser="${proxy.username}" proxyport="${proxy.port}" proxypassword="${proxy.password}" proxyhost="${proxy.host}"></setproxy> + </target> + <target name="noProxy" unless="useProxy" depends="init"> + <echo>Proxy not used.</echo> + </target> + <target name="install-maven"> + <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar"></get> + <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"></unjar> + </target> +</project>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libjs-jquery-hotkeys

libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2ubuntu1) trusty; urgency=medium * debian/patches/revert-to-0.8.patch: - Revert to jquery-hotkeys 0.8 rather than the current git snapshot because the snapshot breaks python-coverage HTML reports. LP: #1301574 -- Michael Terry <mterry@ubuntu.com> Mon, 07 Apr 2014 17:08:29 -0400

Modifications :
  1. Download patch .pc/revert-to-0.8.patch/jquery.hotkeys.js

    --- 0~20130707+git2d51e3a9+dfsg-2/.pc/revert-to-0.8.patch/jquery.hotkeys.js 1970-01-01 00:00:00.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/.pc/revert-to-0.8.patch/jquery.hotkeys.js 2013-07-07 06:07:42.000000000 +0000 @@ -0,0 +1,106 @@ +/* + * jQuery Hotkeys Plugin + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * + * Based upon the plugin by Tzury Bar Yochay: + * http://github.com/tzuryby/hotkeys + * + * Original idea by: + * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ +*/ + +(function(jQuery){ + + jQuery.hotkeys = { + version: "0.8+", + + specialKeys: { + 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", + 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", + 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", + 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", + 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", + 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", + 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 188: ",", 190: ".", + 191: "/", 224: "meta" + }, + + shiftNums: { + "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", + "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", + ".": ">", "/": "?", "\\": "|" + } + }; + + function keyHandler( handleObj ) { + + var origHandler = handleObj.handler, + //use namespace as keys so it works with event delegation as well + //will also allow removing listeners of a specific key combination + //and support data objects + keys = (handleObj.namespace || "").toLowerCase().split(" "); + keys = jQuery.map(keys, function(key) { return key.split("."); }); + + //no need to modify handler if no keys specified + if (keys.length === 1 && (keys[0] === "" || keys[0] === "autocomplete")) { + return; + } + + handleObj.handler = function( event ) { + // Don't fire in text-accepting inputs that we didn't directly bind to + // important to note that $.fn.prop is only available on jquery 1.6+ + if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) || + event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { + return; + } + + // Keypress represents characters, not special keys + var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], + character = String.fromCharCode( event.which ).toLowerCase(), + key, modif = "", possible = {}; + + // check combinations (alt|ctrl|shift+anything) + if ( event.altKey && special !== "alt" ) { + modif += "alt_"; + } + + if ( event.ctrlKey && special !== "ctrl" ) { + modif += "ctrl_"; + } + + // TODO: Need to make sure this works consistently across platforms + if ( event.metaKey && !event.ctrlKey && special !== "meta" ) { + modif += "meta_"; + } + + if ( event.shiftKey && special !== "shift" ) { + modif += "shift_"; + } + + if ( special ) { + possible[ modif + special ] = true; + + } else { + possible[ modif + character ] = true; + possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true; + + // "$" can be triggered as "Shift+4" or "Shift+$" or just "$" + if ( modif === "shift_" ) { + possible[ jQuery.hotkeys.shiftNums[ character ] ] = true; + } + } + + for ( var i = 0, l = keys.length; i < l; i++ ) { + if ( possible[ keys[i] ] ) { + return origHandler.apply( this, arguments ); + } + } + }; + } + + jQuery.each([ "keydown", "keyup", "keypress" ], function() { + jQuery.event.special[ this ] = { add: keyHandler }; + }); + +})( jQuery );
  2. Download patch debian/control

    --- 0~20130707+git2d51e3a9+dfsg-2/debian/control 2013-07-07 12:59:12.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/debian/control 2014-04-07 21:10:34.000000000 +0000 @@ -1,7 +1,8 @@ Source: libjs-jquery-hotkeys Section: web Priority: extra -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Thomas Goirand <zigo@debian.org> Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4
  3. Download patch .pc/applied-patches

    --- 0~20130707+git2d51e3a9+dfsg-2/.pc/applied-patches 1970-01-01 00:00:00.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/.pc/applied-patches 2014-04-08 03:42:46.039110547 +0000 @@ -0,0 +1 @@ +revert-to-0.8.patch
  4. Download patch jquery.hotkeys.js

    --- 0~20130707+git2d51e3a9+dfsg-2/jquery.hotkeys.js 2013-07-07 06:07:42.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/jquery.hotkeys.js 2014-04-08 03:42:46.000000000 +0000 @@ -11,50 +11,44 @@ */ (function(jQuery){ - + jQuery.hotkeys = { - version: "0.8+", + version: "0.8", specialKeys: { 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", - 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", + 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", - 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", - 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", + 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", + 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 188: ",", 190: ".", 191: "/", 224: "meta" - }, - + }, + shiftNums: { - "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", - "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", + "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", + "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", ".": ">", "/": "?", "\\": "|" } }; function keyHandler( handleObj ) { - - var origHandler = handleObj.handler, - //use namespace as keys so it works with event delegation as well - //will also allow removing listeners of a specific key combination - //and support data objects - keys = (handleObj.namespace || "").toLowerCase().split(" "); - keys = jQuery.map(keys, function(key) { return key.split("."); }); - - //no need to modify handler if no keys specified - if (keys.length === 1 && (keys[0] === "" || keys[0] === "autocomplete")) { + // Only care when a possible input has been specified + if ( typeof handleObj.data !== "string" ) { return; } - + + var origHandler = handleObj.handler, + keys = handleObj.data.toLowerCase().split(" "); + handleObj.handler = function( event ) { // Don't fire in text-accepting inputs that we didn't directly bind to - // important to note that $.fn.prop is only available on jquery 1.6+ if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) || - event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { + event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { return; } - + // Keypress represents characters, not special keys var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], character = String.fromCharCode( event.which ).toLowerCase(), @@ -62,20 +56,20 @@ // check combinations (alt|ctrl|shift+anything) if ( event.altKey && special !== "alt" ) { - modif += "alt_"; + modif += "alt+"; } if ( event.ctrlKey && special !== "ctrl" ) { - modif += "ctrl_"; + modif += "ctrl+"; } - + // TODO: Need to make sure this works consistently across platforms if ( event.metaKey && !event.ctrlKey && special !== "meta" ) { - modif += "meta_"; + modif += "meta+"; } if ( event.shiftKey && special !== "shift" ) { - modif += "shift_"; + modif += "shift+"; } if ( special ) { @@ -86,7 +80,7 @@ possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true; // "$" can be triggered as "Shift+4" or "Shift+$" or just "$" - if ( modif === "shift_" ) { + if ( modif === "shift+" ) { possible[ jQuery.hotkeys.shiftNums[ character ] ] = true; } }
  5. Download patch debian/patches/series

    --- 0~20130707+git2d51e3a9+dfsg-2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/debian/patches/series 2014-04-07 21:07:15.000000000 +0000 @@ -0,0 +1 @@ +revert-to-0.8.patch
  6. Download patch debian/patches/revert-to-0.8.patch

    --- 0~20130707+git2d51e3a9+dfsg-2/debian/patches/revert-to-0.8.patch 1970-01-01 00:00:00.000000000 +0000 +++ 0~20130707+git2d51e3a9+dfsg-2ubuntu1/debian/patches/revert-to-0.8.patch 2014-04-07 21:07:31.000000000 +0000 @@ -0,0 +1,107 @@ +Index: libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg/jquery.hotkeys.js +=================================================================== +--- libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg.orig/jquery.hotkeys.js 2013-07-07 02:07:42.000000000 -0400 ++++ libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg/jquery.hotkeys.js 2014-04-07 17:07:28.655678149 -0400 +@@ -11,50 +11,44 @@ + */ + + (function(jQuery){ +- ++ + jQuery.hotkeys = { +- version: "0.8+", ++ version: "0.8", + + specialKeys: { + 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", + 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", +- 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", ++ 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", + 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", +- 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", +- 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", ++ 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", ++ 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", + 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 188: ",", 190: ".", + 191: "/", 224: "meta" +- }, +- ++ }, ++ + shiftNums: { +- "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", +- "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", ++ "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", ++ "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", + ".": ">", "/": "?", "\\": "|" + } + }; + + function keyHandler( handleObj ) { +- +- var origHandler = handleObj.handler, +- //use namespace as keys so it works with event delegation as well +- //will also allow removing listeners of a specific key combination +- //and support data objects +- keys = (handleObj.namespace || "").toLowerCase().split(" "); +- keys = jQuery.map(keys, function(key) { return key.split("."); }); +- +- //no need to modify handler if no keys specified +- if (keys.length === 1 && (keys[0] === "" || keys[0] === "autocomplete")) { ++ // Only care when a possible input has been specified ++ if ( typeof handleObj.data !== "string" ) { + return; + } +- ++ ++ var origHandler = handleObj.handler, ++ keys = handleObj.data.toLowerCase().split(" "); ++ + handleObj.handler = function( event ) { + // Don't fire in text-accepting inputs that we didn't directly bind to +- // important to note that $.fn.prop is only available on jquery 1.6+ + if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) || +- event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { ++ event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { + return; + } +- ++ + // Keypress represents characters, not special keys + var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], + character = String.fromCharCode( event.which ).toLowerCase(), +@@ -62,20 +56,20 @@ + + // check combinations (alt|ctrl|shift+anything) + if ( event.altKey && special !== "alt" ) { +- modif += "alt_"; ++ modif += "alt+"; + } + + if ( event.ctrlKey && special !== "ctrl" ) { +- modif += "ctrl_"; ++ modif += "ctrl+"; + } +- ++ + // TODO: Need to make sure this works consistently across platforms + if ( event.metaKey && !event.ctrlKey && special !== "meta" ) { +- modif += "meta_"; ++ modif += "meta+"; + } + + if ( event.shiftKey && special !== "shift" ) { +- modif += "shift_"; ++ modif += "shift+"; + } + + if ( special ) { +@@ -86,7 +80,7 @@ + possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true; + + // "$" can be triggered as "Shift+4" or "Shift+$" or just "$" +- if ( modif === "shift_" ) { ++ if ( modif === "shift+" ) { + possible[ jQuery.hotkeys.shiftNums[ character ] ] = true; + } + }

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libphonenumber

libphonenumber (7.1.0-5ubuntu2) zesty; urgency=high * No change rebuild against boost1.62. -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 01 Nov 2016 16:26:52 +0000 libphonenumber (7.1.0-5ubuntu1) yakkety; urgency=medium [ Ken VanDine ] * Sync from debian unstable * Remaining changes: - debian/patches/hash_as_diallable_char.patch -- Ken VanDine <ken.vandine@canonical.com> Wed, 21 Sep 2016 10:18:53 -0400

Modifications :
  1. Download patch .pc/hash_as_diallable_char.patch/cpp/test/phonenumbers/phonenumberutil_test.cc
  2. Download patch debian/control

    --- 7.1.0-5/debian/control 2016-09-13 21:13:45.000000000 +0000 +++ 7.1.0-5ubuntu2/debian/control 2016-11-01 16:26:52.000000000 +0000 @@ -1,6 +1,7 @@ Source: libphonenumber Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Daniel Pocock <daniel@pocock.pro>, Fredrik Roubert <roubert@google.com> Build-Depends: cdbs, cmake,
  3. Download patch debian/patches/readdir_r-is-deprecated.patch

    --- 7.1.0-5/debian/patches/readdir_r-is-deprecated.patch 2016-09-13 21:13:45.000000000 +0000 +++ 7.1.0-5ubuntu2/debian/patches/readdir_r-is-deprecated.patch 2016-09-21 14:20:13.000000000 +0000 @@ -13,11 +13,11 @@ Origin: https://github.com/googlei18n/li tools/cpp/src/cpp-build/generate_geocoding_data.cc | 53 +++++++++------------- 3 files changed, 27 insertions(+), 35 deletions(-) -diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt -index 9a3adb0..4d95238 100644 ---- a/cpp/CMakeLists.txt -+++ b/cpp/CMakeLists.txt -@@ -82,14 +82,14 @@ if (${USE_ALTERNATE_FORMATS} STREQUAL "ON") +Index: libphonenumber-7.1.0-4ubuntu1/cpp/CMakeLists.txt +=================================================================== +--- libphonenumber-7.1.0-4ubuntu1.orig/cpp/CMakeLists.txt ++++ libphonenumber-7.1.0-4ubuntu1/cpp/CMakeLists.txt +@@ -82,14 +82,14 @@ if (${USE_ALTERNATE_FORMATS} STREQUAL "O endif () # Find all the required libraries and programs. @@ -35,10 +35,10 @@ index 9a3adb0..4d95238 100644 endif () include_directories (${Boost_INCLUDE_DIRS}) endif () -diff --git a/tools/cpp/CMakeLists.txt b/tools/cpp/CMakeLists.txt -index fafa846..1dcf285 100644 ---- a/tools/cpp/CMakeLists.txt -+++ b/tools/cpp/CMakeLists.txt +Index: libphonenumber-7.1.0-4ubuntu1/tools/cpp/CMakeLists.txt +=================================================================== +--- libphonenumber-7.1.0-4ubuntu1.orig/tools/cpp/CMakeLists.txt ++++ libphonenumber-7.1.0-4ubuntu1/tools/cpp/CMakeLists.txt @@ -38,6 +38,7 @@ endif () include_directories ("src") @@ -53,10 +53,10 @@ index fafa846..1dcf285 100644 add_executable (generate_geocoding_data_test ${TEST_SOURCES}) -target_link_libraries (generate_geocoding_data_test ${TEST_LIBS}) +target_link_libraries (generate_geocoding_data_test ${TEST_LIBS} ${Boost_LIBRARIES}) -diff --git a/tools/cpp/src/cpp-build/generate_geocoding_data.cc b/tools/cpp/src/cpp-build/generate_geocoding_data.cc -index 132a917..ec03298 100644 ---- a/tools/cpp/src/cpp-build/generate_geocoding_data.cc -+++ b/tools/cpp/src/cpp-build/generate_geocoding_data.cc +Index: libphonenumber-7.1.0-4ubuntu1/tools/cpp/src/cpp-build/generate_geocoding_data.cc +=================================================================== +--- libphonenumber-7.1.0-4ubuntu1.orig/tools/cpp/src/cpp-build/generate_geocoding_data.cc ++++ libphonenumber-7.1.0-4ubuntu1/tools/cpp/src/cpp-build/generate_geocoding_data.cc @@ -16,7 +16,6 @@ #include "cpp-build/generate_geocoding_data.h"
  4. Download patch cpp/test/phonenumbers/phonenumberutil_test.cc

    --- 7.1.0-5/cpp/test/phonenumbers/phonenumberutil_test.cc 2015-10-08 14:30:16.000000000 +0000 +++ 7.1.0-5ubuntu2/cpp/test/phonenumbers/phonenumberutil_test.cc 2016-11-05 14:39:03.000000000 +0000 @@ -2411,9 +2411,9 @@ TEST_F(PhoneNumberUtilTest, NormaliseStr } TEST_F(PhoneNumberUtilTest, NormaliseStripNonDiallableCharacters) { - string input_number("03*4-56&+a#234"); + string input_number("03*4-56&+1a#234"); NormalizeDiallableCharsOnly(&input_number); - static const string kExpectedOutput("03*456+234"); + static const string kExpectedOutput("03*456+1#234"); EXPECT_EQ(kExpectedOutput, input_number) << "Conversion did not correctly remove non-diallable characters"; }
  5. Download patch .pc/applied-patches

    --- 7.1.0-5/.pc/applied-patches 2016-11-05 14:39:02.332186336 +0000 +++ 7.1.0-5ubuntu2/.pc/applied-patches 2016-11-05 14:39:03.444216752 +0000 @@ -7,3 +7,4 @@ 0010-reproducible-build.patch gcc-6-ftbfs.patch readdir_r-is-deprecated.patch +hash_as_diallable_char.patch
  6. Download patch .pc/hash_as_diallable_char.patch/cpp/src/phonenumbers/phonenumberutil.cc
  7. Download patch debian/patches/series

    --- 7.1.0-5/debian/patches/series 2016-09-13 21:13:45.000000000 +0000 +++ 7.1.0-5ubuntu2/debian/patches/series 2016-09-21 14:18:27.000000000 +0000 @@ -7,3 +7,4 @@ 0010-reproducible-build.patch gcc-6-ftbfs.patch readdir_r-is-deprecated.patch +hash_as_diallable_char.patch
  8. Download patch debian/patches/hash_as_diallable_char.patch

    --- 7.1.0-5/debian/patches/hash_as_diallable_char.patch 1970-01-01 00:00:00.000000000 +0000 +++ 7.1.0-5ubuntu2/debian/patches/hash_as_diallable_char.patch 2016-09-08 17:56:08.000000000 +0000 @@ -0,0 +1,31 @@ +Description: Added hash as a diallable char +Forwarded: https://github.com/googlei18n/libphonenumber/pull/1312 +Author: Tiago Salem Herrmann <tiago.herrmann@canonical.com> +Index: libphonenumber-7.1.0-4ubuntu1/cpp/src/phonenumbers/phonenumberutil.cc +=================================================================== +--- libphonenumber-7.1.0-4ubuntu1.orig/cpp/src/phonenumbers/phonenumberutil.cc ++++ libphonenumber-7.1.0-4ubuntu1/cpp/src/phonenumbers/phonenumberutil.cc +@@ -288,6 +288,7 @@ class PhoneNumberRegExpsAndMappings { + void InitializeMapsAndSets() { + diallable_char_mappings_.insert(std::make_pair('+', '+')); + diallable_char_mappings_.insert(std::make_pair('*', '*')); ++ diallable_char_mappings_.insert(std::make_pair('#', '#')); + // Here we insert all punctuation symbols that we wish to respect when + // formatting alpha numbers, as they show the intended number groupings. + all_plus_number_grouping_symbols_.insert( +Index: libphonenumber-7.1.0-4ubuntu1/cpp/test/phonenumbers/phonenumberutil_test.cc +=================================================================== +--- libphonenumber-7.1.0-4ubuntu1.orig/cpp/test/phonenumbers/phonenumberutil_test.cc ++++ libphonenumber-7.1.0-4ubuntu1/cpp/test/phonenumbers/phonenumberutil_test.cc +@@ -2411,9 +2411,9 @@ TEST_F(PhoneNumberUtilTest, NormaliseStr + } + + TEST_F(PhoneNumberUtilTest, NormaliseStripNonDiallableCharacters) { +- string input_number("03*4-56&+a#234"); ++ string input_number("03*4-56&+1a#234"); + NormalizeDiallableCharsOnly(&input_number); +- static const string kExpectedOutput("03*456+234"); ++ static const string kExpectedOutput("03*456+1#234"); + EXPECT_EQ(kExpectedOutput, input_number) + << "Conversion did not correctly remove non-diallable characters"; + }
  9. Download patch cpp/src/phonenumbers/phonenumberutil.cc

    --- 7.1.0-5/cpp/src/phonenumbers/phonenumberutil.cc 2015-10-08 14:30:16.000000000 +0000 +++ 7.1.0-5ubuntu2/cpp/src/phonenumbers/phonenumberutil.cc 2016-11-05 14:39:03.000000000 +0000 @@ -288,6 +288,7 @@ class PhoneNumberRegExpsAndMappings { void InitializeMapsAndSets() { diallable_char_mappings_.insert(std::make_pair('+', '+')); diallable_char_mappings_.insert(std::make_pair('*', '*')); + diallable_char_mappings_.insert(std::make_pair('#', '#')); // Here we insert all punctuation symbols that we wish to respect when // formatting alpha numbers, as they show the intended number groupings. all_plus_number_grouping_symbols_.insert(

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libv8-3.14

libv8-3.14 (3.14.5.8-11ubuntu1) artful; urgency=medium * Avoid FTBFS by building with -O2 on ppc64el -- Graham Inggs <ginggs@ubuntu.com> Tue, 25 Apr 2017 10:38:31 +0200

Modifications :
  1. Download patch debian/rules

    --- 3.14.5.8-11/debian/rules 2017-01-10 14:27:16.000000000 +0000 +++ 3.14.5.8-11ubuntu1/debian/rules 2017-04-25 08:38:31.000000000 +0000 @@ -118,6 +118,10 @@ CXXFLAGS += -mno-thumb-interwork GYPFLAGS += -Darmv7=0 -Dv8_use_arm_eabi_hardfloat=false endif endif +# build with -O2 instead of -O3 on ppc64el +ifeq (ppc64el, $(DEB_HOST_ARCH)) +CXXFLAGS := $(filter-out -O3,$(CXXFLAGS)) -O2 +endif # hardening gyp CXXFLAGS+=$(CPPFLAGS)
  2. Download patch debian/control

    --- 3.14.5.8-11/debian/control 2017-01-10 14:27:16.000000000 +0000 +++ 3.14.5.8-11ubuntu1/debian/control 2017-04-25 08:38:31.000000000 +0000 @@ -1,6 +1,7 @@ Source: libv8-3.14 Priority: optional -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk>, Balint Reczey <balint@balintreczey.hu>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: modernizr

modernizr (2.6.2+ds1-1ubuntu1) xenial; urgency=medium * Use slimit instead of uglifyjs (universe). -- Matthias Klose <doko@ubuntu.com> Sat, 24 Oct 2015 17:31:14 +0200

Modifications :
  1. Download patch debian/rules

    --- 2.6.2+ds1-1/debian/rules 2012-10-12 09:30:34.000000000 +0000 +++ 2.6.2+ds1-1ubuntu1/debian/rules 2015-10-24 15:30:55.000000000 +0000 @@ -15,11 +15,13 @@ DEBVER := $(UPVER)+ds1 override_dh_auto_build: cat feature-detects/*.js > feature-detects.js - uglifyjs -o modernizr.min.js modernizr.js + #uglifyjs -o modernizr.min.js modernizr.js + slimit modernizr.js > modernizr.min.js # Drop copyright from minified version since it would get #+only the first stanza. - uglifyjs -nc -o feature-detects.min.js feature-detects.js + #uglifyjs -nc -o feature-detects.min.js feature-detects.js + slimit feature-detects.js > feature-detects.min.js get-orig-source: uscan \
  2. Download patch debian/control

    --- 2.6.2+ds1-1/debian/control 2012-10-12 09:30:34.000000000 +0000 +++ 2.6.2+ds1-1ubuntu1/debian/control 2015-10-24 15:31:05.000000000 +0000 @@ -5,7 +5,7 @@ Maintainer: Debian Javascript Maintainer Uploaders: David Paleino <dapal@debian.org> Build-Depends: debhelper (>= 9~) - , node-uglify + , slimit Standards-Version: 3.9.4 Homepage: http://modernizr.com/ Vcs-Git: git://git.debian.org/pkg-javascript/modernizr.git

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: node-iconv-lite

node-iconv-lite (0.4.13-2ubuntu1) zesty; urgency=medium * Revert enabling failing mocha autopkgtests -- Graham Inggs <ginggs@ubuntu.com> Sat, 11 Feb 2017 12:00:59 +0200

Modifications :
  1. Download patch debian/tests/control

    --- 0.4.13-2/debian/tests/control 2016-11-14 14:54:44.000000000 +0000 +++ 0.4.13-2ubuntu1/debian/tests/control 2017-02-11 10:00:59.000000000 +0000 @@ -1,5 +1,2 @@ Tests: require Depends: node-iconv-lite - -Test-Command: mocha --reporter spec --grep . -Depends: @, @builddeps@
  2. Download patch debian/control

    --- 0.4.13-2/debian/control 2016-11-14 14:52:23.000000000 +0000 +++ 0.4.13-2ubuntu1/debian/control 2017-02-11 10:00:59.000000000 +0000 @@ -1,7 +1,8 @@ Source: node-iconv-lite Section: web Priority: optional -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Sruthi Chandran <srud@disroot.org> Build-Depends: debhelper (>= 9)

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: node-isexe

node-isexe (1.1.2-1ubuntu1) zesty; urgency=medium * Allow stderr output in autopkgtests -- Graham Inggs <ginggs@ubuntu.com> Mon, 13 Feb 2017 07:11:51 +0200

Modifications :
  1. Download patch debian/tests/control

    --- 1.1.2-1/debian/tests/control 2016-10-18 06:07:31.000000000 +0000 +++ 1.1.2-1ubuntu1/debian/tests/control 2017-02-13 05:11:51.000000000 +0000 @@ -3,3 +3,4 @@ Depends: node-isexe Test-Command: tap test/*.js --branches=100 --statements=100 --functions=100 --lines=100 Depends: @, node-tap, node-rimraf +Restrictions: allow-stderr
  2. Download patch debian/control

    --- 1.1.2-1/debian/control 2016-10-18 06:07:31.000000000 +0000 +++ 1.1.2-1ubuntu1/debian/control 2017-02-13 05:11:51.000000000 +0000 @@ -1,7 +1,8 @@ Source: node-isexe Section: web Priority: optional -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Pirate Praveen <praveen@debian.org> Build-Depends: debhelper (>= 9)

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: node-tap

node-tap (8.0.0-4ubuntu2) zesty; urgency=medium * Skip throw tests as well -- Graham Inggs <ginggs@ubuntu.com> Sun, 12 Feb 2017 00:08:44 +0200 node-tap (8.0.0-4ubuntu1) zesty; urgency=medium * Skip flaky tests on Ubuntu autopkgtest runners -- Graham Inggs <ginggs@ubuntu.com> Sat, 11 Feb 2017 22:03:34 +0200

Modifications :
  1. Download patch debian/patches/tests-ubuntu.patch

    --- 8.0.0-4/debian/patches/tests-ubuntu.patch 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.0-4ubuntu2/debian/patches/tests-ubuntu.patch 2017-02-11 22:08:29.000000000 +0000 @@ -0,0 +1,26 @@ +Description: Skip flaky tests on Ubuntu autopkgtest runners + These tests often fail on amd64 and armhf, but have + all passed on 386, ppc64el and s390x +Author: Graham Inggs <ginggs@debian.org> +Last-Update: 2017-02-12 +--- a/test/independent-timeouts.js ++++ b/test/independent-timeouts.js +@@ -1,3 +1,5 @@ ++process.exit() ++ + // https://github.com/isaacs/node-tap/issues/23 + + var tap = require('../') +--- a/test/test.js ++++ b/test/test.js +@@ -41,6 +41,10 @@ + } + } + ++ if (file.match(/\b(mochalike.*|spawn.*|throw.*|timeout.*)\.js$/)) { ++ skip = 'Flaky test on Ubuntu autopkgtest runners' ++ } ++ + var f = file.substr(dir.length) + t.test(f, { skip: skip }, function (t) { + t.test('bail=false', function (t) {
  2. Download patch debian/control

    --- 8.0.0-4/debian/control 2016-11-19 16:48:38.000000000 +0000 +++ 8.0.0-4ubuntu2/debian/control 2017-02-11 20:04:16.000000000 +0000 @@ -1,7 +1,8 @@ Source: node-tap Section: web Priority: extra -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org> Build-Depends: debhelper (>= 9)
  3. Download patch test/independent-timeouts.js

    --- 8.0.0-4/test/independent-timeouts.js 2016-11-13 18:14:25.000000000 +0000 +++ 8.0.0-4ubuntu2/test/independent-timeouts.js 2017-02-12 05:39:47.000000000 +0000 @@ -1,3 +1,5 @@ +process.exit() + // https://github.com/isaacs/node-tap/issues/23 var tap = require('../')
  4. Download patch .pc/applied-patches

    --- 8.0.0-4/.pc/applied-patches 2017-02-12 05:39:47.470117763 +0000 +++ 8.0.0-4ubuntu2/.pc/applied-patches 2017-02-12 05:39:47.766125829 +0000 @@ -7,3 +7,4 @@ nodejs_rename.patch use_available_modules.patch script-not-executable.patch tests.patch +tests-ubuntu.patch
  5. Download patch .pc/tests-ubuntu.patch/test/independent-timeouts.js

    --- 8.0.0-4/.pc/tests-ubuntu.patch/test/independent-timeouts.js 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.0-4ubuntu2/.pc/tests-ubuntu.patch/test/independent-timeouts.js 2016-11-13 18:14:25.000000000 +0000 @@ -0,0 +1,47 @@ +// https://github.com/isaacs/node-tap/issues/23 + +var tap = require('../') +var test = tap.test +var Test = tap.Test + +var isCI = !!process.env.CI +var long = 100 +var med = 60 +var short = 50 + +if (process.env.CI) { + long *= 10 + med *= 10 + short *= 10 +} + +if (process.env.APPVEYOR) { + long *= 2 + med *= 2 + short *= 2 +} + +test('finishes in time', {timeout: long}, function (t) { + setTimeout(function () { + t.end() + }, med) +}) + +test('finishes in time too', {timeout: long}, function (t) { + setTimeout(function () { + t.end() + }, med) +}) + +test('does not finish in time', function (t) { + t.plan(1) + var tt = new Test() + tt.test('timeout', { timeout: short }, function (ttt) { + setTimeout(function () { + ttt.fail('shouldve timed out') + ttt.end() + t.notOk(tt._ok) + }, med) + }) + tt.end() +})
  6. Download patch debian/patches/series

    --- 8.0.0-4/debian/patches/series 2016-11-19 16:48:38.000000000 +0000 +++ 8.0.0-4ubuntu2/debian/patches/series 2017-02-11 19:51:03.000000000 +0000 @@ -7,3 +7,4 @@ nodejs_rename.patch use_available_modules.patch script-not-executable.patch tests.patch +tests-ubuntu.patch
  7. Download patch .pc/tests-ubuntu.patch/test/test.js

    --- 8.0.0-4/.pc/tests-ubuntu.patch/test/test.js 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.0-4ubuntu2/.pc/tests-ubuntu.patch/test/test.js 2016-11-13 18:14:25.000000000 +0000 @@ -0,0 +1,151 @@ +var glob = require('glob') +var t = require('../lib/root.js') +var spawn = require('child_process').spawn +var node = process.execPath +var fs = require('fs') +var dir = __dirname + '/test/' +var path = require('path') +var yaml = require('js-yaml') + +function regEsc (str) { + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') +} + +module.exports = function (pattern) { + glob.sync(dir + pattern).forEach(runTests) +} + +if (module === require.main) { + if (process.argv[2]) { + module.exports(process.argv[2]) + } else { + t.pass('just a common file') + } +} + +function runTests (file) { + var skip = false + if (file.match(/\b(timeout.*|pending-handles)\.js$/)) { + if (process.env.TRAVIS) { + skip = 'timeout and handles tests too timing dependent for Travis' + } else if (process.platform === 'win32') { + skip = 'timeout and handles tests rely on sinals windows cannot do' + } + } + + if (file.match(/\bsigterm\b/)) { + if (process.version.match(/^v0\.10\./)) { + skip = 'sigterm handling test does not work on 0.10' + } else if (process.platform === 'win32') { + skip = 'sigterm handling is weird on windows' + } + } + + var f = file.substr(dir.length) + t.test(f, { skip: skip }, function (t) { + t.test('bail=false', function (t) { + runTest(t, false, file) + }) + t.test('bail=true', function (t) { + runTest(t, true, file) + }) + t.end() + }) +} + +function runTest (t, bail, file) { + var resfile = file.replace(/\.js$/, (bail ? '-bail' : '') + '.tap') + var want = fs.readFileSync(resfile, 'utf8').split(/\r?\n/) + + var child = spawn(node, [file], { + stdio: [ 0, 'pipe', 'pipe' ], + env: { + TAP_BAIL: bail ? 1 : 0 + } + }) + + var found = '' + + child.stdout.setEncoding('utf8') + child.stdout.on('data', function (c) { + found += c + }) + child.on('close', function (er) { + found = found.split(/\r?\n/) + var inyaml = false + var startlen = 0 + var y = '' + + // walk line by line so yamlish (json) can be handled + // otherwise making any changes in this lib would hurt + for (var f = 0, w = 0; + f < found.length && w < want.length; + f++, w++) { + var wline = want[w] + var fline = found[f] + var wdata = false + + if (inyaml) { + if (fline.match(/^\s*\.\.\.$/) && fline.length === startlen) { + var data = yaml.safeLoad(y) + inyaml = false + y = '' + wdata = JSON.parse(wline) + patternify(wdata) + t.match(data, wdata) + f-- + } else { + y += fline + '\n' + w-- + } + continue + } else { + t.match(fline, patternify(wline), + 'line ' + f + ' ' + + wline.replace(/# (todo|skip)/gi, '- $1'), + { test: f }) + + if (fline.match(/^\s*\-\-\-$/)) { + startlen = fline.length + inyaml = true + y = '' + } + } + + if (!t.passing()) { + return t.end() + } + } + t.end() + }) +} + +function patternify (pattern) { + if (typeof pattern === 'object' && pattern) { + Object.keys(pattern).forEach(function (k) { + pattern[k] = patternify(pattern[k]) + }) + return pattern + } + + if (typeof pattern !== 'string') { + return pattern + } + + var re = /___\/(.*?)\/~~~/ + var match = pattern.match(re) + if (!match) { + return pattern + } + + var pl = pattern.split('___/') + var p = '^' + regEsc(pl.shift()) + + pl.forEach(function (wlpart) { + var wlp = wlpart.split('/~~~') + p += wlp.shift() + p += regEsc(wlp.join('/~~~')) + }) + p += '$' + return new RegExp(p) +}
  8. Download patch test/test.js

    --- 8.0.0-4/test/test.js 2016-11-13 18:14:25.000000000 +0000 +++ 8.0.0-4ubuntu2/test/test.js 2017-02-12 05:39:47.000000000 +0000 @@ -41,6 +41,10 @@ function runTests (file) { } } + if (file.match(/\b(mochalike.*|spawn.*|throw.*|timeout.*)\.js$/)) { + skip = 'Flaky test on Ubuntu autopkgtest runners' + } + var f = file.substr(dir.length) t.test(f, { skip: skip }, function (t) { t.test('bail=false', function (t) {

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: nodejs

nodejs (4.8.4~dfsg-1ubuntu1) artful; urgency=medium * Merge from Debian Sid (LP: #1705727). Remaining changes: - Revert upstream's fix for openssl 1.0.2h, since we still have 1.0.2g in Ubuntu. -- Simon Quigley <tsimonq2@ubuntu.com> Fri, 21 Jul 2017 10:33:40 -0500

Modifications :
  1. Download patch .pc/revert_openssl1.0.2h_fix.patch/test/parallel/test-tls-alpn-server-client.js
  2. Download patch debian/control

    --- 4.8.4~dfsg-1/debian/control 2017-06-13 21:00:41.000000000 +0000 +++ 4.8.4~dfsg-1ubuntu1/debian/control 2017-07-21 15:33:40.000000000 +0000 @@ -1,6 +1,7 @@ Source: nodejs Section: web -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk> Build-Depends: cdbs,
  3. Download patch debian/control.in

    --- 4.8.4~dfsg-1/debian/control.in 2017-06-13 21:01:01.000000000 +0000 +++ 4.8.4~dfsg-1ubuntu1/debian/control.in 2017-07-21 15:33:40.000000000 +0000 @@ -1,7 +1,8 @@ Source: nodejs Section: web Priority: optional -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk> Build-Depends: @cdbs@
  4. Download patch .pc/applied-patches

    --- 4.8.4~dfsg-1/.pc/applied-patches 2017-07-23 11:12:03.040515589 +0000 +++ 4.8.4~dfsg-1ubuntu1/.pc/applied-patches 2017-07-23 11:12:04.408553123 +0000 @@ -13,3 +13,4 @@ shared_can_build_without_gyp.patch test_ci_buildd.patch dest_cpu_x87.patch doctool-yaml.patch +revert_openssl1.0.2h_fix.patch
  5. Download patch debian/patches/series

    --- 4.8.4~dfsg-1/debian/patches/series 2017-06-13 21:00:41.000000000 +0000 +++ 4.8.4~dfsg-1ubuntu1/debian/patches/series 2017-07-21 15:33:40.000000000 +0000 @@ -13,3 +13,4 @@ shared_can_build_without_gyp.patch test_ci_buildd.patch dest_cpu_x87.patch doctool-yaml.patch +revert_openssl1.0.2h_fix.patch
  6. Download patch test/parallel/test-tls-alpn-server-client.js

    --- 4.8.4~dfsg-1/test/parallel/test-tls-alpn-server-client.js 2017-07-11 01:49:36.000000000 +0000 +++ 4.8.4~dfsg-1ubuntu1/test/parallel/test-tls-alpn-server-client.js 2017-07-23 11:12:03.000000000 +0000 @@ -99,8 +99,8 @@ function Test1() { client: {ALPN: 'b', NPN: undefined}}); // nothing is selected by ALPN checkResults(results[2], - {server: {ALPN: false, NPN: 'first-priority-unsupported'}, - client: {ALPN: false, NPN: false}}); + {server: {ALPN: false, NPN: false}, + client: {ALPN: false, NPN: undefined}}); // execute next test Test2(); }); @@ -132,8 +132,8 @@ function Test2() { client: {ALPN: 'b', NPN: undefined}}); // nothing is selected by ALPN checkResults(results[2], - {server: {ALPN: false, NPN: 'http/1.1'}, - client: {ALPN: false, NPN: false}}); + {server: {ALPN: false, NPN: false}, + client: {ALPN: false, NPN: undefined}}); // execute next test Test3(); }); @@ -224,9 +224,8 @@ function Test5() { checkResults(results[1], {server: {ALPN: 'b', NPN: false}, client: {ALPN: 'b', NPN: undefined}}); // nothing is selected by ALPN - checkResults(results[2], {server: {ALPN: false, - NPN: 'first-priority-unsupported'}, - client: {ALPN: false, NPN: false}}); + checkResults(results[2], {server: {ALPN: false, NPN: false}, + client: {ALPN: false, NPN: undefined}}); // execute next test Test6(); }); @@ -254,8 +253,8 @@ function Test6() { checkResults(results[1], {server: {ALPN: 'b', NPN: false}, client: {ALPN: 'b', NPN: undefined}}); // nothing is selected by ALPN - checkResults(results[2], {server: {ALPN: false, NPN: 'http/1.1'}, - client: {ALPN: false, NPN: false}}); + checkResults(results[2], {server: {ALPN: false, NPN: false}, + client: {ALPN: false, NPN: undefined}}); // execute next test Test7(); });
  7. Download patch debian/patches/revert_openssl1.0.2h_fix.patch

    --- 4.8.4~dfsg-1/debian/patches/revert_openssl1.0.2h_fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ 4.8.4~dfsg-1ubuntu1/debian/patches/revert_openssl1.0.2h_fix.patch 2017-07-21 15:33:40.000000000 +0000 @@ -0,0 +1,53 @@ +Description: Revert upstream's fix for openssl 1.0.2h + We still have openssl 1.0.2g in Ubuntu. + https://github.com/nodejs/node/commit/be480b14996153e93326cdf17ea86f85c0b43fa6 +Forwarded: not-needed +Author: Graham Inggs <ginggs@debian.org> +Last-Update: 2017-04-24 +--- a/test/parallel/test-tls-alpn-server-client.js ++++ b/test/parallel/test-tls-alpn-server-client.js +@@ -99,8 +99,8 @@ + client: {ALPN: 'b', NPN: undefined}}); + // nothing is selected by ALPN + checkResults(results[2], +- {server: {ALPN: false, NPN: 'first-priority-unsupported'}, +- client: {ALPN: false, NPN: false}}); ++ {server: {ALPN: false, NPN: false}, ++ client: {ALPN: false, NPN: undefined}}); + // execute next test + Test2(); + }); +@@ -132,8 +132,8 @@ + client: {ALPN: 'b', NPN: undefined}}); + // nothing is selected by ALPN + checkResults(results[2], +- {server: {ALPN: false, NPN: 'http/1.1'}, +- client: {ALPN: false, NPN: false}}); ++ {server: {ALPN: false, NPN: false}, ++ client: {ALPN: false, NPN: undefined}}); + // execute next test + Test3(); + }); +@@ -224,9 +224,8 @@ + checkResults(results[1], {server: {ALPN: 'b', NPN: false}, + client: {ALPN: 'b', NPN: undefined}}); + // nothing is selected by ALPN +- checkResults(results[2], {server: {ALPN: false, +- NPN: 'first-priority-unsupported'}, +- client: {ALPN: false, NPN: false}}); ++ checkResults(results[2], {server: {ALPN: false, NPN: false}, ++ client: {ALPN: false, NPN: undefined}}); + // execute next test + Test6(); + }); +@@ -254,8 +253,8 @@ + checkResults(results[1], {server: {ALPN: 'b', NPN: false}, + client: {ALPN: 'b', NPN: undefined}}); + // nothing is selected by ALPN +- checkResults(results[2], {server: {ALPN: false, NPN: 'http/1.1'}, +- client: {ALPN: false, NPN: false}}); ++ checkResults(results[2], {server: {ALPN: false, NPN: false}, ++ client: {ALPN: false, NPN: undefined}}); + // execute next test + Test7(); + });

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: npm

npm (3.5.2-0ubuntu4) xenial; urgency=medium * Also make npm-cli.js executable. LP: #1523947 -- LaMont Jones <lamont.jones@canonical.com> Mon, 07 Dec 2015 12:36:45 -0700 npm (3.5.2-0ubuntu3) xenial; urgency=medium * More binaries executable. -- LaMont Jones <lamont.jones@canonical.com> Mon, 07 Dec 2015 11:58:48 -0700 npm (3.5.2-0ubuntu2) xenial; urgency=medium * Fix bin/npm-cli.js to be executable. -- Blake Rouse <blake.rouse@canonical.com> Mon, 07 Dec 2015 12:31:18 -0400 npm (3.5.2-0ubuntu1) xenial; urgency=medium * Imported Upstream version 3.5.2. * Fix patches to applie to the new upstream version. Remove 2008 patch as its already been fixed upstream. Rename 2009 and 2010 patches to stay in order. -- Blake Rouse <blake.rouse@canonical.com> Thu, 03 Dec 2015 00:28:58 -0400

Modifications :
  1. Download patch doc/cli/npm-dist-tag.md

    --- 1.4.21+ds-2/doc/cli/npm-dist-tag.md 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-dist-tag.md 2015-12-07 16:00:46.000000000 +0000 @@ -0,0 +1,72 @@ +npm-dist-tag(1) -- Modify package distribution tags +=================================================== + +## SYNOPSIS + + npm dist-tag add <pkg>@<version> [<tag>] + npm dist-tag rm <pkg> <tag> + npm dist-tag ls [<pkg>] + +## DESCRIPTION + +Add, remove, and enumerate distribution tags on a package: + +* add: + Tags the specified version of the package with the specified tag, or the + `--tag` config if not specified. + +* rm: + Clear a tag that is no longer in use from the package. + +* ls: + Show all of the dist-tags for a package, defaulting to the package in + the current prefix. + +A tag can be used when installing packages as a reference to a version instead +of using a specific version number: + + npm install <name>@<tag> + +When installing dependencies, a preferred tagged version may be specified: + + npm install --tag <tag> + +This also applies to `npm dedupe`. + +Publishing a package sets the "latest" tag to the published version unless the +`--tag` option is used. For example, `npm publish --tag=beta`. + +## PURPOSE + +Tags can be used to provide an alias instead of version numbers. For +example, `npm` currently uses the tag "next" to identify the upcoming +version, and the tag "latest" to identify the current version. + +A project might choose to have multiple streams of development, e.g., +"stable", "canary". + +## CAVEATS + +This command used to be known as `npm tag`, which only created new tags, and so +had a different syntax. + +Tags must share a namespace with version numbers, because they are specified in +the same slot: `npm install <pkg>@<version>` vs `npm install <pkg>@<tag>`. + +Tags that can be interpreted as valid semver ranges will be rejected. For +example, `v1.4` cannot be used as a tag, because it is interpreted by semver as +`>=1.4.0 <1.5.0`. See <https://github.com/npm/npm/issues/6082>. + +The simplest way to avoid semver problems with tags is to use tags that do not +begin with a number or the letter `v`. + +## SEE ALSO + +* npm-tag(1) +* npm-publish(1) +* npm-install(1) +* npm-dedupe(1) +* npm-registry(7) +* npm-config(1) +* npm-config(7) +* npmrc(5)
  2. Download patch doc/cli/npm-adduser.md

    --- 1.4.21+ds-2/doc/cli/npm-adduser.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-adduser.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,22 +3,26 @@ npm-adduser(1) -- Add a registry user ac ## SYNOPSIS - npm adduser + npm adduser [--registry=url] [--scope=@orgname] [--always-auth] ## DESCRIPTION -Create or verify a user named `<username>` in the npm registry, and -save the credentials to the `.npmrc` file. +Create or verify a user named `<username>` in the specified registry, and +save the credentials to the `.npmrc` file. If no registry is specified, +the default registry will be used (see `npm-config(7)`). The username, password, and email are read in from prompts. -You may use this command to change your email address, but not username -or password. +To reset your password, go to <https://www.npmjs.com/forgot> -To reset your password, go to <https://npmjs.org/forgot> +To change your email address, go to <https://www.npmjs.com/email-edit> You may use this command multiple times with the same user account to -authorize on a new machine. +authorize on a new machine. When authenticating on a new machine, +the username, password and email address must all match with +your existing record. + +`npm login` is an alias to `adduser` and behaves exactly the same way. ## CONFIGURATION @@ -26,7 +30,36 @@ authorize on a new machine. Default: http://registry.npmjs.org/ -The base URL of the npm package registry. +The base URL of the npm package registry. If `scope` is also specified, +this registry will only be used for packages with that scope. See `npm-scope(7)`. + +### scope + +Default: none + +If specified, the user and login credentials given will be associated +with the specified scope. See `npm-scope(7)`. You can use both at the same time, +e.g. + + npm adduser --registry=http://myregistry.example.com --scope=@myco + +This will set a registry for the given scope and login or create a user for +that registry at the same time. + +### always-auth + +Default: false + +If specified, save configuration indicating that all requests to the given +registry should include authorization information. Useful for private +registries. Can be used with `--registry` and / or `--scope`, e.g. + + npm adduser --registry=http://private-registry.example.com --always-auth + +This will ensure that all requests to that registry (including for tarballs) +include an authorization header. See `always-auth` in `npm-config(7)` for more +details on always-auth. Registry-specific configuration of `always-auth` takes +precedence over any global configuration. ## SEE ALSO
  3. Download patch doc/api/npm-test.md

    --- 1.4.21+ds-2/doc/api/npm-test.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-test.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -npm-test(3) -- Test a package -============================= - -## SYNOPSIS - - npm.commands.test(packages, callback) - -## DESCRIPTION - -This runs a package's "test" script, if one was provided. - -To run tests as a condition of installation, set the `npat` config to -true. - -npm can run tests on multiple packages. Just specify multiple packages -in the `packages` parameter.
  4. Download patch doc/api/npm-rebuild.md

    --- 1.4.21+ds-2/doc/api/npm-rebuild.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-rebuild.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -npm-rebuild(3) -- Rebuild a package -=================================== - -## SYNOPSIS - - npm.commands.rebuild([packages,] callback) - -## DESCRIPTION - -This command runs the `npm build` command on each of the matched packages. This is useful -when you install a new version of node, and must recompile all your C++ addons with -the new binary. If no 'packages' parameter is specify, every package will be rebuilt. - -## CONFIGURATION - -See `npm help build`
  5. Download patch debian/patches/2010_privacy_breach_travis.patch

    --- 1.4.21+ds-2/debian/patches/2010_privacy_breach_travis.patch 2014-07-28 23:24:52.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2010_privacy_breach_travis.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -Description: remove remote image from README.md to avoid privacy breach - The README.md is converted to html and is part of the installed docs. -Forwarded: not-needed -Author: Jérémy Lal <kapouer@melix.org> -Last-Update: 2014-07-29 ---- a/README.md -+++ b/README.md -@@ -1,6 +1,6 @@ - npm(1) -- node package manager - ============================== --[![Build Status](https://img.shields.io/travis/npm/npm/master.svg)](https://travis-ci.org/npm/npm) -+[Build Status](https://travis-ci.org/npm/npm) - ## SYNOPSIS - - This is just enough info to get you up and running.
  6. Download patch doc/cli/npm-bin.md

    --- 1.4.21+ds-2/doc/cli/npm-bin.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-bin.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-bin(1) -- Display npm bin folder ## SYNOPSIS - npm bin + npm bin [-g|--global] ## DESCRIPTION
  7. Download patch doc/api/npm-stop.md

    --- 1.4.21+ds-2/doc/api/npm-stop.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-stop.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -npm-stop(3) -- Stop a package -============================= - -## SYNOPSIS - - npm.commands.stop(packages, callback) - -## DESCRIPTION - -This runs a package's "stop" script, if one was provided. - -npm can run stop on multiple packages. Just specify multiple packages -in the `packages` parameter.
  8. Download patch doc/api/npm-cache.md

    --- 1.4.21+ds-2/doc/api/npm-cache.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-cache.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -npm-cache(3) -- manage the npm cache programmatically -===================================================== - -## SYNOPSIS - - npm.commands.cache([args], callback) - - // helpers - npm.commands.cache.clean([args], callback) - npm.commands.cache.add([args], callback) - npm.commands.cache.read(name, version, forceBypass, callback) - -## DESCRIPTION - -This acts much the same ways as the npm-cache(1) command line -functionality. - -The callback is called with the package.json data of the thing that is -eventually added to or read from the cache. - -The top level `npm.commands.cache(...)` functionality is a public -interface, and like all commands on the `npm.commands` object, it will -match the command line behavior exactly. - -However, the cache folder structure and the cache helper functions are -considered **internal** API surface, and as such, may change in future -releases of npm, potentially without warning or significant version -incrementation. - -Use at your own risk.
  9. Download patch doc/cli/npm-logout.md

    --- 1.4.21+ds-2/doc/cli/npm-logout.md 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-logout.md 2015-12-07 16:00:46.000000000 +0000 @@ -0,0 +1,50 @@ +npm-logout(1) -- Log out of the registry +======================================== + +## SYNOPSIS + + npm logout [--registry=<url>] [--scope=<@scope>] + +## DESCRIPTION + +When logged into a registry that supports token-based authentication, tell the +server to end this token's session. This will invalidate the token everywhere +you're using it, not just for the current environment. + +When logged into a legacy registry that uses username and password authentication, this will +clear the credentials in your user configuration. In this case, it will _only_ affect +the current environment. + +If `--scope` is provided, this will find the credentials for the registry +connected to that scope, if set. + +## CONFIGURATION + +### registry + +Default: http://registry.npmjs.org/ + +The base URL of the npm package registry. If `scope` is also specified, +it takes precedence. + +### scope + +Default: none + +If specified, the user and login credentials given will be associated +with the specified scope. See `npm-scope(7)`. You can use both at the same time, +e.g. + + npm adduser --registry=http://myregistry.example.com --scope=@myco + +This will set a registry for the given scope and login or create a user for +that registry at the same time. + +## SEE ALSO + +* npm-adduser(1) +* npm-registry(7) +* npm-config(1) +* npm-config(7) +* npmrc(5) +* npm-whoami(1)
  10. Download patch doc/api/npm-bin.md

    --- 1.4.21+ds-2/doc/api/npm-bin.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-bin.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -npm-bin(3) -- Display npm bin folder -==================================== - -## SYNOPSIS - - npm.commands.bin(args, cb) - -## DESCRIPTION - -Print the folder where npm will install executables. - -This function should not be used programmatically. Instead, just refer -to the `npm.bin` member.
  11. Download patch doc/cli/npm-dedupe.md

    --- 1.4.21+ds-2/doc/cli/npm-dedupe.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-dedupe.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,8 +3,8 @@ npm-dedupe(1) -- Reduce duplication ## SYNOPSIS - npm dedupe [package names...] - npm ddp [package names...] + npm dedupe + npm ddp ## DESCRIPTION @@ -31,25 +31,20 @@ Because of the hierarchical nature of no will both get their dependency met by the single c package at the root level of the tree. +The deduplication algorithm walks the tree, moving each dependency as far +up in the tree as possible, even if duplicates are not found. This will +result in both a flat and deduplicated tree. + If a suitable version exists at the target location in the tree already, then it will be left untouched, but the other duplicates will be deleted. -If no suitable version can be found, then a warning is printed, and -nothing is done. - -If any arguments are supplied, then they are filters, and only the -named packages will be touched. - -Note that this operation transforms the dependency tree, and may -result in packages getting updated versions, perhaps from the npm -registry. +Arguments are ignored. Dedupe always acts on the entire tree. -This feature is experimental, and may change in future versions. +Modules -The `--tag` argument will apply to all of the affected dependencies. If a -tag with the given name exists, the tagged version is preferred over newer -versions. +Note that this operation transforms the dependency tree, but will never +result in new modules being installed. ## SEE ALSO
  12. Download patch doc/api/npm-help-search.md

    --- 1.4.21+ds-2/doc/api/npm-help-search.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-help-search.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -npm-help-search(3) -- Search the help pages -=========================================== - -## SYNOPSIS - - npm.commands.helpSearch(args, [silent,] callback) - -## DESCRIPTION - -This command is rarely useful, but it exists in the rare case that it is. - -This command takes an array of search terms and returns the help pages that -match in order of best match. - -If there is only one match, then npm displays that help section. If there -are multiple results, the results are printed to the screen formatted and the -array of results is returned. Each result is an object with these properties: - -* hits: - A map of args to number of hits on that arg. For example, {"npm": 3} -* found: - Total number of unique args that matched. -* totalHits: - Total number of hits. -* lines: - An array of all matching lines (and some adjacent lines). -* file: - Name of the file that matched - -The silent parameter is not neccessary not used, but it may in the future.
  13. Download patch doc/cli/npm-init.md

    --- 1.4.21+ds-2/doc/cli/npm-init.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-init.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-init(1) -- Interactively create a pa ## SYNOPSIS - npm init + npm init [-f|--force|-y|--yes] ## DESCRIPTION @@ -18,8 +18,21 @@ the options in there. It is strictly additive, so it does not delete options from your package.json without a really good reason to do so. +If you invoke it with `-f`, `--force`, `-y`, or `--yes`, it will use only +defaults and not prompt you for any options. + +## CONFIGURATION + +### scope + +* Default: none +* Type: String + +The scope under which the new module should be created. + ## SEE ALSO * <https://github.com/isaacs/init-package-json> * package.json(5) * npm-version(1) +* npm-scope(7)
  14. Download patch doc/api/npm-update.md

    --- 1.4.21+ds-2/doc/api/npm-update.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-update.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -npm-update(3) -- Update a package -================================= - -## SYNOPSIS - npm.commands.update(packages, callback) - -# DESCRIPTION - -Updates a package, upgrading it to the latest version. It also installs any missing packages. - -The 'packages' argument is an array of packages to update. The 'callback' parameter will be called when done or when an error occurs.
  15. Download patch doc/api/npm.md

    --- 1.4.21+ds-2/doc/api/npm.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,116 +0,0 @@ -npm(3) -- node package manager -============================== - -## SYNOPSIS - - var npm = require("npm") - npm.load([configObject, ]function (er, npm) { - // use the npm object, now that it's loaded. - - npm.config.set(key, val) - val = npm.config.get(key) - - console.log("prefix = %s", npm.prefix) - - npm.commands.install(["package"], cb) - }) - -## VERSION - -@VERSION@ - -## DESCRIPTION - -This is the API documentation for npm. -To find documentation of the command line -client, see `npm(1)`. - -Prior to using npm's commands, `npm.load()` must be called. -If you provide `configObject` as an object hash of top-level -configs, they override the values stored in the various config -locations. In the npm command line client, this set of configs -is parsed from the command line options. Additional configuration -params are loaded from two configuration files. See `npm-config(1)`, -`npm-config(7)`, and `npmrc(5)` for more information. - -After that, each of the functions are accessible in the -commands object: `npm.commands.<cmd>`. See `npm-index(7)` for a list of -all possible commands. - -All commands on the command object take an **array** of positional argument -**strings**. The last argument to any function is a callback. Some -commands take other optional arguments. - -Configs cannot currently be set on a per function basis, as each call to -npm.config.set will change the value for *all* npm commands in that process. - -To find API documentation for a specific command, run the `npm apihelp` -command. - -## METHODS AND PROPERTIES - -* `npm.load(configs, cb)` - - Load the configuration params, and call the `cb` function once the - globalconfig and userconfig files have been loaded as well, or on - nextTick if they've already been loaded. - -* `npm.config` - - An object for accessing npm configuration parameters. - - * `npm.config.get(key)` - * `npm.config.set(key, val)` - * `npm.config.del(key)` - -* `npm.dir` or `npm.root` - - The `node_modules` directory where npm will operate. - -* `npm.prefix` - - The prefix where npm is operating. (Most often the current working - directory.) - -* `npm.cache` - - The place where npm keeps JSON and tarballs it fetches from the - registry (or uploads to the registry). - -* `npm.tmp` - - npm's temporary working directory. - -* `npm.deref` - - Get the "real" name for a command that has either an alias or - abbreviation. - -## MAGIC - -For each of the methods in the `npm.commands` hash, a method is added to -the npm object, which takes a set of positional string arguments rather -than an array and a callback. - -If the last argument is a callback, then it will use the supplied -callback. However, if no callback is provided, then it will print out -the error or results. - -For example, this would work in a node repl: - - > npm = require("npm") - > npm.load() // wait a sec... - > npm.install("dnode", "express") - -Note that that *won't* work in a node program, since the `install` -method will get called before the configuration load is completed. - -## ABBREVS - -In order to support `npm ins foo` instead of `npm install foo`, the -`npm.commands` object has a set of abbreviations as well as the full -method names. Use the `npm.deref` method to find the real name. - -For example: - - var cmd = npm.deref("unp") // cmd === "unpublish"
  16. Download patch debian/patches/2009_ansi-color-table.patch

    --- 1.4.21+ds-2/debian/patches/2009_ansi-color-table.patch 2014-08-05 21:54:37.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2009_ansi-color-table.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -Description: use ansi-color-table instead of text-table, and ansi instead of ansicolors, ansistyles - node-ansi is already available in debian, it's easier to depend on it and it's been patched to - be a drop-in replacement of ansicolors and ansistyles. -Author: Jérémy Lal <kapouer@melix.org> -Forwarded: not-needed, waiting for upstream ansi.js to accept patch -Last-Update: 2014-08-05 ---- a/lib/outdated.js -+++ b/lib/outdated.js -@@ -29,9 +29,9 @@ - , npm = require("./npm.js") - , url = require("url") - , isGitUrl = require("./utils/is-git-url.js") -- , color = require("ansicolors") -- , styles = require("ansistyles") -- , table = require("text-table") -+ , color = require("ansi") -+ , styles = color -+ , table = require("ansi-color-table") - , semver = require("semver") - , os = require("os") - ---- a/lib/help-search.js -+++ b/lib/help-search.js -@@ -6,7 +6,7 @@ - , asyncMap = require("slide").asyncMap - , npm = require("./npm.js") - , glob = require("glob") -- , color = require("ansicolors") -+ , color = require("ansi") - - helpSearch.usage = "npm help-search <text>" - ---- a/lib/ls.js -+++ b/lib/ls.js -@@ -15,7 +15,7 @@ - , semver = require("semver") - , url = require("url") - , isGitUrl = require("./utils/is-git-url.js") -- , color = require("ansicolors") -+ , color = require("ansi") - - ls.usage = "npm ls" -
  17. Download patch doc/cli/npm-link.md

    --- 1.4.21+ds-2/doc/cli/npm-link.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-link.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,16 +3,18 @@ npm-link(1) -- Symlink a package folder ## SYNOPSIS - npm link (in package folder) - npm link <pkgname> - npm ln (with any of the previous argument usage) + npm link (in package dir) + npm link [<@scope>/]<pkg>[@<version>] + + alias: npm ln ## DESCRIPTION Package linking is a two-step process. First, `npm link` in a package folder will create a globally-installed -symbolic link from `prefix/package-name` to the current folder. +symbolic link from `prefix/package-name` to the current folder (see +`npm-config(7)` for the value of `prefix`). Next, in some other location, `npm link package-name` will create a symlink from the local `node_modules` folder to the global symlink. @@ -20,12 +22,14 @@ symlink from the local `node_modules` fo Note that `package-name` is taken from `package.json`, not from directory name. +The package name can be optionally prefixed with a scope. See `npm-scope(7)`. +The scope must be preceded by an @-symbol and followed by a slash. + When creating tarballs for `npm publish`, the linked packages are "snapshotted" to their current state by resolving the symbolic links. -This is -handy for installing your own stuff, so that you can work on it and test it -iteratively without having to continually rebuild. +This is handy for installing your own stuff, so that you can work on it and +test it iteratively without having to continually rebuild. For example: @@ -35,7 +39,8 @@ For example: npm link redis # link-install the package Now, any changes to ~/projects/node-redis will be reflected in -~/projects/node-bloggy/node_modules/redis/ +~/projects/node-bloggy/node_modules/node-redis/. Note that the link should +be to the package name, not the directory name for that package. You may also shortcut the two steps in one. For example, to do the above use-case in a shorter way: @@ -46,11 +51,16 @@ above use-case in a shorter way: The second line is the equivalent of doing: (cd ../node-redis; npm link) - npm link redis + npm link node-redis That is, it first creates a global link, and then links the global installation target into your project's `node_modules` folder. +If your linked package is scoped (see `npm-scope(7)`) your link command must +include that scope, e.g. + + npm link @myorg/privatepackage + ## SEE ALSO * npm-developers(7)
  18. Download patch debian/doc-base.api

    --- 1.4.21+ds-2/debian/doc-base.api 2014-07-28 22:34:47.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/doc-base.api 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -Document: npm-api -Title: Npm API documentation -Author: Isaac Z. Schlueter -Abstract: This describes the API of npm. -Section: Programming - -Format: HTML -Index: /usr/share/doc/npm/api/npm.html -Files: /usr/share/doc/npm/api/*.html \ No newline at end of file
  19. Download patch doc/api/npm-commands.md

    --- 1.4.21+ds-2/doc/api/npm-commands.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-commands.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -npm-commands(3) -- npm commands -=============================== - -## SYNOPSIS - - npm.commands[<command>](args, callback) - -## DESCRIPTION - -npm comes with a full set of commands, and each of the commands takes a -similar set of arguments. - -In general, all commands on the command object take an **array** of positional -argument **strings**. The last argument to any function is a callback. Some -commands are special and take other optional arguments. - -All commands have their own man page. See `man npm-<command>` for command-line -usage, or `man 3 npm-<command>` for programmatic usage. - -## SEE ALSO - -* npm-index(7)
  20. Download patch CONTRIBUTING.md

    --- 1.4.21+ds-2/CONTRIBUTING.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/CONTRIBUTING.md 2015-12-07 16:00:46.000000000 +0000 @@ -7,3 +7,6 @@ issues](https://github.com/npm/npm/search?q=Similar%20issues&type=Issues). * Ensure your new issue conforms to the [Contributing Guidelines](https://github.com/npm/npm/wiki/Contributing-Guidelines). + +Participation in this open source project is subject to the [npm Code +of Conduct](http://www.npmjs.com/policies/conduct).
  21. Download patch doc/cli/npm-rebuild.md

    --- 1.4.21+ds-2/doc/cli/npm-rebuild.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-rebuild.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,11 +3,9 @@ npm-rebuild(1) -- Rebuild a package ## SYNOPSIS - npm rebuild [<name> [<name> ...]] - npm rb [<name> [<name> ...]] + npm rebuild [[<@scope>/<name>]...] -* `<name>`: - The package to rebuild + alias: npm rb ## DESCRIPTION
  22. Download patch doc/api/npm-search.md

    --- 1.4.21+ds-2/doc/api/npm-search.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-search.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -npm-search(3) -- Search for packages -==================================== - -## SYNOPSIS - - npm.commands.search(searchTerms, [silent,] [staleness,] callback) - -## DESCRIPTION - -Search the registry for packages matching the search terms. The available parameters are: - -* searchTerms: - Array of search terms. These terms are case-insensitive. -* silent: - If true, npm will not log anything to the console. -* staleness: - This is the threshold for stale packages. "Fresh" packages are not refreshed - from the registry. This value is measured in seconds. -* callback: - Returns an object where each key is the name of a package, and the value - is information about that package along with a 'words' property, which is - a space-delimited string of all of the interesting words in that package. - The only properties included are those that are searched, which generally include: - - * name - * description - * maintainers - * url - * keywords - -A search on the registry excludes any result that does not match all of the -search terms. It also removes any items from the results that contain an -excluded term (the "searchexclude" config). The search is case insensitive -and doesn't try to read your mind (it doesn't do any verb tense matching or the -like).
  23. Download patch doc/api/npm-run-script.md

    --- 1.4.21+ds-2/doc/api/npm-run-script.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-run-script.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -npm-run-script(3) -- Run arbitrary package scripts -================================================== - -## SYNOPSIS - - npm.commands.run-script(args, callback) - -## DESCRIPTION - -This runs an arbitrary command from a package's "scripts" object. - -It is used by the test, start, restart, and stop commands, but can be -called directly, as well. - -The 'args' parameter is an array of strings. Behavior depends on the number -of elements. If there is only one element, npm assumes that the element -represents a command to be run on the local repository. If there is more than -one element, then the first is assumed to be the package and the second is -assumed to be the command to run. All other elements are ignored. - -## SEE ALSO - -* npm-scripts(7) -* npm-test(3) -* npm-start(3) -* npm-restart(3) -* npm-stop(3)
  24. Download patch debian/rules

    --- 1.4.21+ds-2/debian/rules 2014-07-28 23:10:28.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/rules 2015-12-07 19:36:23.000000000 +0000 @@ -24,16 +24,16 @@ install/npm:: # Fix permissions # Remove LICENSE files. -binary-post-install/npm:: +binary-fixup/npm:: + dh_fixperms + chmod a+x debian/npm/usr/share/npm/node_modules/*/bin/* + chmod a+x debian/npm/usr/share/npm/bin/npm-cli.js chmod a-x debian/npm/usr/share/npm/bin/read-package-json.js chmod a-x debian/npm/usr/share/npm/lib/utils/completion.sh chmod a-x debian/npm/usr/share/npm/node_modules/uid-number/get-uid-gid.js - chmod a-x debian/npm/usr/share/npm/node_modules/npmconf/node_modules/config-chain/index.js sed -i -e "s|#!/usr/bin/env node|#!/usr/bin/nodejs|" \ - debian/npm/usr/share/npm/node_modules/opener/opener.js \ - debian/npm/usr/share/npm/node_modules/columnify/node_modules/strip-ansi/cli.js + debian/npm/usr/share/npm/node_modules/opener/opener.js find debian/npm -name LICENSE -delete find debian/npm -name LICENCE -delete find debian/npm -name LICENSE.txt -delete find debian/npm -name LICENSE.md -delete -
  25. Download patch doc/cli/npm.md

    --- 1.4.21+ds-2/doc/cli/npm.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm.md 2015-12-07 16:00:46.000000000 +0000 @@ -1,5 +1,5 @@ -npm(1) -- node package manager -============================== +npm(1) -- javascript package manager +==================================== ## SYNOPSIS @@ -61,7 +61,7 @@ In particular, npm has two modes of oper defaults to the current working directory. Packages are installed to `./node_modules`, and bins are installed to `./node_modules/.bin`. -Local mode is the default. Use `--global` or `-g` on any command to +Local mode is the default. Use `-g` or `--global` on any command to operate in global mode instead. ## DEVELOPER USAGE
  26. Download patch doc/cli/npm-deprecate.md

    --- 1.4.21+ds-2/doc/cli/npm-deprecate.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-deprecate.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-deprecate(1) -- Deprecate a version ## SYNOPSIS - npm deprecate <name>[@<version>] <message> + npm deprecate <pkg>[@<version>] <message> ## DESCRIPTION
  27. Download patch doc/api/npm-tag.md

    --- 1.4.21+ds-2/doc/api/npm-tag.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-tag.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -npm-tag(3) -- Tag a published version -===================================== - -## SYNOPSIS - - npm.commands.tag(package@version, tag, callback) - -## DESCRIPTION - -Tags the specified version of the package with the specified tag, or the -`--tag` config if not specified. - -The 'package@version' is an array of strings, but only the first two elements are -currently used. - -The first element must be in the form package@version, where package -is the package name and version is the version number (much like installing a -specific version). - -The second element is the name of the tag to tag this version with. If this -parameter is missing or falsey (empty), the default froom the config will be -used. For more information about how to set this config, check -`man 3 npm-config` for programmatic usage or `man npm-config` for cli usage.
  28. Download patch doc/api/npm-init.md

    --- 1.4.21+ds-2/doc/api/npm-init.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-init.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ -npm init(3) -- Interactively create a package.json file -======================================================= - -## SYNOPSIS - - npm.commands.init(args, callback) - -## DESCRIPTION - -This will ask you a bunch of questions, and then write a package.json for you. - -It attempts to make reasonable guesses about what you want things to be set to, -and then writes a package.json file with the options you've selected. - -If you already have a package.json file, it'll read that first, and default to -the options in there. - -It is strictly additive, so it does not delete options from your package.json -without a really good reason to do so. - -Since this function expects to be run on the command-line, it doesn't work very -well as a programmatically. The best option is to roll your own, and since -JavaScript makes it stupid simple to output formatted JSON, that is the -preferred method. If you're sure you want to handle command-line prompting, -then go ahead and use this programmatically. - -## SEE ALSO - -package.json(5)
  29. Download patch debian/install

    --- 1.4.21+ds-2/debian/install 2014-07-29 02:19:23.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/install 2015-12-07 18:23:44.000000000 +0000 @@ -1,4 +1,4 @@ -lib/*.js usr/share/npm/lib +lib/* usr/share/npm/lib lib/cache usr/share/npm/lib lib/utils/*.js usr/share/npm/lib/utils lib/utils/completion usr/share/npm/lib/utils
  30. Download patch doc/api/npm-load.md

    --- 1.4.21+ds-2/doc/api/npm-load.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-load.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -npm-load(3) -- Load config settings -=================================== - -## SYNOPSIS - - npm.load(conf, cb) - -## DESCRIPTION - -npm.load() must be called before any other function call. Both parameters are -optional, but the second is recommended. - -The first parameter is an object hash of command-line config params, and the -second parameter is a callback that will be called when npm is loaded and -ready to serve. - -The first parameter should follow a similar structure as the package.json -config object. - -For example, to emulate the --dev flag, pass an object that looks like this: - - { - "dev": true - } - -For a list of all the available command-line configs, see `npm help config`
  31. Download patch doc/api/npm-explore.md

    --- 1.4.21+ds-2/doc/api/npm-explore.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-explore.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -npm-explore(3) -- Browse an installed package -============================================= - -## SYNOPSIS - - npm.commands.explore(args, callback) - -## DESCRIPTION - -Spawn a subshell in the directory of the installed package specified. - -If a command is specified, then it is run in the subshell, which then -immediately terminates. - -Note that the package is *not* automatically rebuilt afterwards, so be -sure to use `npm rebuild <pkg>` if you make any changes. - -The first element in the 'args' parameter must be a package name. After that is the optional command, which can be any number of strings. All of the strings will be combined into one, space-delimited command.
  32. Download patch doc/cli/npm-publish.md

    --- 1.4.21+ds-2/doc/cli/npm-publish.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-publish.md 2015-12-07 16:00:46.000000000 +0000 @@ -4,12 +4,20 @@ npm-publish(1) -- Publish a package ## SYNOPSIS - npm publish <tarball> [--tag <tag>] - npm publish <folder> [--tag <tag>] + npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] + + Publishes '.' if no argument supplied + Sets tag 'latest' if no --tag specified ## DESCRIPTION -Publishes a package to the registry so that it can be installed by name. +Publishes a package to the registry so that it can be installed by name. See +`npm-developers(7)` for details on what's included in the published package, as +well as details on how the package is built. + +By default npm will publish to the public registry. This can be overridden by +specifying a different default registry or using a `npm-scope(7)` in the name +(see `package.json(5)`). * `<folder>`: A folder containing a package.json file @@ -23,8 +31,14 @@ Publishes a package to the registry so t <name>@<tag>` will install this version. By default, `npm publish` updates and `npm install` installs the `latest` tag. +* `[--access <public|restricted>]` + Tells the registry whether this package should be published as public or + restricted. Only applies to scoped packages, which default to `restricted`. + If you don't have a paid account, you must publish with `--access public` + to publish scoped packages. + Fails if the package name and version combination already exists in -the registry. +the specified registry. Once a package is published with a given name and version, that specific name and version combination can never be used again, even if @@ -33,6 +47,7 @@ it is removed with npm-unpublish(1). ## SEE ALSO * npm-registry(7) +* npm-scope(7) * npm-adduser(1) * npm-owner(1) * npm-deprecate(1)
  33. Download patch debian/patches/2008_do_not_require_child-process-close.patch

    --- 1.4.21+ds-2/debian/patches/2008_do_not_require_child-process-close.patch 2014-07-28 22:54:17.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2008_do_not_require_child-process-close.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -Description: child-process-close is not needed with nodejs 0.10.x -Author: Jérémy Lal <kapouer@melix.org> -Forwarded: not-needed -Last-Update: 2013-09-08 ---- a/lib/npm.js -+++ b/lib/npm.js -@@ -12,7 +12,7 @@ - - - // monkey-patch support for 0.6 child processes --require('child-process-close') -+// require('child-process-close') - - var EventEmitter = require("events").EventEmitter - , npm = module.exports = new EventEmitter()
  34. Download patch changelogs/CHANGELOG-2.md
  35. Download patch doc/cli/npm-install.md
  36. Download patch doc/api/npm-link.md

    --- 1.4.21+ds-2/doc/api/npm-link.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-link.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -npm-link(3) -- Symlink a package folder -======================================= - -## SYNOPSIS - - npm.commands.link(callback) - npm.commands.link(packages, callback) - -## DESCRIPTION - -Package linking is a two-step process. - -Without parameters, link will create a globally-installed -symbolic link from `prefix/package-name` to the current folder. - -With a parameters, link will create a symlink from the local `node_modules` -folder to the global symlink. - -When creating tarballs for `npm publish`, the linked packages are -"snapshotted" to their current state by resolving the symbolic links. - -This is -handy for installing your own stuff, so that you can work on it and test it -iteratively without having to continually rebuild. - -For example: - - npm.commands.link(cb) # creates global link from the cwd - # (say redis package) - npm.commands.link('redis', cb) # link-install the package - -Now, any changes to the redis package will be reflected in -the package in the current working directory
  37. Download patch doc/api/npm-root.md

    --- 1.4.21+ds-2/doc/api/npm-root.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-root.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -npm-root(3) -- Display npm root -=============================== - -## SYNOPSIS - - npm.commands.root(args, callback) - -## DESCRIPTION - -Print the effective `node_modules` folder to standard out. - -'args' is never used and callback is never called with data. -'args' must be present or things will break. - -This function is not useful programmatically.
  38. Download patch doc/api/npm-prune.md

    --- 1.4.21+ds-2/doc/api/npm-prune.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-prune.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -npm-prune(3) -- Remove extraneous packages -========================================== - -## SYNOPSIS - - npm.commands.prune([packages,] callback) - -## DESCRIPTION - -This command removes "extraneous" packages. - -The first parameter is optional, and it specifies packages to be removed. - -No packages are specified, then all packages will be checked. - -Extraneous packages are packages that are not listed on the parent -package's dependencies list.
  39. Download patch bin/npm-cli.js

    --- 1.4.21+ds-2/bin/npm-cli.js 2015-12-08 18:08:06.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/npm-cli.js 2015-12-08 18:08:06.000000000 +0000 @@ -1,86 +1,76 @@ #!/usr/bin/nodejs ;(function () { // wrapper in case we're in module_context mode -// windows: running "npm blah" in this folder will invoke WSH, not node. -if (typeof WScript !== "undefined") { - WScript.echo("npm does not work when run\n" - +"with the Windows Scripting Host\n\n" - +"'cd' to a different directory,\n" - +"or type 'npm.cmd <args>',\n" - +"or type 'node npm <args>'.") - WScript.quit(1) - return -} - - -process.title = "npm" - -var log = require("npmlog") -log.pause() // will be unpaused when config is loaded. -log.info("it worked if it ends with", "ok") - -var fs = require("graceful-fs") - , path = require("path") - , npm = require("../lib/npm.js") - , npmconf = require("npmconf") - , errorHandler = require("../lib/utils/error-handler.js") - - , configDefs = npmconf.defs - , shorthands = configDefs.shorthands - , types = configDefs.types - , nopt = require("nopt") - -// if npm is called as "npmg" or "npm_g", then -// run in global mode. -if (path.basename(process.argv[1]).slice(-1) === "g") { - process.argv.splice(1, 1, "npm", "-g") -} - -log.verbose("cli", process.argv) - -var conf = nopt(types, shorthands) -npm.argv = conf.argv.remain -if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift() -else conf.usage = true - - -if (conf.version) { - console.log(npm.version) - return -} - -if (conf.versions) { - npm.command = "version" - conf.usage = false - npm.argv = [] -} - -log.info("using", "npm@%s", npm.version) -log.info("using", "node@%s", process.version) - -// make sure that this version of node works with this version of npm. -var semver = require("semver") - , nodeVer = process.version - , reqVer = npm.nodeVersionRequired -if (reqVer && !semver.satisfies(nodeVer, reqVer)) { - return errorHandler(new Error( - "npm doesn't work with node " + nodeVer - + "\nRequired: node@" + reqVer), true) -} - -process.on("uncaughtException", errorHandler) - -if (conf.usage && npm.command !== "help") { - npm.argv.unshift(npm.command) - npm.command = "help" -} - -// now actually fire up npm and run the command. -// this is how to use npm programmatically: -conf._exit = true -npm.load(conf, function (er) { - if (er) return errorHandler(er) - npm.commands[npm.command](npm.argv, errorHandler) -}) - + // windows: running "npm blah" in this folder will invoke WSH, not node. + /*global WScript*/ + if (typeof WScript !== 'undefined') { + WScript.echo( + 'npm does not work when run\n' + + 'with the Windows Scripting Host\n\n' + + "'cd' to a different directory,\n" + + "or type 'npm.cmd <args>',\n" + + "or type 'node npm <args>'." + ) + WScript.quit(1) + return + } + + process.title = 'npm' + + var log = require('npmlog') + log.pause() // will be unpaused when config is loaded. + + log.info('it worked if it ends with', 'ok') + + var path = require('path') + var npm = require('../lib/npm.js') + var npmconf = require('../lib/config/core.js') + var errorHandler = require('../lib/utils/error-handler.js') + + var configDefs = npmconf.defs + var shorthands = configDefs.shorthands + var types = configDefs.types + var nopt = require('nopt') + + // if npm is called as "npmg" or "npm_g", then + // run in global mode. + if (path.basename(process.argv[1]).slice(-1) === 'g') { + process.argv.splice(1, 1, 'npm', '-g') + } + + log.verbose('cli', process.argv) + + var conf = nopt(types, shorthands) + npm.argv = conf.argv.remain + if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift() + else conf.usage = true + + if (conf.version) { + console.log(npm.version) + return + } + + if (conf.versions) { + npm.command = 'version' + conf.usage = false + npm.argv = [] + } + + log.info('using', 'npm@%s', npm.version) + log.info('using', 'node@%s', process.version) + + process.on('uncaughtException', errorHandler) + + if (conf.usage && npm.command !== 'help') { + npm.argv.unshift(npm.command) + npm.command = 'help' + } + + // now actually fire up npm and run the command. + // this is how to use npm programmatically: + conf._exit = true + npm.load(conf, function (er) { + if (er) return errorHandler(er) + npm.commands[npm.command](npm.argv, errorHandler) + }) })()
  40. Download patch doc/api/npm-unpublish.md

    --- 1.4.21+ds-2/doc/api/npm-unpublish.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-unpublish.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -npm-unpublish(3) -- Remove a package from the registry -====================================================== - -## SYNOPSIS - - npm.commands.unpublish(package, callback) - -## DESCRIPTION - -This removes a package version from the registry, deleting its -entry and removing the tarball. - -The package parameter must be defined. - -Only the first element in the package parameter is used. If there is no first -element, then npm assumes that the package at the current working directory -is what is meant. - -If no version is specified, or if all versions are removed then -the root package entry is removed from the registry entirely.
  41. Download patch debian/control

    --- 1.4.21+ds-2/debian/control 2014-08-05 21:57:35.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/control 2015-12-07 19:10:03.000000000 +0000 @@ -1,7 +1,8 @@ Source: npm Section: web Priority: extra -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk> Build-Depends: cdbs,
  42. Download patch doc/api/npm-uninstall.md

    --- 1.4.21+ds-2/doc/api/npm-uninstall.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-uninstall.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -npm-uninstall(3) -- uninstall a package programmatically -======================================================== - -## SYNOPSIS - - npm.commands.uninstall(packages, callback) - -## DESCRIPTION - -This acts much the same ways as uninstalling on the command-line. - -The 'packages' parameter is an array of strings. Each element in the array is -the name of a package to be uninstalled. - -Finally, 'callback' is a function that will be called when all packages have been -uninstalled or when an error has been encountered.
  43. Download patch doc/cli/npm-repo.md

    --- 1.4.21+ds-2/doc/cli/npm-repo.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-repo.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,8 +3,7 @@ npm-repo(1) -- Open package repository p ## SYNOPSIS - npm repo <pkgname> - npm repo (with no args in a package dir) + npm repo [<pkg>] ## DESCRIPTION
  44. Download patch debian/patches/2005_index_build_dont_run_npm.patch

    --- 1.4.21+ds-2/debian/patches/2005_index_build_dont_run_npm.patch 2014-07-28 22:34:47.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2005_index_build_dont_run_npm.patch 2015-12-07 18:23:44.000000000 +0000 @@ -3,12 +3,14 @@ Description: Do not run cli.js as it dep Forwarded: https://github.com/isaacs/npm/pull/3873 Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2013-09-08 ---- a/scripts/doc-build.sh -+++ b/scripts/doc-build.sh -@@ -4,7 +4,7 @@ +Index: npm/scripts/doc-build.sh +=================================================================== +--- npm.orig/scripts/doc-build.sh ++++ npm/scripts/doc-build.sh +@@ -4,7 +4,7 @@ src=$1 dest=$2 name=$(basename ${src%.*}) - date=$(date -u +'%Y-%M-%d %H:%m:%S') + date=$(date -u +'%Y-%m-%d %H:%M:%S') -version=$(node cli.js -v) +version=$(nodejs -e "console.log(require('./package').version)")
  45. Download patch doc/api/npm-ls.md

    --- 1.4.21+ds-2/doc/api/npm-ls.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-ls.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -npm-ls(3) -- List installed packages -====================================== - -## SYNOPSIS - - npm.commands.ls(args, [silent,] callback) - -## DESCRIPTION - -This command will print to stdout all the versions of packages that are -installed, as well as their dependencies, in a tree-structure. It will also -return that data using the callback. - -This command does not take any arguments, but args must be defined. -Beyond that, if any arguments are passed in, npm will politely warn that it -does not take positional arguments, though you may set config flags -like with any other command, such as `global` to list global packages. - -It will print out extraneous, missing, and invalid packages. - -If the silent parameter is set to true, nothing will be output to the screen, -but the data will still be returned. - -Callback is provided an error if one occurred, the full data about which -packages are installed and which dependencies they will receive, and a -"lite" data object which just shows which versions are installed where. -Note that the full data object is a circular structure, so care must be -taken if it is serialized to JSON. - -## CONFIGURATION - -### long - -* Default: false -* Type: Boolean - -Show extended information. - -### parseable - -* Default: false -* Type: Boolean - -Show parseable output instead of tree view. - -### global - -* Default: false -* Type: Boolean - -List packages in the global install prefix instead of in the current -project. - -Note, if parseable is set or long isn't set, then duplicates will be trimmed. -This means that if a submodule a same dependency as a parent module, then the -dependency will only be output once.
  46. Download patch doc/cli/npm-help-search.md

    --- 1.4.21+ds-2/doc/cli/npm-help-search.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-help-search.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-help-search(1) -- Search npm help do ## SYNOPSIS - npm help-search some search terms + npm help-search <text> ## DESCRIPTION
  47. Download patch doc/cli/npm-access.md

    --- 1.4.21+ds-2/doc/cli/npm-access.md 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-access.md 2015-12-07 16:00:46.000000000 +0000 @@ -0,0 +1,74 @@ +npm-access(1) -- Set access level on published packages +======================================================= + +## SYNOPSIS + + npm access public [<package>] + npm access restricted [<package>] + + npm access grant <read-only|read-write> <scope:team> [<package>] + npm access revoke <scope:team> [<package>] + + npm access ls-packages [<user>|<scope>|<scope:team>] + npm access ls-collaborators [<package> [<user>]] + npm access edit [<package>] + +## DESCRIPTION + +Used to set access controls on private packages. + +For all of the subcommands, `npm access` will perform actions on the packages +in the current working directory if no package name is passed to the +subcommand. + +* public / restricted: + Set a package to be either publicly accessible or restricted. + +* grant / revoke: + Add or remove the ability of users and teams to have read-only or read-write + access to a package. + +* ls-packages: + + Show all of the packages a user or a team is able to access, along with the + access level, except for read-only public packages (it won't print the whole + registry listing) + +* ls-collaborators: + Show all of the access privileges for a package. Will only show permissions + for packages to which you have at least read access. If `<user>` is passed in, + the list is filtered only to teams _that_ user happens to belong to. + +* edit: + Set the access privileges for a package at once using `$EDITOR`. + +## DETAILS + +`npm access` always operates directly on the current registry, configurable +from the command line using `--registry=<registry url>`. + +Unscoped packages are *always public*. + +Scoped packages *default to restricted*, but you can either publish them as +public using `npm publish --access=public`, or set their access as public using +`npm access public` after the initial publish. + +You must have privileges to set the access of a package: + +* You are an owner of an unscoped or scoped package. +* You are a member of the team that owns a scope. +* You have been given read-write privileges for a package, either as a member + of a team or directly as an owner. + +If your account is not paid, then attempts to publish scoped packages will fail +with an HTTP 402 status code (logically enough), unless you use +`--access=public`. + +Management of teams and team memberships is done with the `npm team` command. + +## SEE ALSO + +* npm-team(1) +* npm-publish(1) +* npm-config(7) +* npm-registry(7)
  48. Download patch doc/api/npm-restart.md

    --- 1.4.21+ds-2/doc/api/npm-restart.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-restart.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -npm-restart(3) -- Start a package -================================= - -## SYNOPSIS - - npm.commands.restart(packages, callback) - -## DESCRIPTION - -This runs a package's "restart" script, if one was provided. -Otherwise it runs package's "stop" script, if one was provided, and then -the "start" script. - -If no version is specified, then it restarts the "active" version. - -npm can run tests on multiple packages. Just specify multiple packages -in the `packages` parameter. - -## SEE ALSO - -* npm-start(3) -* npm-stop(3)
  49. Download patch doc/api/npm-publish.md

    --- 1.4.21+ds-2/doc/api/npm-publish.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-publish.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -npm-publish(3) -- Publish a package -=================================== - -## SYNOPSIS - - npm.commands.publish([packages,] callback) - -## DESCRIPTION - -Publishes a package to the registry so that it can be installed by name. -Possible values in the 'packages' array are: - -* `<folder>`: - A folder containing a package.json file - -* `<tarball>`: - A url or file path to a gzipped tar archive containing a single folder - with a package.json file inside. - -If the package array is empty, npm will try to publish something in the -current working directory. - -This command could fails if one of the packages specified already exists in -the registry. Overwrites when the "force" environment variable is set. - -## SEE ALSO - -* npm-registry(7) -* npm-adduser(1) -* npm-owner(3)
  50. Download patch doc/cli/npm-explore.md

    --- 1.4.21+ds-2/doc/cli/npm-explore.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-explore.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-explore(1) -- Browse an installed pa ## SYNOPSIS - npm explore <name> [ -- <cmd>] + npm explore <pkg> [ -- <cmd>] ## DESCRIPTION @@ -32,7 +32,6 @@ The shell to run for the `npm explore` c ## SEE ALSO -* npm-submodule(1) * npm-folders(5) * npm-edit(1) * npm-rebuild(1)
  51. Download patch doc/api/npm-view.md

    --- 1.4.21+ds-2/doc/api/npm-view.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-view.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,93 +0,0 @@ -npm-view(3) -- View registry info -================================= - -## SYNOPSIS - - npm.commands.view(args, [silent,] callback) - -## DESCRIPTION - -This command shows data about a package and prints it to the stream -referenced by the `outfd` config, which defaults to stdout. - -The "args" parameter is an ordered list that closely resembles the command-line -usage. The elements should be ordered such that the first element is -the package and version (package@version). The version is optional. After that, -the rest of the parameters are fields with optional subfields ("field.subfield") -which can be used to get only the information desired from the registry. - -The callback will be passed all of the data returned by the query. - -For example, to get the package registry entry for the `connect` package, -you can do this: - - npm.commands.view(["connect"], callback) - -If no version is specified, "latest" is assumed. - -Field names can be specified after the package descriptor. -For example, to show the dependencies of the `ronn` package at version -0.3.5, you could do the following: - - npm.commands.view(["ronn@0.3.5", "dependencies"], callback) - -You can view child field by separating them with a period. -To view the git repository URL for the latest version of npm, you could -do this: - - npm.commands.view(["npm", "repository.url"], callback) - -For fields that are arrays, requesting a non-numeric field will return -all of the values from the objects in the list. For example, to get all -the contributor names for the "express" project, you can do this: - - npm.commands.view(["express", "contributors.email"], callback) - -You may also use numeric indices in square braces to specifically select -an item in an array field. To just get the email address of the first -contributor in the list, you can do this: - - npm.commands.view(["express", "contributors[0].email"], callback) - -Multiple fields may be specified, and will be printed one after another. -For exampls, to get all the contributor names and email addresses, you -can do this: - - npm.commands.view(["express", "contributors.name", "contributors.email"], callback) - -"Person" fields are shown as a string if they would be shown as an -object. So, for example, this will show the list of npm contributors in -the shortened string format. (See `npm help json` for more on this.) - - npm.commands.view(["npm", "contributors"], callback) - -If a version range is provided, then data will be printed for every -matching version of the package. This will show which version of jsdom -was required by each matching version of yui3: - - npm.commands.view(["yui3@'>0.5.4'", "dependencies.jsdom"], callback) - -## OUTPUT - -If only a single string field for a single version is output, then it -will not be colorized or quoted, so as to enable piping the output to -another command. - -If the version range matches multiple versions, than each printed value -will be prefixed with the version it applies to. - -If multiple fields are requested, than each of them are prefixed with -the field name. - -Console output can be disabled by setting the 'silent' parameter to true. - -## RETURN VALUE - -The data returned will be an object in this formation: - - { <version>: - { <field>: <value> - , ... } - , ... } - -corresponding to the list of fields selected.
  52. Download patch doc/api/npm-install.md

    --- 1.4.21+ds-2/doc/api/npm-install.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-install.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -npm-install(3) -- install a package programmatically -==================================================== - -## SYNOPSIS - - npm.commands.install([where,] packages, callback) - -## DESCRIPTION - -This acts much the same ways as installing on the command-line. - -The 'where' parameter is optional and only used internally, and it specifies -where the packages should be installed to. - -The 'packages' parameter is an array of strings. Each element in the array is -the name of a package to be installed. - -Finally, 'callback' is a function that will be called when all packages have been -installed or when an error has been encountered.
  53. Download patch debian/patches/2007_do_not_require_cmd-shim.patch

    --- 1.4.21+ds-2/debian/patches/2007_do_not_require_cmd-shim.patch 2014-07-28 22:34:47.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2007_do_not_require_cmd-shim.patch 2015-12-07 18:23:44.000000000 +0000 @@ -2,16 +2,18 @@ Description: cmd-shim is only needed on Author: Jérémy Lal <kapouer@melix.org> Forwarded: not-needed, todo: better patch Last-Update: 2013-09-08 ---- a/lib/build.js -+++ b/lib/build.js -@@ -16,8 +16,8 @@ - , readJson = require("read-package-json") - , link = require("./utils/link.js") - , linkIfExists = link.ifExists -- , cmdShim = require("cmd-shim") -- , cmdShimIfExists = cmdShim.ifExists -+// , cmdShim = require("cmd-shim") -+// , cmdShimIfExists = cmdShim.ifExists - , asyncMap = require("slide").asyncMap - - module.exports = build +Index: npm/lib/build.js +=================================================================== +--- npm.orig/lib/build.js ++++ npm/lib/build.js +@@ -16,8 +16,8 @@ var lifecycle = require('./utils/lifecyc + var readJson = require('read-package-json') + var link = require('./utils/link.js') + var linkIfExists = link.ifExists +-var cmdShim = require('cmd-shim') +-var cmdShimIfExists = cmdShim.ifExists ++//var cmdShim = require('cmd-shim') ++//var cmdShimIfExists = cmdShim.ifExists + var asyncMap = require('slide').asyncMap + var ini = require('ini') + var writeFile = require('write-file-atomic')
  54. Download patch doc/cli/npm-owner.md

    --- 1.4.21+ds-2/doc/cli/npm-owner.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-owner.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,9 +3,9 @@ npm-owner(1) -- Manage package owners ## SYNOPSIS - npm owner ls <package name> - npm owner add <user> <package name> - npm owner rm <user> <package name> + npm owner add <user> [<@scope>/]<pkg> + npm owner rm <user> [<@scope>/]<pkg> + npm owner ls [<@scope>/]<pkg> ## DESCRIPTION
  55. Download patch doc/api/npm-version.md

    --- 1.4.21+ds-2/doc/api/npm-version.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-version.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -npm-version(3) -- Bump a package version -======================================== - -## SYNOPSIS - - npm.commands.version(newversion, callback) - -## DESCRIPTION - -Run this in a package directory to bump the version and write the new -data back to the package.json file. - -If run in a git repo, it will also create a version commit and tag, and -fail if the repo is not clean. - -Like all other commands, this function takes a string array as its first -parameter. The difference, however, is this function will fail if it does -not have exactly one element. The only element should be a version number.
  56. Download patch doc/api/npm-repo.md

    --- 1.4.21+ds-2/doc/api/npm-repo.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-repo.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -npm-repo(3) -- Open package repository page in the browser -======================================================== - -## SYNOPSIS - - npm.commands.repo(package, callback) - -## DESCRIPTION - -This command tries to guess at the likely location of a package's -repository URL, and then tries to open it using the `--browser` -config param. - -Like other commands, the first parameter is an array. This command only -uses the first element, which is expected to be a package name with an -optional version number. - -This command will launch a browser, so this command may not be the most -friendly for programmatic use.
  57. Download patch bin/node-gyp-bin/node-gyp.cmd

    --- 1.4.21+ds-2/bin/node-gyp-bin/node-gyp.cmd 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/node-gyp-bin/node-gyp.cmd 2015-12-07 16:00:46.000000000 +0000 @@ -1 +1,5 @@ -node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %* +if not defined npm_config_node_gyp ( + node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %* +) else ( + node %npm_config_node_gyp% %* +)
  58. Download patch doc/cli/npm-config.md

    --- 1.4.21+ds-2/doc/cli/npm-config.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-config.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,14 +3,13 @@ npm-config(1) -- Manage the npm configur ## SYNOPSIS - npm config set <key> <value> [--global] + npm config set <key> <value> [-g|--global] npm config get <key> npm config delete <key> npm config list npm config edit - npm c [set|get|delete|list] npm get <key> - npm set <key> <value> [--global] + npm set <key> <value> [-g|--global] ## DESCRIPTION
  59. Download patch doc/cli/npm-prefix.md

    --- 1.4.21+ds-2/doc/cli/npm-prefix.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-prefix.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,11 +3,15 @@ npm-prefix(1) -- Display prefix ## SYNOPSIS - npm prefix + npm prefix [-g] ## DESCRIPTION -Print the prefix to standard out. +Print the local prefix to standard out. This is the closest parent directory +to contain a package.json file unless `-g` is also specified. + +If `-g` is specified, this will be the value of the global prefix. See +`npm-config(7)` for more detail. ## SEE ALSO
  60. Download patch doc/cli/npm-help.md

    --- 1.4.21+ds-2/doc/cli/npm-help.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-help.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,8 +3,7 @@ npm-help(1) -- Get help on npm ## SYNOPSIS - npm help <topic> - npm help some search terms + npm help <term> [<terms..>] ## DESCRIPTION
  61. Download patch doc/api/npm-deprecate.md

    --- 1.4.21+ds-2/doc/api/npm-deprecate.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-deprecate.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -npm-deprecate(3) -- Deprecate a version of a package -==================================================== - -## SYNOPSIS - - npm.commands.deprecate(args, callback) - -## DESCRIPTION - -This command will update the npm registry entry for a package, providing -a deprecation warning to all who attempt to install it. - -The 'args' parameter must have exactly two elements: - -* `package[@version]` - - The `version` portion is optional, and may be either a range, or a - specific version, or a tag. - -* `message` - - The warning message that will be printed whenever a user attempts to - install the package. - -Note that you must be the package owner to deprecate something. See the -`owner` and `adduser` help topics. - -To un-deprecate a package, specify an empty string (`""`) for the `message` argument. - -## SEE ALSO - -* npm-publish(3) -* npm-unpublish(3) -* npm-registry(7)
  62. Download patch debian/patches/2002_use_ruby_ronn.patch

    --- 1.4.21+ds-2/debian/patches/2002_use_ruby_ronn.patch 2014-07-28 22:52:08.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2002_use_ruby_ronn.patch 2015-12-07 18:23:44.000000000 +0000 @@ -3,37 +3,39 @@ Description: Use ruby-ronn and marked to Forwarded: not-needed Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2014-07-29 ---- a/scripts/doc-build.sh -+++ b/scripts/doc-build.sh +Index: npm/scripts/doc-build.sh +=================================================================== +--- npm.orig/scripts/doc-build.sh ++++ npm/scripts/doc-build.sh @@ -1,63 +1,5 @@ #!/usr/bin/env bash - + -if [[ $DEBUG != "" ]]; then - set -x -fi -set -o errexit -set -o pipefail - --if ! [ -x node_modules/.bin/ronn ]; then +-if ! [ -x node_modules/.bin/marked-man ]; then - ps=0 -- if [ -f .building_ronn ]; then -- pid=$(cat .building_ronn) +- if [ -f .building_marked-man ]; then +- pid=$(cat .building_marked-man) - ps=$(ps -p $pid | grep $pid | wc -l) || true - fi - -- if [ -f .building_ronn ] && [ $ps != 0 ]; then -- while [ -f .building_ronn ]; do +- if [ -f .building_marked-man ] && [ $ps != 0 ]; then +- while [ -f .building_marked-man ]; do - sleep 1 - done - else -- # a race to see which make process will be the one to install ronn -- echo $$ > .building_ronn +- # a race to see which make process will be the one to install marked-man +- echo $$ > .building_marked-man - sleep 1 -- if [ $(cat .building_ronn) == $$ ]; then -- make node_modules/.bin/ronn -- rm .building_ronn +- if [ $(cat .building_marked-man) == $$ ]; then +- make node_modules/.bin/marked-man +- rm .building_marked-man - else -- while [ -f .building_ronn ]; do +- while [ -f .building_marked-man ]; do - sleep 1 - done - fi @@ -69,24 +71,13 @@ Last-Update: 2014-07-29 src=$1 dest=$2 name=$(basename ${src%.*}) -@@ -68,36 +10,36 @@ - +@@ -99,14 +41,14 @@ man_replace_tokens () { + case $dest in *.[1357]) -- ./node_modules/.bin/ronn --roff $src \ +- ./node_modules/.bin/marked-man --roff $src \ + cat $src | ronn \ - | sed "s|@VERSION@|$version|g" \ -- | perl -pi -e 's/(npm\\-)?([^\(]*)\(1\)/npm help \2/g' \ -- | perl -pi -e 's/(npm\\-)?([^\(]*)\([57]\)/npm help \3 \2/g' \ -- | perl -pi -e 's/(npm\\-)?([^\(]*)\(3\)/npm apihelp \2/g' \ -- | perl -pi -e 's/npm\(1\)/npm help npm/g' \ -- | perl -pi -e 's/npm\(3\)/npm apihelp npm/g' \ -+ | perl -p -e 's/(npm\\-)?([^\(]*)\(1\)/npm help \2/g' \ -+ | perl -p -e 's/(npm\\-)?([^\(]*)\([57]\)/npm help \3 \2/g' \ -+ | perl -p -e 's/(npm\\-)?([^\(]*)\(3\)/npm apihelp \2/g' \ -+ | perl -p -e 's/npm\(1\)/npm help npm/g' \ -+ | perl -p -e 's/npm\(3\)/npm apihelp npm/g' \ - > $dest + | man_replace_tokens > $dest exit $? ;; *.html) @@ -95,31 +86,5 @@ Last-Update: 2014-07-29 - cat $src | ./node_modules/.bin/marked && + cat $src | marked && cat html/docfoot.html)\ - | sed "s|@NAME@|$name|g" \ - | sed "s|@DATE@|$date|g" \ - | sed "s|@URL@|$url|g" \ - | sed "s|@VERSION@|$version|g" \ -- | perl -pi -e 's/<h1([^>]*)>([^\(]*\([0-9]\)) -- (.*?)<\/h1>/<h1>\2<\/h1> <p>\3<\/p>/g' \ -- | perl -pi -e 's/npm-npm/npm/g' \ -- | perl -pi -e 's/([^"-])(npm-)?README(?!\.html)(\(1\))?/\1<a href="..\/..\/doc\/README.html">README<\/a>/g' \ -- | perl -pi -e 's/<title><a href="[^"]+README.html">README<\/a><\/title>/<title>README<\/title>/g' \ -- | perl -pi -e 's/([^"-])([^\(> ]+)(\(1\))/\1<a href="..\/cli\/\2.html">\2\3<\/a>/g' \ -- | perl -pi -e 's/([^"-])([^\(> ]+)(\(3\))/\1<a href="..\/api\/\2.html">\2\3<\/a>/g' \ -- | perl -pi -e 's/([^"-])([^\(> ]+)(\(5\))/\1<a href="..\/files\/\2.html">\2\3<\/a>/g' \ -- | perl -pi -e 's/([^"-])([^\(> ]+)(\(7\))/\1<a href="..\/misc\/\2.html">\2\3<\/a>/g' \ -- | perl -pi -e 's/\([1357]\)<\/a><\/h1>/<\/a><\/h1>/g' \ -+ | perl -p -e 's/<h1([^>]*)>([^\(]*\([0-9]\)) -- (.*?)<\/h1>/<h1>\2<\/h1> <p>\3<\/p>/g' \ -+ | perl -p -e 's/npm-npm/npm/g' \ -+ | perl -p -e 's/([^"-])(npm-)?README(?!\.html)(\(1\))?/\1<a href="..\/..\/doc\/README.html">README<\/a>/g' \ -+ | perl -p -e 's/<title><a href="[^"]+README.html">README<\/a><\/title>/<title>README<\/title>/g' \ -+ | perl -p -e 's/([^"-])([^\(> ]+)(\(1\))/\1<a href="..\/cli\/\2.html">\2\3<\/a>/g' \ -+ | perl -p -e 's/([^"-])([^\(> ]+)(\(3\))/\1<a href="..\/api\/\2.html">\2\3<\/a>/g' \ -+ | perl -p -e 's/([^"-])([^\(> ]+)(\(5\))/\1<a href="..\/files\/\2.html">\2\3<\/a>/g' \ -+ | perl -p -e 's/([^"-])([^\(> ]+)(\(7\))/\1<a href="..\/misc\/\2.html">\2\3<\/a>/g' \ -+ | perl -p -e 's/\([1357]\)<\/a><\/h1>/<\/a><\/h1>/g' \ - | (if [ $(basename $(dirname $dest)) == "doc" ]; then -- perl -pi -e 's/ href="\.\.\// href="/g' -+ perl -p -e 's/ href="\.\.\// href="/g' - else - cat - fi) \ + | html_replace_tokens $url \ + > $dest
  63. Download patch doc/api/npm-whoami.md

    --- 1.4.21+ds-2/doc/api/npm-whoami.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-whoami.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -npm-whoami(3) -- Display npm username -===================================== - -## SYNOPSIS - - npm.commands.whoami(args, callback) - -## DESCRIPTION - -Print the `username` config to standard output. - -'args' is never used and callback is never called with data. -'args' must be present or things will break. - -This function is not useful programmatically
  64. Download patch debian/patches/2008_ansi-color-table.patch

    --- 1.4.21+ds-2/debian/patches/2008_ansi-color-table.patch 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2008_ansi-color-table.patch 2015-12-07 18:23:44.000000000 +0000 @@ -0,0 +1,49 @@ +Description: use ansi-color-table instead of text-table, and ansi instead of ansicolors, ansistyles + node-ansi is already available in debian, it's easier to depend on it and it's been patched to + be a drop-in replacement of ansicolors and ansistyles. +Author: Jérémy Lal <kapouer@melix.org> +Forwarded: not-needed, waiting for upstream ansi.js to accept patch +Last-Update: 2014-08-05 +Index: npm/lib/outdated.js +=================================================================== +--- npm.orig/lib/outdated.js ++++ npm/lib/outdated.js +@@ -27,9 +27,9 @@ var log = require('npmlog') + var readPackageTree = require('read-package-tree') + var readJson = require('read-package-json') + var asyncMap = require('slide').asyncMap +-var color = require('ansicolors') +-var styles = require('ansistyles') +-var table = require('text-table') ++var color = require('ansi') ++var styles = color ++var table = require('ansi-color-table') + var semver = require('semver') + var npa = require('npm-package-arg') + var mutateIntoLogicalTree = require('./install/mutate-into-logical-tree.js') +Index: npm/lib/help-search.js +=================================================================== +--- npm.orig/lib/help-search.js ++++ npm/lib/help-search.js +@@ -6,7 +6,7 @@ var path = require('path') + var asyncMap = require('slide').asyncMap + var npm = require('./npm.js') + var glob = require('glob') +-var color = require('ansicolors') ++var color = require('ansi') + + helpSearch.usage = 'npm help-search <text>' + +Index: npm/lib/ls.js +=================================================================== +--- npm.orig/lib/ls.js ++++ npm/lib/ls.js +@@ -12,7 +12,7 @@ var readPackageTree = require('read-pack + var log = require('npmlog') + var archy = require('archy') + var semver = require('semver') +-var color = require('ansicolors') ++var color = require('ansi') + var npa = require('npm-package-arg') + var iferr = require('iferr') + var npm = require('./npm.js')
  65. Download patch doc/api/npm-config.md

    --- 1.4.21+ds-2/doc/api/npm-config.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-config.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -npm-config(3) -- Manage the npm configuration files -=================================================== - -## SYNOPSIS - - npm.commands.config(args, callback) - var val = npm.config.get(key) - npm.config.set(key, val) - -## DESCRIPTION - -This function acts much the same way as the command-line version. The first -element in the array tells config what to do. Possible values are: - -* `set` - - Sets a config parameter. The second element in `args` is interpreted as the - key, and the third element is interpreted as the value. - -* `get` - - Gets the value of a config parameter. The second element in `args` is the - key to get the value of. - -* `delete` (`rm` or `del`) - - Deletes a parameter from the config. The second element in `args` is the - key to delete. - -* `list` (`ls`) - - Show all configs that aren't secret. No parameters necessary. - -* `edit`: - - Opens the config file in the default editor. This command isn't very useful - programmatically, but it is made available. - -To programmatically access npm configuration settings, or set them for -the duration of a program, use the `npm.config.set` and `npm.config.get` -functions instead. - -## SEE ALSO - -* npm(3)
  66. Download patch doc/api/npm-prefix.md

    --- 1.4.21+ds-2/doc/api/npm-prefix.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-prefix.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -npm-prefix(3) -- Display prefix -=============================== - -## SYNOPSIS - - npm.commands.prefix(args, callback) - -## DESCRIPTION - -Print the prefix to standard out. - -'args' is never used and callback is never called with data. -'args' must be present or things will break. - -This function is not useful programmatically
  67. Download patch doc/cli/npm-edit.md

    --- 1.4.21+ds-2/doc/cli/npm-edit.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-edit.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-edit(1) -- Edit an installed package ## SYNOPSIS - npm edit <name>[@<version>] + npm edit <pkg>[@<version>] ## DESCRIPTION
  68. Download patch debian/patches/2003_fix_doc.patch

    --- 1.4.21+ds-2/debian/patches/2003_fix_doc.patch 2014-07-28 22:34:47.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2003_fix_doc.patch 2015-12-07 18:23:44.000000000 +0000 @@ -2,9 +2,11 @@ Description: ruby-ronn does not handle h Forwarded: not-needed Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2012-04-07 ---- a/doc/files/npm-folders.md -+++ b/doc/files/npm-folders.md -@@ -135,7 +135,7 @@ +Index: npm/doc/files/npm-folders.md +=================================================================== +--- npm.orig/doc/files/npm-folders.md ++++ npm/doc/files/npm-folders.md +@@ -141,7 +141,7 @@ prevented. Another optimization can be made by installing dependencies at the highest level possible, below the localized "target" folder.
  69. Download patch CHANGELOG.md
  70. Download patch debian/patches/series

    --- 1.4.21+ds-2/debian/patches/series 2014-07-28 23:22:34.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/series 2015-12-07 18:23:44.000000000 +0000 @@ -5,6 +5,5 @@ 2005_index_build_dont_run_npm.patch 2006_rename_node_to_nodejs.patch 2007_do_not_require_cmd-shim.patch -2008_do_not_require_child-process-close.patch -2009_ansi-color-table.patch -2010_privacy_breach_travis.patch +2008_ansi-color-table.patch +2009_privacy_breach_travis.patch
  71. Download patch changelogs/CHANGELOG-1.md
  72. Download patch bin/npm

    --- 1.4.21+ds-2/bin/npm 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/npm 2015-12-07 16:00:46.000000000 +0000 @@ -7,8 +7,21 @@ case `uname` in *CYGWIN*) basedir=`cygpath -w "$basedir"`;; esac -if [ -x "$basedir/node.exe" ]; then - "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@" -else - node "$basedir/node_modules/npm/bin/npm-cli.js" "$@" +NODE_EXE="$basedir/node.exe" +if ! [ -x "$NODE_EXE" ]; then + NODE_EXE=node fi + +NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js" + +case `uname` in + *CYGWIN*) + NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` + NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js" + if [ -f "$NPM_PREFIX_NPM_CLI_JS" ]; then + NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS" + fi + ;; +esac + +"$NODE_EXE" "$NPM_CLI_JS" "$@"
  73. Download patch doc/cli/npm-completion.md

    --- 1.4.21+ds-2/doc/cli/npm-completion.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-completion.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-completion(1) -- Tab Completion for ## SYNOPSIS - . <(npm completion) + source <(npm completion) ## DESCRIPTION @@ -12,7 +12,10 @@ Enables tab-completion in all npm comman The synopsis above loads the completions into your current shell. Adding it to your ~/.bashrc or ~/.zshrc will make the completions available -everywhere. +everywhere: + + npm completion >> ~/.bashrc + npm completion >> ~/.zshrc You may of course also pipe the output of npm completion to a file such as `/usr/local/etc/bash_completion.d/npm` if you have a system
  74. Download patch doc/cli/npm-bugs.md

    --- 1.4.21+ds-2/doc/cli/npm-bugs.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-bugs.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,8 +3,7 @@ npm-bugs(1) -- Bugs for a package in a w ## SYNOPSIS - npm bugs <pkgname> - npm bugs (with no args in a package dir) + npm bugs [<pkgname>] ## DESCRIPTION
  75. Download patch doc/api/npm-start.md

    --- 1.4.21+ds-2/doc/api/npm-start.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-start.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -npm-start(3) -- Start a package -=============================== - -## SYNOPSIS - - npm.commands.start(packages, callback) - -## DESCRIPTION - -This runs a package's "start" script, if one was provided. - -npm can run tests on multiple packages. Just specify multiple packages -in the `packages` parameter.
  76. Download patch debian/patches/2006_rename_node_to_nodejs.patch
  77. Download patch doc/cli/npm-pack.md

    --- 1.4.21+ds-2/doc/cli/npm-pack.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-pack.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,15 +3,15 @@ npm-pack(1) -- Create a tarball from a p ## SYNOPSIS - npm pack [<pkg> [<pkg> ...]] + npm pack [[<@scope>/]<pkg>...] ## DESCRIPTION For anything that's installable (that is, a package folder, tarball, -tarball url, name@tag, name@version, or name), this command will fetch -it to the cache, and then copy the tarball to the current working -directory as `<name>-<version>.tgz`, and then write the filenames out to -stdout. +tarball url, name@tag, name@version, name, or scoped name), this +command will fetch it to the cache, and then copy the tarball to the +current working directory as `<name>-<version>.tgz`, and then write +the filenames out to stdout. If the same package is specified multiple times, then the file will be overwritten the second time.
  78. Download patch doc/api/npm-shrinkwrap.md

    --- 1.4.21+ds-2/doc/api/npm-shrinkwrap.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-shrinkwrap.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -npm-shrinkwrap(3) -- programmatically generate package shrinkwrap file -==================================================== - -## SYNOPSIS - - npm.commands.shrinkwrap(args, [silent,] callback) - -## DESCRIPTION - -This acts much the same ways as shrinkwrapping on the command-line. - -This command does not take any arguments, but 'args' must be defined. -Beyond that, if any arguments are passed in, npm will politely warn that it -does not take positional arguments. - -If the 'silent' parameter is set to true, nothing will be output to the screen, -but the shrinkwrap file will still be written. - -Finally, 'callback' is a function that will be called when the shrinkwrap has -been saved.
  79. Download patch doc/api/npm-edit.md

    --- 1.4.21+ds-2/doc/api/npm-edit.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-edit.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -npm-edit(3) -- Edit an installed package -======================================== - -## SYNOPSIS - - npm.commands.edit(package, callback) - -## DESCRIPTION - -Opens the package folder in the default editor (or whatever you've -configured as the npm `editor` config -- see `npm help config`.) - -After it has been edited, the package is rebuilt so as to pick up any -changes in compiled packages. - -For instance, you can do `npm install connect` to install connect -into your package, and then `npm.commands.edit(["connect"], callback)` -to make a few changes to your locally installed copy. - -The first parameter is a string array with a single element, the package -to open. The package can optionally have a version number attached. - -Since this command opens an editor in a new process, be careful about where -and how this is used.
  80. Download patch doc/api/npm-submodule.md

    --- 1.4.21+ds-2/doc/api/npm-submodule.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-submodule.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -npm-submodule(3) -- Add a package as a git submodule -==================================================== - -## SYNOPSIS - - npm.commands.submodule(packages, callback) - -## DESCRIPTION - -For each package specified, npm will check if it has a git repository url -in its package.json description then add it as a git submodule at -`node_modules/<pkg name>`. - -This is a convenience only. From then on, it's up to you to manage -updates by using the appropriate git commands. npm will stubbornly -refuse to update, modify, or remove anything with a `.git` subfolder -in it. - -This command also does not install missing dependencies, if the package -does not include them in its git repository. If `npm ls` reports that -things are missing, you can either install, link, or submodule them yourself, -or you can do `npm explore <pkgname> -- npm install` to install the -dependencies into the submodule folder. - -## SEE ALSO - -* npm help json -* git help submodule
  81. Download patch doc/api/npm-bugs.md

    --- 1.4.21+ds-2/doc/api/npm-bugs.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-bugs.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -npm-bugs(3) -- Bugs for a package in a web browser maybe -======================================================== - -## SYNOPSIS - - npm.commands.bugs(package, callback) - -## DESCRIPTION - -This command tries to guess at the likely location of a package's -bug tracker URL, and then tries to open it using the `--browser` -config param. - -Like other commands, the first parameter is an array. This command only -uses the first element, which is expected to be a package name with an -optional version number. - -This command will launch a browser, so this command may not be the most -friendly for programmatic use.
  82. Download patch bin/npm.cmd

    --- 1.4.21+ds-2/bin/npm.cmd 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/npm.cmd 2015-12-07 16:00:46.000000000 +0000 @@ -1,6 +1,19 @@ :: Created by npm, please don't edit manually. -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %* -) ELSE ( - node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %* +@ECHO OFF + +SETLOCAL + +SET "NODE_EXE=%~dp0\node.exe" +IF NOT EXIST "%NODE_EXE%" ( + SET "NODE_EXE=node" ) + +SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js" +FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO ( + SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js" +) +IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" ( + SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%" +) + +"%NODE_EXE%" "%NPM_CLI_JS%" %*
  83. Download patch doc/api/npm-pack.md

    --- 1.4.21+ds-2/doc/api/npm-pack.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-pack.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -npm-pack(3) -- Create a tarball from a package -============================================== - -## SYNOPSIS - - npm.commands.pack([packages,] callback) - -## DESCRIPTION - -For anything that's installable (that is, a package folder, tarball, -tarball url, name@tag, name@version, or name), this command will fetch -it to the cache, and then copy the tarball to the current working -directory as `<name>-<version>.tgz`, and then write the filenames out to -stdout. - -If the same package is specified multiple times, then the file will be -overwritten the second time. - -If no arguments are supplied, then npm packs the current package folder.
  84. Download patch AUTHORS
  85. Download patch doc/cli/npm-install-test.md

    --- 1.4.21+ds-2/doc/cli/npm-install-test.md 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-install-test.md 2015-12-07 16:00:46.000000000 +0000 @@ -0,0 +1,25 @@ +# npm install-test(1) -- Install package(s) and run tests + +## SYNOPSIS + + npm install-test (with no args, in package dir) + npm install-test [<@scope>/]<name> + npm install-test [<@scope>/]<name>@<tag> + npm install-test [<@scope>/]<name>@<version> + npm install-test [<@scope>/]<name>@<version range> + npm install-test <tarball file> + npm install-test <tarball url> + npm install-test <folder> + + alias: npm it + common options: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run] + +## DESCRIPTION + +This command runs an `npm install` followed immediately by an `npm test`. It +takes exactly the same arguments as `npm install`. + +## SEE ALSO + +- npm-install(1) +- npm-test(1)
  86. Download patch doc/api/npm-outdated.md

    --- 1.4.21+ds-2/doc/api/npm-outdated.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-outdated.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -npm-outdated(3) -- Check for outdated packages -============================================== - -## SYNOPSIS - - npm.commands.outdated([packages,] callback) - -## DESCRIPTION - -This command will check the registry to see if the specified packages are -currently outdated. - -If the 'packages' parameter is left out, npm will check all packages.
  87. Download patch doc/cli/npm-prune.md

    --- 1.4.21+ds-2/doc/cli/npm-prune.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-prune.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,8 +3,7 @@ npm-prune(1) -- Remove extraneous packag ## SYNOPSIS - npm prune [<name> [<name ...]] - npm prune [<name> [<name ...]] [--production] + npm prune [[<@scope>/]<pkg>...] [--production] ## DESCRIPTION @@ -15,11 +14,13 @@ removed. Extraneous packages are packages that are not listed on the parent package's dependencies list. -If the `--production` flag is specified, this command will remove the -packages specified in your `devDependencies`. +If the `--production` flag is specified or the `NODE_ENV` environment +variable is set to `production`, this command will remove the packages +specified in your `devDependencies`. Setting `--production=false` will +negate `NODE_ENV` being set to `production`. ## SEE ALSO -* npm-rm(1) +* npm-uninstall(1) * npm-folders(5) * npm-ls(1)
  88. Download patch doc/cli/npm-ls.md

    --- 1.4.21+ds-2/doc/cli/npm-ls.md 2015-12-08 18:08:06.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-ls.md 2015-12-08 18:08:06.000000000 +0000 @@ -3,10 +3,9 @@ npm-ls(1) -- List installed packages ## SYNOPSIS - npm list [<pkg> ...] - npm ls [<pkg> ...] - npm la [<pkg> ...] - npm ll [<pkg> ...] + npm ls [[<@scope>/]<pkg> ...] + + aliases: list, la, ll ## DESCRIPTION @@ -28,6 +27,9 @@ If a project specifies git urls for depe in parentheses after the name@version to make it easier for users to recognize potential forks of a project. +The tree shown is the logical dependency tree, based on package +dependencies, not the physical layout of your node_modules folder. + When run as `ll` or `la`, it shows extended information by default. ## CONFIGURATION @@ -67,6 +69,28 @@ project. Max display depth of the dependency tree. +### prod / production + +* Type: Boolean +* Default: false + +Display only the dependency tree for packages in `dependencies`. + +### dev + +* Type: Boolean +* Default: false + +Display only the dependency tree for packages in `devDependencies`. + +### only + +* Type: String + +When "dev" or "development", is an alias to `dev`. + +When "prod" or "production", is an alias to `production`.` + ## SEE ALSO * npm-config(1)
  89. Download patch doc/api/npm-owner.md

    --- 1.4.21+ds-2/doc/api/npm-owner.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-owner.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -npm-owner(3) -- Manage package owners -===================================== - -## SYNOPSIS - - npm.commands.owner(args, callback) - -## DESCRIPTION - -The first element of the 'args' parameter defines what to do, and the subsequent -elements depend on the action. Possible values for the action are (order of -parameters are given in parenthesis): - -* ls (package): - List all the users who have access to modify a package and push new versions. - Handy when you need to know who to bug for help. -* add (user, package): - Add a new user as a maintainer of a package. This user is enabled to modify - metadata, publish new versions, and add other owners. -* rm (user, package): - Remove a user from the package owner list. This immediately revokes their - privileges. - -Note that there is only one level of access. Either you can modify a package, -or you can't. Future versions may contain more fine-grained access levels, but -that is not implemented at this time. - -## SEE ALSO - -* npm-publish(3) -* npm-registry(7)
  90. Download patch doc/cli/npm-build.md

    --- 1.4.21+ds-2/doc/cli/npm-build.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-build.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-build(1) -- Build a package ## SYNOPSIS - npm build <package-folder> + npm build [<package-folder>] * `<package-folder>`: A folder containing a `package.json` file in its root. @@ -12,7 +12,10 @@ npm-build(1) -- Build a package This is the plumbing command called by `npm link` and `npm install`. -It should generally not be called directly. +It should generally be called during installation, but if you need to run it +directly, run: + + npm run-script build ## SEE ALSO
  91. Download patch bin/read-package-json.js

    --- 1.4.21+ds-2/bin/read-package-json.js 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/read-package-json.js 2015-12-07 16:00:46.000000000 +0000 @@ -1,22 +1,24 @@ var argv = process.argv if (argv.length < 3) { - console.error("Usage: read-package.json <file> [<fields> ...]") + console.error('Usage: read-package.json <file> [<fields> ...]') process.exit(1) } -var fs = require("fs") - , file = argv[2] - , readJson = require("read-package-json") +var file = argv[2] +var readJson = require('read-package-json') readJson(file, function (er, data) { if (er) throw er - if (argv.length === 3) console.log(data) - else argv.slice(3).forEach(function (field) { - field = field.split(".") - var val = data - field.forEach(function (f) { - val = val[f] + if (argv.length === 3) { + console.log(data) + } else { + argv.slice(3).forEach(function (field) { + field = field.split('.') + var val = data + field.forEach(function (f) { + val = val[f] + }) + console.log(val) }) - console.log(val) - }) + } })
  92. Download patch bin/node-gyp-bin/node-gyp

    --- 1.4.21+ds-2/bin/node-gyp-bin/node-gyp 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/bin/node-gyp-bin/node-gyp 2015-12-07 16:00:46.000000000 +0000 @@ -1,2 +1,6 @@ #!/usr/bin/env sh -node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@" +if [ "x$npm_config_node_gyp" = "x" ]; then + node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@" +else + "$npm_config_node_gyp" "$@" +fi
  93. Download patch doc/cli/npm-docs.md

    --- 1.4.21+ds-2/doc/cli/npm-docs.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-docs.md 2015-12-07 16:00:46.000000000 +0000 @@ -4,9 +4,9 @@ npm-docs(1) -- Docs for a package in a w ## SYNOPSIS npm docs [<pkgname> [<pkgname> ...]] - npm docs (with no args in a package dir) + npm docs . npm home [<pkgname> [<pkgname> ...]] - npm home (with no args in a package dir) + npm home . ## DESCRIPTION
  94. Download patch doc/cli/npm-ping.md

    --- 1.4.21+ds-2/doc/cli/npm-ping.md 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-ping.md 2015-12-07 16:00:46.000000000 +0000 @@ -0,0 +1,16 @@ +npm-ping(1) -- Ping npm registry +================================ + +## SYNOPSIS + + npm ping [--registry <registry>] + +## DESCRIPTION + +Ping the configured or given npm registry and verify authentication. + +## SEE ALSO + +* npm-config(1) +* npm-config(7) +* npmrc(5)
  95. Download patch doc/cli/npm-outdated.md

    --- 1.4.21+ds-2/doc/cli/npm-outdated.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/cli/npm-outdated.md 2015-12-07 16:00:46.000000000 +0000 @@ -3,7 +3,7 @@ npm-outdated(1) -- Check for outdated pa ## SYNOPSIS - npm outdated [<name> [<name> ...]] + npm outdated [[<@scope>/]<pkg> ...] ## DESCRIPTION
  96. Download patch debian/patches/2001_unicode_in_md.patch

    --- 1.4.21+ds-2/debian/patches/2001_unicode_in_md.patch 2014-07-28 23:40:58.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2001_unicode_in_md.patch 2015-12-07 18:23:44.000000000 +0000 @@ -4,9 +4,11 @@ Description: keep md files ascii Author: Jérémy Lal <kapouer@melix.org> Forwarded: not-needed Last-Update: 2014-07-29 ---- a/doc/cli/npm-ls.md -+++ b/doc/cli/npm-ls.md -@@ -19,8 +19,8 @@ +Index: npm/doc/cli/npm-ls.md +=================================================================== +--- npm.orig/doc/cli/npm-ls.md ++++ npm/doc/cli/npm-ls.md +@@ -18,8 +18,8 @@ nested packages will *also* show the pat For example, running `npm ls promzard` in npm's source tree will show: npm@@VERSION@ /path/to/npm @@ -17,16 +19,18 @@ Last-Update: 2014-07-29 It will print out extraneous, missing, and invalid packages. ---- a/doc/files/package.json.md -+++ b/doc/files/package.json.md -@@ -427,8 +427,8 @@ - installed if needed. `npm install tea-latte` could possibly yield the following - dependency graph: +Index: npm/doc/files/package.json.md +=================================================================== +--- npm.orig/doc/files/package.json.md ++++ npm/doc/files/package.json.md +@@ -548,8 +548,8 @@ This ensures your package `tea-latte` ca + major version of the host package `tea` only. `npm install tea-latte` could + possibly yield the following dependency graph: - ├── tea-latte@1.3.5 - └── tea@2.2.0 + |-- tea-latte@1.3.5 + |-- tea@2.2.0 - Trying to install another plugin with a conflicting requirement will cause an - error. For this reason, make sure your plugin requirement is as broad as + **NOTE: npm versions 1 and 2 will automatically install `peerDependencies` if + they are not explicitly depended upon higher in the dependency tree. In the
  97. Download patch doc/api/npm-docs.md

    --- 1.4.21+ds-2/doc/api/npm-docs.md 2014-07-15 00:28:29.000000000 +0000 +++ 3.5.2-0ubuntu4/doc/api/npm-docs.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -npm-docs(3) -- Docs for a package in a web browser maybe -======================================================== - -## SYNOPSIS - - npm.commands.docs(package, callback) - -## DESCRIPTION - -This command tries to guess at the likely location of a package's -documentation URL, and then tries to open it using the `--browser` -config param. - -Like other commands, the first parameter is an array. This command only -uses the first element, which is expected to be a package name with an -optional version number. - -This command will launch a browser, so this command may not be the most -friendly for programmatic use.
  98. Download patch debian/copyright_hints
  99. Download patch debian/patches/2009_privacy_breach_travis.patch

    --- 1.4.21+ds-2/debian/patches/2009_privacy_breach_travis.patch 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.2-0ubuntu4/debian/patches/2009_privacy_breach_travis.patch 2015-12-07 18:23:44.000000000 +0000 @@ -0,0 +1,17 @@ +Description: remove remote image from README.md to avoid privacy breach + The README.md is converted to html and is part of the installed docs. +Forwarded: not-needed +Author: Jérémy Lal <kapouer@melix.org> +Last-Update: 2014-07-29 +Index: npm/README.md +=================================================================== +--- npm.orig/README.md ++++ npm/README.md +@@ -1,6 +1,6 @@ + npm(1) -- a JavaScript package manager + ============================== +-[![Build Status](https://img.shields.io/travis/npm/npm/master.svg)](https://travis-ci.org/npm/npm) ++[Build Status](https://travis-ci.org/npm/npm) + ## SYNOPSIS + + This is just enough info to get you up and running.
  100. Download patch cli.js

    --- 1.4.21+ds-2/cli.js 2015-12-08 18:08:06.000000000 +0000 +++ 3.5.2-0ubuntu4/cli.js 2015-12-08 18:08:06.000000000 +0000 @@ -1,2 +1,2 @@ #!/usr/bin/nodejs -require("./bin/npm-cli.js") +require('./bin/npm-cli.js')
  101. ...

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: plexus-velocity

plexus-velocity (1.2-2ubuntu1) artful; urgency=medium * debian/control: Add build dependency on junit4 to fix FTBFS. -- Logan Rosen <logan@ubuntu.com> Wed, 02 Aug 2017 22:44:05 -0700

Modifications :
  1. Download patch debian/control

    --- 1.2-2/debian/control 2017-07-24 21:35:25.000000000 +0000 +++ 1.2-2ubuntu1/debian/control 2017-08-03 05:44:05.000000000 +0000 @@ -1,7 +1,8 @@ Source: plexus-velocity Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Ludovic Claude <ludovic.claude@laposte.net>, Emmanuel Bourg <ebourg@apache.org> @@ -11,6 +12,7 @@ Build-Depends: maven-debian-helper (>= 2.0) Build-Depends-Indep: default-jdk-doc, + junit4, libcommons-collections3-java, libcommons-collections3-java-doc, libmaven-javadoc-plugin-java,

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: service-wrapper-java

service-wrapper-java (3.5.30-1ubuntu1) artful; urgency=medium * Fix as-needed linking in ppc64el and s390x per-arch Makefiles too. -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 20 Jun 2017 11:23:08 +0100

Modifications :
  1. Download patch src/c/Makefile-linux-s390x-64.make

    --- 3.5.30-1/src/c/Makefile-linux-s390x-64.make 2017-06-20 12:42:23.000000000 +0000 +++ 3.5.30-1ubuntu1/src/c/Makefile-linux-s390x-64.make 2017-06-20 12:42:23.000000000 +0000 @@ -34,7 +34,7 @@ init: if test ! -d .deps; then mkdir .deps; fi wrapper: $(wrapper_SOURCE) - $(COMPILE) -lm -pthread $(wrapper_SOURCE) $(LDFLAGS) -o $(BIN)/wrapper + $(COMPILE) -pthread $(wrapper_SOURCE) $(LDFLAGS) -lm -o $(BIN)/wrapper libwrapper.so: $(libwrapper_so_OBJECTS) ${COMPILE} -shared $(libwrapper_so_OBJECTS) $(LDFLAGS) -o $(LIB)/libwrapper.so
  2. Download patch debian/control

    --- 3.5.30-1/debian/control 2016-12-19 12:28:39.000000000 +0000 +++ 3.5.30-1ubuntu1/debian/control 2017-06-20 10:23:46.000000000 +0000 @@ -1,7 +1,8 @@ Source: service-wrapper-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: tony mancill <tmancill@debian.org>, Rémi Debay <debay.remi@gmail.com>
  3. Download patch .pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-ppcle-64.make

    --- 3.5.30-1/.pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-ppcle-64.make 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.30-1ubuntu1/.pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-ppcle-64.make 2016-07-12 02:15:19.000000000 +0000 @@ -0,0 +1,48 @@ +# Copyright (c) 1999, 2016 Tanuki Software, Ltd. +# http://www.tanukisoftware.com +# All rights reserved. +# +# This software is the proprietary information of Tanuki Software. +# You shall use it only in accordance with the terms of the +# license agreement you entered into with Tanuki Software. +# http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html + +COMPILE = gcc -O3 -m64 -fPIC -Wall --pedantic -DLINUX -DJSW64 -D_FILE_OFFSET_BITS=64 -fpic -D_GNU_SOURCE -DUNICODE -D_UNICODE + +INCLUDE=$(JAVA_HOME)/include + +DEFS = -I$(INCLUDE) -I$(INCLUDE)/linux + +wrapper_SOURCE = wrapper.c wrapperinfo.c wrappereventloop.c wrapper_unix.c property.c logger.c logger_file.c wrapper_file.c wrapper_i18n.c wrapper_hashmap.c + +libwrapper_so_OBJECTS = wrapper_i18n.o wrapperjni_unix.o wrapperinfo.o wrapperjni.o loggerjni.o + +BIN = ../../bin +LIB = ../../lib + +all: init wrapper libwrapper.so + +clean: + rm -f *.o + +cleanall: clean + rm -rf *~ .deps + rm -f $(BIN)/wrapper $(LIB)/libwrapper.so + +init: + if test ! -d .deps; then mkdir .deps; fi + +wrapper: $(wrapper_SOURCE) + $(COMPILE) -lm -pthread $(wrapper_SOURCE) -o $(BIN)/wrapper + +libwrapper.so: $(libwrapper_so_OBJECTS) + ${COMPILE} -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so + +%.o: %.c + @echo '$(COMPILE) -c $<'; \ + $(COMPILE) $(DEFS) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp
  4. Download patch .pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-s390x-64.make

    --- 3.5.30-1/.pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-s390x-64.make 1970-01-01 00:00:00.000000000 +0000 +++ 3.5.30-1ubuntu1/.pc/fix-as-needed-ppc.patch/src/c/Makefile-linux-s390x-64.make 2017-06-20 12:42:23.000000000 +0000 @@ -0,0 +1,49 @@ + +# Copyright (c) 1999, 2013 Tanuki Software, Ltd. +# http://www.tanukisoftware.com +# All rights reserved. +# +# This software is the proprietary information of Tanuki Software. +# You shall use it only in accordance with the terms of the +# license agreement you entered into with Tanuki Software. +# http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html + +COMPILE = gcc -O3 -m64 -fPIC -Wall --pedantic -DLINUX -DJSW64 -D_FILE_OFFSET_BITS=64 -fpic -D_GNU_SOURCE -DUNICODE -D_UNICODE + +INCLUDE=$(JAVA_HOME)/include + +DEFS = -I$(INCLUDE) -I$(INCLUDE)/linux + +wrapper_SOURCE = wrapper.c wrapperinfo.c wrappereventloop.c wrapper_unix.c property.c logger.c logger_file.c wrapper_file.c wrapper_i18n.c wrapper_hashmap.c + +libwrapper_so_OBJECTS = wrapper_i18n.o wrapperjni_unix.o wrapperinfo.o wrapperjni.o loggerjni.o + +BIN = ../../bin +LIB = ../../lib + +all: init wrapper libwrapper.so + +clean: + rm -f *.o + +cleanall: clean + rm -rf *~ .deps + rm -f $(BIN)/wrapper $(LIB)/libwrapper.so + +init: + if test ! -d .deps; then mkdir .deps; fi + +wrapper: $(wrapper_SOURCE) + $(COMPILE) -lm -pthread $(wrapper_SOURCE) $(LDFLAGS) -o $(BIN)/wrapper + +libwrapper.so: $(libwrapper_so_OBJECTS) + ${COMPILE} -shared $(libwrapper_so_OBJECTS) $(LDFLAGS) -o $(LIB)/libwrapper.so + +%.o: %.c + @echo '$(COMPILE) -c $<'; \ + $(COMPILE) $(DEFS) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp
  5. Download patch debian/patches/fix-as-needed-ppc.patch

    --- 3.5.30-1/debian/patches/fix-as-needed-ppc.patch 2016-12-19 12:17:55.000000000 +0000 +++ 3.5.30-1ubuntu1/debian/patches/fix-as-needed-ppc.patch 2017-06-20 10:22:53.000000000 +0000 @@ -3,10 +3,9 @@ Description: Fix FTBFS on ppc: Author: Andreas Moog <amoog@ubuntu.com> Bug: https://sourceforge.net/p/wrapper/bugs/285/ -diff -pruN -x '*~' wrapper_3.5.25_src.orig/src/c/Makefile-linux-ppc-32.make wrapper_3.5.25_src/src/c/Makefile-linux-ppc-32.make ---- wrapper_3.5.25_src.orig/src/c/Makefile-linux-ppc-32.make 2015-01-04 01:21:32.915068936 +0100 -+++ wrapper_3.5.25_src/src/c/Makefile-linux-ppc-32.make 2015-01-04 01:23:18.271591362 +0100 -@@ -33,7 +33,7 @@ init: +--- a/src/c/Makefile-linux-ppc-32.make ++++ b/src/c/Makefile-linux-ppc-32.make +@@ -33,7 +33,7 @@ if test ! -d .deps; then mkdir .deps; fi wrapper: $(wrapper_SOURCE) @@ -15,10 +14,9 @@ diff -pruN -x '*~' wrapper_3.5.25_src.or libwrapper.so: $(libwrapper_so_OBJECTS) ${COMPILE} -shared $(LDFLAGS) $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so -diff -pruN -x '*~' wrapper_3.5.25_src.orig/src/c/Makefile-linux-ppc-64.make wrapper_3.5.25_src/src/c/Makefile-linux-ppc-64.make ---- wrapper_3.5.25_src.orig/src/c/Makefile-linux-ppc-64.make 2015-01-04 01:21:32.915068936 +0100 -+++ wrapper_3.5.25_src/src/c/Makefile-linux-ppc-64.make 2015-01-04 01:23:02.287512123 +0100 -@@ -33,7 +33,7 @@ init: +--- a/src/c/Makefile-linux-ppc-64.make ++++ b/src/c/Makefile-linux-ppc-64.make +@@ -33,7 +33,7 @@ if test ! -d .deps; then mkdir .deps; fi wrapper: $(wrapper_SOURCE) @@ -27,3 +25,25 @@ diff -pruN -x '*~' wrapper_3.5.25_src.or libwrapper.so: $(libwrapper_so_OBJECTS) ${COMPILE} -shared $(LDFLAGS) $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so +--- a/src/c/Makefile-linux-ppcle-64.make ++++ b/src/c/Makefile-linux-ppcle-64.make +@@ -33,7 +33,7 @@ + if test ! -d .deps; then mkdir .deps; fi + + wrapper: $(wrapper_SOURCE) +- $(COMPILE) -lm -pthread $(wrapper_SOURCE) -o $(BIN)/wrapper ++ $(COMPILE) -pthread $(wrapper_SOURCE) -lm -o $(BIN)/wrapper + + libwrapper.so: $(libwrapper_so_OBJECTS) + ${COMPILE} -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so +--- a/src/c/Makefile-linux-s390x-64.make ++++ b/src/c/Makefile-linux-s390x-64.make +@@ -34,7 +34,7 @@ + if test ! -d .deps; then mkdir .deps; fi + + wrapper: $(wrapper_SOURCE) +- $(COMPILE) -lm -pthread $(wrapper_SOURCE) $(LDFLAGS) -o $(BIN)/wrapper ++ $(COMPILE) -pthread $(wrapper_SOURCE) $(LDFLAGS) -lm -o $(BIN)/wrapper + + libwrapper.so: $(libwrapper_so_OBJECTS) + ${COMPILE} -shared $(libwrapper_so_OBJECTS) $(LDFLAGS) -o $(LIB)/libwrapper.so
  6. Download patch src/c/Makefile-linux-ppcle-64.make

    --- 3.5.30-1/src/c/Makefile-linux-ppcle-64.make 2016-07-12 02:15:19.000000000 +0000 +++ 3.5.30-1ubuntu1/src/c/Makefile-linux-ppcle-64.make 2017-06-20 12:42:23.000000000 +0000 @@ -33,7 +33,7 @@ init: if test ! -d .deps; then mkdir .deps; fi wrapper: $(wrapper_SOURCE) - $(COMPILE) -lm -pthread $(wrapper_SOURCE) -o $(BIN)/wrapper + $(COMPILE) -pthread $(wrapper_SOURCE) -lm -o $(BIN)/wrapper libwrapper.so: $(libwrapper_so_OBJECTS) ${COMPILE} -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: sikulix

sikulix (1.1.0-2ubuntu1) artful; urgency=medium * Have libsikulixapi-java depend on libopencv3.1-java instead of 2.4. -- Mattia Rizzolo <mapreri@ubuntu.com> Sat, 24 Jun 2017 14:19:42 +0200 sikulix (1.1.0-2build1) artful; urgency=medium * No-change rebuild against OpenCV 3.1. -- Mattia Rizzolo <mapreri@ubuntu.com> Tue, 20 Jun 2017 14:16:01 +0200

Modifications :
  1. Download patch debian/control

    --- 1.1.0-2/debian/control 2016-11-28 22:29:01.000000000 +0000 +++ 1.1.0-2ubuntu1/debian/control 2017-06-24 12:19:42.000000000 +0000 @@ -1,7 +1,8 @@ Source: sikulix Section: java Priority: extra -Maintainer: Debian Java maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Gilles Filippini <pini@debian.org> Build-Depends: debhelper (>= 9~), cdbs, default-jdk (>= 2:1.7) , maven-debian-helper, libmaven-exec-plugin-java, libmaven-source-plugin-java @@ -45,7 +46,7 @@ Replaces: libsikuli-script-java (<< 1.1. Breaks: libsikuli-script-java (<< 1.1.0~) Depends: ${maven:Depends}, ${misc:Depends}, default-jre (>= 2:1.7) | java6-runtime, libsikulixapi-jni (>= ${binary:Version}), libsikulixapi-jni (<< ${source:Version}+), jython (>= 2.5.3-12), wmctrl, xdotool, tesseract-ocr-eng # These ones miss maven integration - , libcommons-exec-java, libopencv2.4-java + , libcommons-exec-java, libopencv3.1-java # The script sikuli2html.py needs python , python # RunTime.java needs commands lsb-release and killall

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: tomcat8

tomcat8 (8.0.38-2ubuntu2) zesty; urgency=medium * Fix an upgrade error when JAVA_OPTS in /etc/default/tomcat8 contains the '%' character (LP: #1666570). -- Joshua Powers <josh.powers@canonical.com> Tue, 28 Mar 2017 16:47:32 -0700 tomcat8 (8.0.38-2ubuntu1) zesty; urgency=medium * SECURITY UPDATE: HTTP response injection via invalid characters - debian/patches/CVE-2016-6816.patch: add additional checks for valid characters in java/org/apache/coyote/http11/AbstractInputBuffer.java, java/org/apache/coyote/http11/AbstractNioInputBuffer.java, java/org/apache/coyote/http11/InternalAprInputBuffer.java, java/org/apache/coyote/http11/InternalInputBuffer.java, java/org/apache/coyote/http11/LocalStrings.properties, java/org/apache/tomcat/util/http/parser/HttpParser.java. - CVE-2016-6816 * SECURITY UPDATE: remote code execution via JmxRemoteLifecycleListener - debian/patches/CVE-2016-8735.patch: explicitly configure allowed credential types in java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java. - CVE-2016-8735 * SECURITY UPDATE: information leakage between requests - debian/patches/CVE-2016-8745.patch: properly handle cache when unable to complete sendfile request in java/org/apache/tomcat/util/net/NioEndpoint.java. - CVE-2016-8745 * SECURITY UPDATE: privilege escalation during package upgrade - debian/rules, debian/tomcat8.postinst: properly set permissions on /etc/tomcat8/Catalina/localhost. - CVE-2016-9774 * SECURITY UPDATE: privilege escalation during package removal - debian/tomcat8.postrm.in: don't reset permissions before removing user. - CVE-2016-9775 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 15 Feb 2017 08:38:11 -0500

Modifications :
  1. Download patch java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java

    --- 8.0.38-2/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java 2015-12-18 15:13:10.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java 2017-04-11 04:40:22.000000000 +0000 @@ -264,6 +264,10 @@ public class JmxRemoteLifecycleListener serverCsf = new RmiClientLocalhostSocketFactory(serverCsf); } + env.put("jmx.remote.rmi.server.credential.types", new String[] { + String[].class.getName(), + String.class.getName() }); + // Populate the env properties used to create the server if (serverCsf != null) { env.put(RMIConnectorServer.RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTE, serverCsf); @@ -328,7 +332,7 @@ public class JmxRemoteLifecycleListener cs = new RMIConnectorServer(serviceUrl, theEnv, server, ManagementFactory.getPlatformMBeanServer()); cs.start(); - registry.bind("jmxrmi", server); + registry.bind("jmxrmi", server.toStub()); log.info(sm.getString("jmxRemoteLifecycleListener.start", Integer.toString(theRmiRegistryPort), Integer.toString(theRmiServerPort), serverName));
  2. Download patch .pc/CVE-2016-8735.patch/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
  3. Download patch .pc/CVE-2016-6816.patch/java/org/apache/tomcat/util/http/parser/HttpParser.java
  4. Download patch .pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/InternalAprInputBuffer.java
  5. Download patch java/org/apache/coyote/http11/AbstractNioInputBuffer.java

    --- 8.0.38-2/java/org/apache/coyote/http11/AbstractNioInputBuffer.java 2016-05-13 10:29:03.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/coyote/http11/AbstractNioInputBuffer.java 2017-04-11 04:40:22.000000000 +0000 @@ -21,6 +21,7 @@ import java.nio.charset.StandardCharsets import org.apache.coyote.Request; import org.apache.tomcat.util.buf.MessageBytes; +import org.apache.tomcat.util.http.parser.HttpParser; public abstract class AbstractNioInputBuffer<S> extends AbstractInputBuffer<S> { @@ -228,7 +229,7 @@ public abstract class AbstractNioInputBu if (buf[pos] == Constants.SP || buf[pos] == Constants.HT) { space = true; request.method().setBytes(buf, parsingRequestLineStart, pos - parsingRequestLineStart); - } else if (!HTTP_TOKEN_CHAR[buf[pos]]) { + } else if (!HttpParser.isToken(buf[pos])) { throw new IllegalArgumentException(sm.getString("iib.invalidmethod")); } pos++; @@ -276,9 +277,10 @@ public abstract class AbstractNioInputBu parsingRequestLineEol = true; space = true; end = pos; - } else if ((buf[pos] == Constants.QUESTION) - && (parsingRequestLineQPos == -1)) { + } else if ((buf[pos] == Constants.QUESTION) && (parsingRequestLineQPos == -1)) { parsingRequestLineQPos = pos; + } else if (HttpParser.isNotRequestTarget(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidRequestTarget")); } pos++; } @@ -315,7 +317,7 @@ public abstract class AbstractNioInputBu if (parsingRequestLinePhase == 6) { // // Reading the protocol - // Protocol is always US-ASCII + // Protocol is always "HTTP/" DIGIT "." DIGIT // while (!parsingRequestLineEol) { // Read new bytes if needed @@ -330,6 +332,8 @@ public abstract class AbstractNioInputBu if (end == 0) end = pos; parsingRequestLineEol = true; + } else if (!HttpParser.isHttpProtocol(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidHttpProtocol")); } pos++; } @@ -470,7 +474,7 @@ public abstract class AbstractNioInputBu headerData.realPos = pos; headerData.lastSignificantChar = pos; break; - } else if (chr < 0 || !HTTP_TOKEN_CHAR[chr]) { + } else if (!HttpParser.isToken(chr)) { // If a non-token header is detected, skip the line and // ignore the header headerData.lastSignificantChar = pos;
  6. Download patch debian/rules

    --- 8.0.38-2/debian/rules 2016-10-26 12:29:04.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/rules 2017-04-10 18:59:52.000000000 +0000 @@ -53,6 +53,13 @@ override_dh_install-indep: jh_manifest +override_dh_fixperms: + dh_fixperms + # Make the/etc/tomcat8/Catalina/localhost directory writable by the tomcat user + for PACKAGE in tomcat8 tomcat8-admin tomcat8-docs tomcat8-examples; do \ + chmod 775 --verbose debian/$$PACKAGE/etc/tomcat8/Catalina/localhost; \ + done + override_dh_auto_clean: dh_auto_clean -$(ANT) clean
  7. Download patch .pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/AbstractInputBuffer.java
  8. Download patch .pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/InternalInputBuffer.java
  9. Download patch java/org/apache/coyote/http11/LocalStrings.properties

    --- 8.0.38-2/java/org/apache/coyote/http11/LocalStrings.properties 2016-05-13 10:29:03.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/coyote/http11/LocalStrings.properties 2017-04-11 04:40:22.000000000 +0000 @@ -33,8 +33,10 @@ iib.available.readFail=A non-blocking re iib.eof.error=Unexpected EOF read on the socket iib.failedread.apr=Read failed with APR/native error code [{0}] iib.filter.npe=You may not add a null filter -iib.invalidheader=The HTTP header line [{0}] does not conform to RFC 2616 and has been ignored. +iib.invalidheader=The HTTP header line [{0}] does not conform to RFC 7230 and has been ignored. iib.invalidmethod=Invalid character found in method name. HTTP method names must be tokens +iib.invalidRequestTarget=Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 +iib.invalidHttpProtocol=Invalid character found in the HTTP protocol iib.parseheaders.ise.error=Unexpected state: headers already parsed. Buffer not recycled? iib.readtimeout=Timeout attempting to read data from the socket iib.requestheadertoolarge.error=Request header is too large
  10. Download patch debian/control

    --- 8.0.38-2/debian/control 2016-10-26 12:44:26.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/control 2017-04-10 18:59:52.000000000 +0000 @@ -1,7 +1,8 @@ Source: tomcat8 Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: James Page <james.page@ubuntu.com>, Miguel Landaeta <nomadium@debian.org>, tony mancill <tmancill@debian.org>,
  11. Download patch .pc/applied-patches

    --- 8.0.38-2/.pc/applied-patches 2017-04-11 04:40:21.521760796 +0000 +++ 8.0.38-2ubuntu2/.pc/applied-patches 2017-04-11 04:40:22.213779692 +0000 @@ -9,3 +9,6 @@ 0015_disable_test_TestCometProcessor.patch 0018-fix-manager-webapp.patch 0019-add-distribution-to-error-page.patch +CVE-2016-6816.patch +CVE-2016-8735.patch +CVE-2016-8745.patch
  12. Download patch debian/patches/CVE-2016-8735.patch

    --- 8.0.38-2/debian/patches/CVE-2016-8735.patch 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/patches/CVE-2016-8735.patch 2017-04-10 18:59:52.000000000 +0000 @@ -0,0 +1,28 @@ +Description: fix remote code execution via JmxRemoteLifecycleListener +Origin: upstream, http://svn.apache.org/r1767656 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802312 + +Index: tomcat8-8.0.37/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java +=================================================================== +--- tomcat8-8.0.37.orig/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java 2015-12-18 10:13:10.000000000 -0500 ++++ tomcat8-8.0.37/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java 2017-01-13 11:51:35.406731419 -0500 +@@ -264,6 +264,10 @@ + serverCsf = new RmiClientLocalhostSocketFactory(serverCsf); + } + ++ env.put("jmx.remote.rmi.server.credential.types", new String[] { ++ String[].class.getName(), ++ String.class.getName() }); ++ + // Populate the env properties used to create the server + if (serverCsf != null) { + env.put(RMIConnectorServer.RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTE, serverCsf); +@@ -328,7 +332,7 @@ + cs = new RMIConnectorServer(serviceUrl, theEnv, server, + ManagementFactory.getPlatformMBeanServer()); + cs.start(); +- registry.bind("jmxrmi", server); ++ registry.bind("jmxrmi", server.toStub()); + log.info(sm.getString("jmxRemoteLifecycleListener.start", + Integer.toString(theRmiRegistryPort), + Integer.toString(theRmiServerPort), serverName));
  13. Download patch .pc/CVE-2016-8745.patch/java/org/apache/tomcat/util/net/NioEndpoint.java
  14. Download patch .pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/AbstractNioInputBuffer.java
  15. Download patch java/org/apache/tomcat/util/http/parser/HttpParser.java

    --- 8.0.38-2/java/org/apache/tomcat/util/http/parser/HttpParser.java 2016-03-05 18:28:27.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/tomcat/util/http/parser/HttpParser.java 2017-04-11 04:40:22.000000000 +0000 @@ -34,33 +34,58 @@ import java.io.StringReader; */ public class HttpParser { - // Arrays used by isToken(), isHex() - private static final boolean isToken[] = new boolean[128]; - private static final boolean isHex[] = new boolean[128]; + private static final int ARRAY_SIZE = 128; + + private static final boolean[] IS_CONTROL = new boolean[ARRAY_SIZE]; + private static final boolean[] IS_SEPARATOR = new boolean[ARRAY_SIZE]; + private static final boolean[] IS_TOKEN = new boolean[ARRAY_SIZE]; + private static final boolean[] IS_HEX = new boolean[ARRAY_SIZE]; + private static final boolean[] IS_NOT_REQUEST_TARGET = new boolean[ARRAY_SIZE]; + private static final boolean[] IS_HTTP_PROTOCOL = new boolean[ARRAY_SIZE]; static { - // Setup the flag arrays - for (int i = 0; i < 128; i++) { - if (i <= 32) { // includes '\t' and ' ' - isToken[i] = false; - } else if (i == '(' || i == ')' || i == '<' || i == '>' || i == '@' || - i == ',' || i == ';' || i == ':' || i == '\\' || i == '\"' || - i == '/' || i == '[' || i == ']' || i == '?' || i == '=' || - i == '{' || i == '}') { - isToken[i] = false; - } else { - isToken[i] = true; + for (int i = 0; i < ARRAY_SIZE; i++) { + // Control> 0-31, 127 + if (i < 32 || i == 127) { + IS_CONTROL[i] = true; } - if (i >= '0' && i <= '9' || i >= 'A' && i <= 'F' || - i >= 'a' && i <= 'f') { - isHex[i] = true; - } else { - isHex[i] = false; + // Separator + if ( i == '(' || i == ')' || i == '<' || i == '>' || i == '@' || + i == ',' || i == ';' || i == ':' || i == '\\' || i == '\"' || + i == '/' || i == '[' || i == ']' || i == '?' || i == '=' || + i == '{' || i == '}' || i == ' ' || i == '\t') { + IS_SEPARATOR[i] = true; + } + + // Token: Anything 0-127 that is not a control and not a separator + if (!IS_CONTROL[i] && !IS_SEPARATOR[i] && i < 128) { + IS_TOKEN[i] = true; + } + + // Hex: 0-9, a-f, A-F + if ((i >= '0' && i <='9') || (i >= 'a' && i <= 'f') || (i >= 'A' && i <= 'F')) { + IS_HEX[i] = true; + } + + // Not valid for request target. + // Combination of multiple rules from RFC7230 and RFC 3986. Must be + // ASCII, no controls plus a few additional characters excluded + if (IS_CONTROL[i] || i > 127 || + i == ' ' || i == '\"' || i == '#' || i == '<' || i == '>' || i == '\\' || + i == '^' || i == '`' || i == '{' || i == '|' || i == '}') { + IS_NOT_REQUEST_TARGET[i] = true; + } + + // Not valid for HTTP protocol + // "HTTP/" DIGIT "." DIGIT + if (i == 'H' || i == 'T' || i == 'P' || i == '/' || i == '.' || (i >= '0' && i <= '9')) { + IS_HTTP_PROTOCOL[i] = true; } } } + public static String unquote(String input) { if (input == null || input.length() < 2) { return input; @@ -91,24 +116,49 @@ public class HttpParser { return result.toString(); } - static boolean isToken(int c) { + + public static boolean isToken(int c) { // Fast for correct values, slower for incorrect ones try { - return isToken[c]; + return IS_TOKEN[c]; } catch (ArrayIndexOutOfBoundsException ex) { return false; } } - static boolean isHex(int c) { - // Fast for correct values, slower for incorrect ones + + public static boolean isHex(int c) { + // Fast for correct values, slower for some incorrect ones try { - return isHex[c]; + return IS_HEX[c]; } catch (ArrayIndexOutOfBoundsException ex) { return false; } } + + public static boolean isNotRequestTarget(int c) { + // Fast for valid request target characters, slower for some incorrect + // ones + try { + return IS_NOT_REQUEST_TARGET[c]; + } catch (ArrayIndexOutOfBoundsException ex) { + return true; + } + } + + + public static boolean isHttpProtocol(int c) { + // Fast for valid HTTP protocol characters, slower for some incorrect + // ones + try { + return IS_HTTP_PROTOCOL[c]; + } catch (ArrayIndexOutOfBoundsException ex) { + return false; + } + } + + // Skip any LWS and return the next char static int skipLws(StringReader input, boolean withReset) throws IOException {
  16. Download patch debian/tomcat8.postrm.in

    --- 8.0.38-2/debian/tomcat8.postrm.in 2016-10-27 12:32:52.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/tomcat8.postrm.in 2017-04-10 18:59:52.000000000 +0000 @@ -64,9 +64,6 @@ case "$1" in /etc/tomcat8/Catalina/localhost /etc/tomcat8/Catalina /etc/tomcat8 # clean up /etc/authbind after conffiles have been removed rmdir --ignore-fail-on-non-empty /etc/authbind/byuid /etc/authbind - # Put all files owned by group tomcat8 back into root group before deleting - # the tomcat8 user and group - chown -Rhf root:root /etc/tomcat8/ || true # Remove user/group and log files (don't remove everything under # /var/lib/tomcat8 because there might be user-installed webapps) db_get tomcat8/username && TOMCAT8_USER="$RET" || TOMCAT8_USER="tomcat8"
  17. Download patch java/org/apache/tomcat/util/net/NioEndpoint.java

    --- 8.0.38-2/java/org/apache/tomcat/util/net/NioEndpoint.java 2016-05-04 13:28:30.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/tomcat/util/net/NioEndpoint.java 2017-04-11 04:40:22.000000000 +0000 @@ -1245,11 +1245,15 @@ public class NioEndpoint extends Abstrac } }catch ( IOException x ) { if ( log.isDebugEnabled() ) log.debug("Unable to complete sendfile request:", x); - cancelledKey(sk,SocketStatus.ERROR); + if (!calledByProcessor) { + cancelledKey(sk,SocketStatus.ERROR); + } return SendfileState.ERROR; }catch ( Throwable t ) { log.error("",t); - cancelledKey(sk, SocketStatus.ERROR); + if (!calledByProcessor) { + cancelledKey(sk, SocketStatus.ERROR); + } return SendfileState.ERROR; } }
  18. Download patch debian/patches/series

    --- 8.0.38-2/debian/patches/series 2016-10-19 07:17:34.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/patches/series 2017-04-10 18:59:52.000000000 +0000 @@ -11,3 +11,6 @@ 0018-fix-manager-webapp.patch 0019-add-distribution-to-error-page.patch #0020-disable-java8-support-with-jdtcompiler.patch +CVE-2016-6816.patch +CVE-2016-8735.patch +CVE-2016-8745.patch
  19. Download patch debian/tomcat8.postinst

    --- 8.0.38-2/debian/tomcat8.postinst 2016-10-19 07:17:34.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/tomcat8.postinst 2017-04-10 18:59:52.000000000 +0000 @@ -19,10 +19,11 @@ case "$1" in tmpfile=`mktemp /tmp/tomcat8.XXXXXXXXXX` chmod 644 $tmpfile + DELIM=$(printf '\001') cat $TEMPLATE \ | sed "s%^TOMCAT8_USER=.*$%TOMCAT8_USER=$TOMCAT8_USER%" \ | sed "s%^TOMCAT8_GROUP=.*$%TOMCAT8_GROUP=$TOMCAT8_GROUP%" \ - | sed "s%^JAVA_OPTS=.*$%JAVA_OPTS=\"$JAVA_OPTS\"%" \ + | sed "s${DELIM}^JAVA_OPTS=.*\$${DELIM}JAVA_OPTS=\"$JAVA_OPTS\"${DELIM}" \ >> $tmpfile ucf --debconf-ok --sum-file /usr/share/tomcat8/defaults.md5sum $tmpfile $CONFFILE rm -f $tmpfile @@ -69,7 +70,7 @@ case "$1" in chown -Rh $TOMCAT8_USER:$TOMCAT8_GROUP /var/lib/tomcat8/webapps /var/lib/tomcat8/lib chmod 775 /var/lib/tomcat8/webapps - chmod 775 /etc/tomcat8/Catalina /etc/tomcat8/Catalina/localhost + chmod 775 /etc/tomcat8/Catalina # Authorize user tomcat8 to open privileged ports via authbind. TOMCAT_UID="`id -u $TOMCAT8_USER`"
  20. Download patch java/org/apache/coyote/http11/InternalAprInputBuffer.java

    --- 8.0.38-2/java/org/apache/coyote/http11/InternalAprInputBuffer.java 2016-05-13 10:29:03.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/coyote/http11/InternalAprInputBuffer.java 2017-04-11 04:40:22.000000000 +0000 @@ -32,6 +32,7 @@ import org.apache.tomcat.jni.Socket; import org.apache.tomcat.jni.Status; import org.apache.tomcat.util.buf.ByteChunk; import org.apache.tomcat.util.buf.MessageBytes; +import org.apache.tomcat.util.http.parser.HttpParser; import org.apache.tomcat.util.net.AbstractEndpoint; import org.apache.tomcat.util.net.SocketWrapper; @@ -181,7 +182,7 @@ public class InternalAprInputBuffer exte if (buf[pos] == Constants.SP || buf[pos] == Constants.HT) { space = true; request.method().setBytes(buf, start, pos - start); - } else if (!HTTP_TOKEN_CHAR[buf[pos]]) { + } else if (!HttpParser.isToken(buf[pos])) { throw new IllegalArgumentException(sm.getString("iib.invalidmethod")); } @@ -232,9 +233,10 @@ public class InternalAprInputBuffer exte eol = true; space = true; end = pos; - } else if ((buf[pos] == Constants.QUESTION) - && (questionPos == -1)) { + } else if ((buf[pos] == Constants.QUESTION) && (questionPos == -1)) { questionPos = pos; + } else if (HttpParser.isNotRequestTarget(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidRequestTarget")); } pos++; @@ -270,7 +272,7 @@ public class InternalAprInputBuffer exte // // Reading the protocol - // Protocol is always US-ASCII + // Protocol is always "HTTP/" DIGIT "." DIGIT // while (!eol) { @@ -287,6 +289,8 @@ public class InternalAprInputBuffer exte if (end == 0) end = pos; eol = true; + } else if (!HttpParser.isHttpProtocol(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidHttpProtocol")); } pos++; @@ -385,7 +389,7 @@ public class InternalAprInputBuffer exte if (buf[pos] == Constants.COLON) { colon = true; headerValue = headers.addValue(buf, start, pos - start); - } else if (buf[pos] < 0 || !HTTP_TOKEN_CHAR[buf[pos]]) { + } else if (!HttpParser.isToken(buf[pos])) { // If a non-token header is detected, skip the line and // ignore the header skipLine(start);
  21. Download patch .pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/LocalStrings.properties

    --- 8.0.38-2/.pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/LocalStrings.properties 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.38-2ubuntu2/.pc/CVE-2016-6816.patch/java/org/apache/coyote/http11/LocalStrings.properties 2016-05-13 10:29:03.000000000 +0000 @@ -0,0 +1,48 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +http11processor.fallToDebug=\n Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. +http11processor.header.parse=Error parsing HTTP request header +http11processor.neverused=This method should never be used +http11processor.request.prepare=Error preparing request +http11processor.request.process=Error processing request +http11processor.request.finish=Error finishing request +http11processor.response.finish=Error finishing response +http11processor.socket.info=Exception getting socket information +http11processor.socket.ssl=Exception getting SSL attributes +http11processor.socket.sslreneg=Exception re-negotiating SSL connection +http11processor.comet.notsupported=The Comet protocol is not supported by this connector +http11processor.sendfile.error=Error sending data using sendfile. May be caused by invalid request attributes for start/end points +http11Processor.upgrade=An internal error has occurred as upgraded connections should only be processed by the dedicated upgrade processor implementations + +iib.apr.sslGeneralError=An APR general error was returned by the SSL read operation on APR/native socket [{0}] with wrapper [{1}]. It will be treated as EAGAIN and the socket returned to the poller. + +iib.available.readFail=A non-blocking read failed while attempting to determine if data was available +iib.eof.error=Unexpected EOF read on the socket +iib.failedread.apr=Read failed with APR/native error code [{0}] +iib.filter.npe=You may not add a null filter +iib.invalidheader=The HTTP header line [{0}] does not conform to RFC 2616 and has been ignored. +iib.invalidmethod=Invalid character found in method name. HTTP method names must be tokens +iib.parseheaders.ise.error=Unexpected state: headers already parsed. Buffer not recycled? +iib.readtimeout=Timeout attempting to read data from the socket +iib.requestheadertoolarge.error=Request header is too large +iib.socketClosed=The socket has been closed in another thread + +iob.failedwrite=Failed write +iob.failedwrite.ack=Failed to send HTTP 100 continue response +iob.illegalreset=The response may not be reset once it has been committed +iob.responseheadertoolarge.error=An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers. + +iob.nio2.nullSocket=Socket was null while trying to process exception. See Bug 57749 \ No newline at end of file
  22. Download patch java/org/apache/coyote/http11/AbstractInputBuffer.java

    --- 8.0.38-2/java/org/apache/coyote/http11/AbstractInputBuffer.java 2015-11-12 09:33:08.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/coyote/http11/AbstractInputBuffer.java 2017-04-11 04:40:22.000000000 +0000 @@ -30,62 +30,10 @@ import org.apache.tomcat.util.res.String public abstract class AbstractInputBuffer<S> implements InputBuffer{ - protected static final boolean[] HTTP_TOKEN_CHAR = new boolean[128]; - /** * The string manager for this package. */ - protected static final StringManager sm = - StringManager.getManager(Constants.Package); - - - static { - for (int i = 0; i < 128; i++) { - if (i < 32) { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == 127) { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '(') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ')') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '<') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '>') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '@') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ',') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ';') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ':') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '\\') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '\"') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '/') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '[') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ']') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '?') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '=') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '{') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == '}') { - HTTP_TOKEN_CHAR[i] = false; - } else if (i == ' ') { - HTTP_TOKEN_CHAR[i] = false; - } else { - HTTP_TOKEN_CHAR[i] = true; - } - } - } + protected static final StringManager sm = StringManager.getManager(Constants.Package); /**
  23. Download patch java/org/apache/coyote/http11/InternalInputBuffer.java

    --- 8.0.38-2/java/org/apache/coyote/http11/InternalInputBuffer.java 2016-05-13 10:29:03.000000000 +0000 +++ 8.0.38-2ubuntu2/java/org/apache/coyote/http11/InternalInputBuffer.java 2017-04-11 04:40:22.000000000 +0000 @@ -28,6 +28,7 @@ import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.buf.ByteChunk; import org.apache.tomcat.util.buf.MessageBytes; +import org.apache.tomcat.util.http.parser.HttpParser; import org.apache.tomcat.util.net.AbstractEndpoint; import org.apache.tomcat.util.net.SocketWrapper; @@ -142,7 +143,7 @@ public class InternalInputBuffer extends if (buf[pos] == Constants.SP || buf[pos] == Constants.HT) { space = true; request.method().setBytes(buf, start, pos - start); - } else if (!HTTP_TOKEN_CHAR[buf[pos]]) { + } else if (!HttpParser.isToken(buf[pos])) { throw new IllegalArgumentException(sm.getString("iib.invalidmethod")); } @@ -193,9 +194,10 @@ public class InternalInputBuffer extends eol = true; space = true; end = pos; - } else if ((buf[pos] == Constants.QUESTION) - && (questionPos == -1)) { + } else if ((buf[pos] == Constants.QUESTION) && (questionPos == -1)) { questionPos = pos; + } else if (HttpParser.isNotRequestTarget(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidRequestTarget")); } pos++; @@ -230,9 +232,8 @@ public class InternalInputBuffer extends // // Reading the protocol - // Protocol is always US-ASCII + // Protocol is always "HTTP/" DIGIT "." DIGIT // - while (!eol) { // Read new bytes if needed @@ -247,6 +248,8 @@ public class InternalInputBuffer extends if (end == 0) end = pos; eol = true; + } else if (!HttpParser.isHttpProtocol(buf[pos])) { + throw new IllegalArgumentException(sm.getString("iib.invalidHttpProtocol")); } pos++; @@ -345,7 +348,7 @@ public class InternalInputBuffer extends if (buf[pos] == Constants.COLON) { colon = true; headerValue = headers.addValue(buf, start, pos - start); - } else if (buf[pos] < 0 || !HTTP_TOKEN_CHAR[buf[pos]]) { + } else if (!HttpParser.isToken(buf[pos])) { // If a non-token header is detected, skip the line and // ignore the header skipLine(start);
  24. Download patch debian/patches/CVE-2016-6816.patch
  25. Download patch debian/patches/CVE-2016-8745.patch

    --- 8.0.38-2/debian/patches/CVE-2016-8745.patch 1970-01-01 00:00:00.000000000 +0000 +++ 8.0.38-2ubuntu2/debian/patches/CVE-2016-8745.patch 2017-04-10 18:59:52.000000000 +0000 @@ -0,0 +1,27 @@ +Description: fix information leakage between requests +Origin: upstream, http://svn.apache.org/viewvc?view=revision&revision=1777469 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802312 +Bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=60409 + +Index: tomcat8-8.0.37/java/org/apache/tomcat/util/net/NioEndpoint.java +=================================================================== +--- tomcat8-8.0.37.orig/java/org/apache/tomcat/util/net/NioEndpoint.java 2016-05-04 09:28:30.000000000 -0400 ++++ tomcat8-8.0.37/java/org/apache/tomcat/util/net/NioEndpoint.java 2017-01-13 12:29:06.177335705 -0500 +@@ -1245,11 +1245,15 @@ + } + }catch ( IOException x ) { + if ( log.isDebugEnabled() ) log.debug("Unable to complete sendfile request:", x); +- cancelledKey(sk,SocketStatus.ERROR); ++ if (!calledByProcessor) { ++ cancelledKey(sk,SocketStatus.ERROR); ++ } + return SendfileState.ERROR; + }catch ( Throwable t ) { + log.error("",t); +- cancelledKey(sk, SocketStatus.ERROR); ++ if (!calledByProcessor) { ++ cancelledKey(sk, SocketStatus.ERROR); ++ } + return SendfileState.ERROR; + } + }

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: yui3

yui3 (3.5.1-1ubuntu3) quantal; urgency=low * Downgrade the javascript-common recommendation to a suggestion for all binary packages. -- Matthias Klose <doko@ubuntu.com> Fri, 28 Sep 2012 13:36:31 +0200 yui3 (3.5.1-1ubuntu2) quantal; urgency=low * debian/control: Drop Recommends on javascript-common to Suggests as it is not in main. -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 11 Sep 2012 15:00:22 -0400 yui3 (3.5.1-1ubuntu1) quantal; urgency=low * Do not build the *.swf files to not pull various dependencies that we do not want in main. - debian/control: Drop Build-Dep on swftools. - debian/rules: Do not build swf files. * debian/watch: Remove dfsg mangler option. -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 15:53:28 -0400

Modifications :
  1. Download patch debian/rules

    --- 3.5.1-1/debian/rules 2012-06-29 03:58:19.000000000 +0000 +++ 3.5.1-1ubuntu3/debian/rules 2012-07-03 19:51:30.000000000 +0000 @@ -31,19 +31,6 @@ override_dh_install: cd debian/libjs-yui3-common && find . -type d -empty | xargs rmdir - # creating flash files - cd src/io/as && \ - as3compile com/yui/util/io.as -M io -R -o io.swf && \ - mv io.swf ../../../build/io-xdr - - cd src/uploader-deprecated/as && \ - as3compile Uploader.as -M Uploader -R -o uploader.swf && \ - mv uploader.swf ../../../build/uploader-deprecated/assets - - cd src/uploader/as && \ - as3compile FlashUploader.as -M flashUploader -R -o flashuploader.swf && \ - mv flashuploader.swf ../../../build/uploader/assets - override_dh_clean: dh_clean -find . -name "*.swf" | xargs rm
  2. Download patch debian/control

    --- 3.5.1-1/debian/control 2012-06-29 03:56:58.000000000 +0000 +++ 3.5.1-1ubuntu3/debian/control 2012-09-28 11:36:24.000000000 +0000 @@ -1,9 +1,10 @@ Source: yui3 Section: web Priority: optional -Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jaldhar H. Vyas <jaldhar@debian.org> -Build-Depends: debhelper (>= 7.0.50~), swftools +Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.3 Homepage: http://developer.yahoo.com/yui/3/ Vcs-Browser: http://git.debian.org/?p=pkg-javascript/yui3.git @@ -14,7 +15,7 @@ Package: libjs-yui3-common Section: web Architecture: all Depends: ${misc:Depends} -Recommends: javascript-common +Suggests: javascript-common Description: Yahoo User Interface Library v3 (common files) A collection of JavaScript and CSS resources that make it easier to build richly interactive applications in web browsers. The library currently @@ -34,7 +35,7 @@ Package: libjs-yui3-debug Section: web Architecture: all Depends: libjs-yui3-common, ${misc:Depends} -Recommends: javascript-common +Suggests: javascript-common Description: Yahoo User Interface Library v3 (debug files) A collection of JavaScript and CSS resources that make it easier to build richly interactive applications in web browsers. @@ -53,7 +54,7 @@ Package: libjs-yui3-full Section: web Architecture: all Depends: libjs-yui3-common, ${misc:Depends} -Recommends: javascript-common +Suggests: javascript-common Description: Yahoo User Interface Library v3 (full, uncompressed files) A collection of JavaScript and CSS resources that make it easier to build richly interactive applications in web browsers. @@ -65,7 +66,7 @@ Package: libjs-yui3-min Section: web Architecture: all Depends: libjs-yui3-common, ${misc:Depends} -Recommends: javascript-common +Suggests: javascript-common Description: Yahoo User Interface Library v3 (minified files) A collection of JavaScript and CSS resources that make it easier to build richly interactive applications in web browsers.
  3. Download patch debian/watch

    --- 3.5.1-1/debian/watch 2012-06-29 01:05:51.000000000 +0000 +++ 3.5.1-1ubuntu3/debian/watch 2012-07-03 19:53:24.000000000 +0000 @@ -1,4 +1,3 @@ version=3 -opts=dversionmangle=s/\+dfsg// \ http://yuilibrary.com/download/yui3/ \ http://yui.zenfs.com/releases/yui3/yui_([\d\.]*).zip
  1. apache-log4j1.2
  2. derby
  3. dom4j
  4. excalibur-logkit
  5. geronimo-jacc-1.1-spec
  6. geronimo-jta-1.1-spec
  7. java-common
  8. java3d
  9. jmagick
  10. jsch-agent-proxy
  11. junit4
  12. junitperf
  13. libcommons-dbcp-java
  14. libcommons-discovery-java
  15. libcommons-lang-java
  16. libjaxen-java
  17. libjs-jquery-hotkeys
  18. libphonenumber
  19. libv8-3.14
  20. modernizr
  21. node-iconv-lite
  22. node-isexe
  23. node-tap
  24. nodejs
  25. npm
  26. plexus-velocity
  27. service-wrapper-java
  28. sikulix
  29. tomcat8
  30. yui3