Skip to contentSkip to conversation

3896 pom-ng broken

DISCUSSION Applied Amin Azez 4 participants 6 messages May 10, 2005 – May 17, 2005 1 message not in the archive netfilter

lore
Share & tools
lore
author
#2 lore raw
Quoted 5 lines · Phil Oester
Quoted 2 lines · Amin Azez

This change

Quoted 9 lines
Quoted 5 lines

http://svn.netfilter.org/cgi-bin/viewcvs.cgi/trunk/patch-o-matic-ng/Netfilter_POM.pm?rev=3896&r1=3820&r2=3896

breaks pom-ng for me, such that it fails to apply most of the pom patches because 2.6.11 seems to be the wrong source version.

Perhaps this was intentional...which specific patches don't work, and did you verify the 'Requires' statement in the info file fits your kernel?

conntrack-event-api/info
Title: conntrack event API
Author: Pablo Neira <[email protected]>
Status: Testing
Repository: extra
Requires: linux >= 2.6.11

I was patching 2.6.11.7

Amin

#4 lore raw
In reply to a message not in the archive
Quoted 36 lines · Jérôme Poulin

See my e-mail, posted the same problem / solution and got no answer, only 3 patchs apply with that new snapshot, other patch with no requirements or even with a valid requirement won't apply, only set, h323, goto and another apply, anyway see my other mails.

Quoted 29 lines · Amin Azez
Quoted 5 lines · Phil Oester
Quoted 2 lines · Amin Azez

This change

Quoted 10 lines
Quoted 6 lines

http://svn.netfilter.org/cgi-bin/viewcvs.cgi/trunk/patch-o-matic-ng/Netfilter_POM.pm?rev=3896&r1=3820&r2=3896

breaks pom-ng for me, such that it fails to apply most of the pom patches because 2.6.11 seems to be the wrong source version.

Perhaps this was intentional...which specific patches don't work, and did you verify the 'Requires' statement in the info file fits your kernel?

conntrack-event-api/info
Title: conntrack event API
Author: Pablo Neira <[email protected]>
Status: Testing
Repository: extra
Requires: linux >= 2.6.11

I was patching 2.6.11.7

Amin

#5 lore raw
Quoted 5 lines · Jérôme Poulin
Quoted 4 lines · Jérôme Poulin

See my e-mail, posted the same problem / solution and got no answer, only 3 patchs apply with that new snapshot, other patch with no requirements or even with a valid requirement won't apply, only set, h323, goto and another apply, anyway see my other mails.

Indeed, my patch was broken. But the 'Requires' handling is also broken, but will take something nontrivial to fix.

In the interim, the below patch reverts my changes, and adds a necessary 2nd Requires to pptp. Harald, please apply.

Phil

Netfilter_POM.pm +3 -3
diff -ruN pom-orig/Netfilter_POM.pm pom-new/Netfilter_POM.pm
@@ -196,10 +196,10 @@
 		# if the requirement refers to the tested patchlet,
 		# project version must fulfil the requirement.
 		# Multiple requirements are ANDed.
-		return 1 if $pver eq $prog 
-			    && $self->version_compare($proj, $op, $ver);
+		return 0 if $pver eq $prog 
+			    && !$self->version_compare($proj, $op, $ver);
 	}
-	return 0;
+	return 1;
 }
 
 # are the requirements for a specific patchlet fulfilled?
pptp-conntrack-nat/info +1 -0
diff -ruN pom-orig/pptp-conntrack-nat/info pom-new/pptp-conntrack-nat/info
@@ -4,3 +4,4 @@
 Repository: extra
 Depends: !nat-reservations
 Requires: linux < 2.6.11
+Requires: linux-2.6 < 2.6.11
#6 lore raw
Quoted 5 lines · Phil Oester

Indeed, my patch was broken. But the 'Requires' handling is also broken, but will take something nontrivial to fix.

In the interim, the below patch reverts my changes, and adds a necessary 2nd Requires to pptp. Harald, please apply.

Applied, thanks Phil.