forked from I2P_Developers/i2p.i2p
Debian: Fix patch offsets
Add ant target to validate patches
This commit is contained in:
14
build.xml
14
build.xml
@@ -2538,6 +2538,20 @@
|
||||
<property name="Extended.Version" value="${full.version}" />
|
||||
</target>
|
||||
|
||||
<target name="debcheckpatch">
|
||||
<exec executable="patch" failonerror="true" input="debian/patches/0001-path-substitution.patch" >
|
||||
<arg value="--dry-run" />
|
||||
<arg value="-F0" />
|
||||
<arg value="-p1" />
|
||||
</exec>
|
||||
<exec executable="patch" failonerror="true" input="debian/patches/0002-jetty-compatibility.patch" >
|
||||
<arg value="--dry-run" />
|
||||
<arg value="-F0" />
|
||||
<arg value="-p1" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="debchange" depends="getExtendedVersion" unless="noAutoDebchange">
|
||||
<echo message= "Debian version is ${Extended.Version}-1" />
|
||||
<exec executable="dch" failonerror="true">
|
||||
|
4
debian/patches/0001-path-substitution.patch
vendored
4
debian/patches/0001-path-substitution.patch
vendored
@@ -509,7 +509,7 @@ Index: b/installer/resources/locale/po/messages_fr.po
|
||||
===================================================================
|
||||
--- a/installer/resources/locale/po/messages_fr.po
|
||||
+++ b/installer/resources/locale/po/messages_fr.po
|
||||
@@ -188,13 +188,13 @@ msgid "Request a Java thread dump if run
|
||||
@@ -189,13 +189,13 @@ msgid "Request a Java thread dump if run
|
||||
msgstr "Demander un vidage des fils d’exécution de Java si elle est en cours d’exécution."
|
||||
|
||||
#: ../i2prouter:1874
|
||||
@@ -553,7 +553,7 @@ Index: b/installer/resources/locale/po/messages_sv.po
|
||||
===================================================================
|
||||
--- a/installer/resources/locale/po/messages_sv.po
|
||||
+++ b/installer/resources/locale/po/messages_sv.po
|
||||
@@ -187,13 +187,13 @@ msgid "Request a Java thread dump if run
|
||||
@@ -189,13 +189,13 @@ msgid "Request a Java thread dump if run
|
||||
msgstr "Fråga efter en Java thread dump vid drift."
|
||||
|
||||
#: ../i2prouter:1874
|
||||
|
10
debian/patches/0002-jetty-compatibility.patch
vendored
10
debian/patches/0002-jetty-compatibility.patch
vendored
@@ -63,7 +63,7 @@
|
||||
import org.eclipse.jetty.security.authentication.DigestAuthenticator;
|
||||
import org.eclipse.jetty.server.AbstractConnector;
|
||||
import org.eclipse.jetty.server.ConnectionFactory;
|
||||
@@ -959,6 +961,8 @@
|
||||
@@ -968,6 +970,8 @@
|
||||
} else {
|
||||
HashLoginService realm = new CustomHashLoginService(JETTY_REALM, context.getContextPath(),
|
||||
ctx.logManager().getLog(RouterConsoleRunner.class));
|
||||
@@ -72,7 +72,7 @@
|
||||
sec.setLoginService(realm);
|
||||
sec.setAuthenticator(authenticator);
|
||||
String[] role = new String[] {JETTY_ROLE};
|
||||
@@ -966,7 +970,7 @@
|
||||
@@ -975,7 +979,7 @@
|
||||
String user = e.getKey();
|
||||
String pw = e.getValue();
|
||||
Credential cred = Credential.getCredential(MD5_CREDENTIAL_TYPE + pw);
|
||||
@@ -81,7 +81,7 @@
|
||||
Constraint constraint = new Constraint(user, JETTY_ROLE);
|
||||
constraint.setAuthenticate(true);
|
||||
ConstraintMapping cm = new ConstraintMapping();
|
||||
@@ -986,7 +990,7 @@
|
||||
@@ -995,7 +999,7 @@
|
||||
try {
|
||||
// each char truncated to 8 bytes
|
||||
String user2 = new String(b2, "ISO-8859-1");
|
||||
@@ -90,7 +90,7 @@
|
||||
constraint = new Constraint(user2, JETTY_ROLE);
|
||||
constraint.setAuthenticate(true);
|
||||
cm = new ConstraintMapping();
|
||||
@@ -997,7 +1001,7 @@
|
||||
@@ -1006,7 +1010,7 @@
|
||||
// each UTF-8 byte as a char
|
||||
// this is what chrome does
|
||||
String user3 = new String(b1, "ISO-8859-1");
|
||||
@@ -99,7 +99,7 @@
|
||||
constraint = new Constraint(user3, JETTY_ROLE);
|
||||
constraint.setAuthenticate(true);
|
||||
cm = new ConstraintMapping();
|
||||
@@ -1072,8 +1076,8 @@
|
||||
@@ -1081,8 +1085,8 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user