Bug-Report 3-19-03 patch-o-matic-ng
Welcome to Patch-o-matic (1.15)!
Kernel: /usr/src/linux Iptables: /usr/src/iptables
Each patch is a new feature: many have minimal impact, some do not. Almost every one has bugs, so don't apply what you don't need!
-------------------------------------------------------
Already applied: init_conntrack-optimize ipt_helper-invert-fix nf-log NETMAP SAME TTL connlimit fuzzy iprange mport nth sctp CLASSIFY iptables-loopcheck-speedup netfilter-docbook
Testing tcp-window-tracking... not applied
The tcp-window-tracking patch:
Author: Jozsef Kadlecsik
Status: proven to be quite stable, but still experimental
Now for the error message
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y present 'ctstat' conflicts with to-be-installed 'tcp-window-tracking'
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] yapply_dependencies: unable to apply dependent nf-log: cannot apply (22 rejects out of 24 hunks)
-----------------------------------------------------------------
As you notice ctstat is not installed and nf-log is installed.
----
Jim Gifford
[email protected]
Quoted 27 lines · Jim Gifford
Welcome to Patch-o-matic (1.15)!
Kernel: /usr/src/linux Iptables: /usr/src/iptablesEach patch is a new feature: many have minimal impact, some do not. Almost every one has bugs, so don't apply what you don't need!
-------------------------------------------------------
Already applied: init_conntrack-optimize ipt_helper-invert-fix nf-log NETMAP SAME TTL connlimit fuzzy iprange mport nth sctp CLASSIFY iptables-loopcheck-speedup netfilter-docbookTesting tcp-window-tracking... not applied
The tcp-window-tracking patch:
Author: Jozsef Kadlecsik
Status: proven to be quite stable, but still experimentalNow for the error message
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y present 'ctstat' conflicts with to-be-installed 'tcp-window-tracking'
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] yapply_dependencies: unable to apply dependent nf-log: cannot apply (22 rejects out of 24 hunks)
-----------------------------------------------------------------
Quoted 1 line
As you notice ctstat is not installed and nf-log is installed.
Thank you the bug report. Unfortunately deadlines are hanging over my head and I'm not going to have any time to look at into the problem until the first days of April :-((.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
Update on the problem, it occurs more then the example I gave in the original email(original problem included)
The problem is that patch-o-matic is not check the Already applied line before attempting to patch.
Here is the newer version of the problem
First of all let me walk you through the steps I used to create this problem.
I apply the nf-log patch. It applies correctly.
I apply the TRACE patch. It bombs with the error apply_dependencies: unable to apply dependent nf-log: cannot apply (22 rejects out of 24 hunks)
Here is a complete screen of the error.
Welcome to Patch-o-matic (1.15)!
Kernel: /usr/src/linux Iptables: /usr/src/iptables
Each patch is a new feature: many have minimal impact, some do not. Almost every one has bugs, so don't apply what you don't need!
-------------------------------------------------------
Already applied: init_conntrack-optimize ipt_helper-invert-fix nf-log proc-no-internal-targets NETMAP SAME TTL connlimit fuzzy iprange nth sctp CLASSIFY IPMARK
Testing TRACE... not applied
The TRACE patch:
Author: Jozsef Kadlecsik <[email protected]>
Status: Testing.
This patch adds the TRACE target to the raw table.
The TRACE target can be used to trace how the packet "flows trough" your tables and rules. When a packet marked with the TRACE target matches any rule, the system logs the packet with the following prefix:
TRACE: tablename/chainname/rulenum packet
BEWARE: if you apply this patch, you loose backward compatibility with your current iptables binary, so you *must* recompile the userspace program as well.
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] yapply_dependencies: unable to apply dependent nf-log: cannot apply (22 rejects out of 24 hunks)
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?]
The original problem was
Welcome to Patch-o-matic (1.15)!
Kernel: /usr/src/linux
Iptables: /usr/src/iptables
Each patch is a new feature: many have minimal impact, some do not. Almost every one has bugs, so don't apply what you don't need!
-------------------------------------------------------
Already applied: init_conntrack-optimize ipt_helper-invert-fix nf-log
NETMAP
SAME TTL connlimit fuzzy iprange mport nth sctp CLASSIFY iptables-loopcheck-speedup netfilter-docbook
Testing tcp-window-tracking... not applied
The tcp-window-tracking patch:
Author: Jozsef Kadlecsik
Status: proven to be quite stable, but still experimental
Now for the error message
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y present 'ctstat' conflicts with to-be-installed 'tcp-window-tracking'
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y
apply_dependencies: unable to apply dependent nf-log: cannot apply (22 rejects out of 24 hunks)
-----------------------------------------------------------------
As you notice ctstat is not installed and nf-log is installed.
Jozsef,
I got most of the patch figured out and working. The only thing I
haven't been able to figure out is the following:
Attached is my patch that adds a check_applied subroutine.
This routine looks at @applied when a dependency is checked, if the name
of the patch is in @applied, it returns a status of 1.
so if nf-log is in applied, when we get to TRACE, it will just skip the
applying of nf-log, but will add the other dependency.
If nf-log is not applied, it will add nf-log, and the other dependency.
(My original bug report)
I fixed a routine that gives an error message, present 'ctstat'
conflicts with to-be-installed 'tcp-window-tracking'.
If used the routine from above to check to see if the patch exists in
@applied. It worked fine in the apply mode, but
it broke in the revert mode. So I had to add another check, that checked
the mode add used the appropriate response from
check_applied.
Few issues that do exist in 1.15 and my 1.16 patch-o-matic-ng, that I
have no clue on how to fix are.
After a dependency is applied, it needs to be added to @applied.
If you change from apply to revert, the @applied stays the same. The
revert should only be allowed as a first available patch,
and not be allowed to change after patches have been applied.
Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
Date: 2004-04-06
Initial Package Version: CVS Snapshot
Origin: Jim Gifford
Description: Adds applied patch check
runme renamed from runme.orig +15 -7
@@ -16,7 +16,7 @@ require Term::Cap; my $POMNG_ROOT_DIR = '.'; -my $VERSION = '1.15'; +my $VERSION = '1.16'; push(@INC, $POMNG_ROOT_DIR); use Netfilter_POM;
@@ -85,6 +85,7 @@ my @patchdirs; my @repositories; my @applied; +my $applied_text; my $clrscr = "\n\n\n\n\n\n\n\n\n\n"; my $opt_batch;
@@ -260,7 +261,9 @@ print($clrscr); print_header(); - print("Already applied: ", join(" ", @applied),"\n\n"); + + $applied_text = join(" ", @applied); + print("Already applied: $applied_text\n\n"); if (!Netfilter_POM::requirements_fulfilled($patchlet)) { printf("Not all requirements fulfilled for $plname, skipping:\n %s\n",
@@ -291,12 +294,15 @@ chomp($key); if ($key eq 'y') { my $ret = Netfilter_POM::dependencies_fulfilled($plets, - $plname); + $plname, $applied_text, + $opt_reverse); if ($ret == 0) { if (!Netfilter_POM::apply_dependencies($plets, - $plname, 0, 1) || + $plname, 0, 1, + $applied_text) || !Netfilter_POM::apply_dependencies($plets, - $plname, 0, 0)) { + $plname, 0, 0, + $applied_text)) { Netfilter_POM::perror(); goto PROMPT; }
@@ -321,10 +327,12 @@ goto PROMPT; } elsif ($key eq 'f') { my $ret = Netfilter_POM::dependencies_fulfilled($plets, - $plname); + $plname, $applied_text, + $opt_reverse); if ($ret == 0) { if (!Netfilter_POM::apply_dependencies($plets, - $plname, 1, 0)) { + $plname, 1, 0, + $applied_text)) { Netfilter_POM::perror(); next PATCHLET; }
Netfilter_POM.pm renamed from Netfilter_POM.pm.orig +40 -9
91 lines not on this page · raw message
Maybe I should of added [PATCH] when I posted. I have reattached the patch.
If anyone has any suggestions on my two remaining issues, let me know I wouldn't mind trying to fix them up.
Here is a recap of my issue and the reason for this patch.
Jozsef,
I got most of the patch figured out and working. The only thing I
haven't been able to figure out is the following:
Attached is my patch that adds a check_applied subroutine.
This routine looks at @applied when a dependency is checked, if the name
of the patch is in @applied, it returns a status of 1. So if nf-log is in applied,
when we get to TRACE, it will just skip the applying of nf-log, but will add the other dependency. If nf-log is not applied, it will add nf-log, and the other
dependency.
(My original bug report)
I fixed a routine that gives an error message, present 'ctstat' conflicts with
to-be-installed 'tcp-window-tracking'. If used the routine from above to check
to see if the patch exists in @applied. It worked fine in the apply mode, but
it broke in the revert mode. So I had to add another check, that checked the mode add used the appropriate response from check_applied.
Few issues that do exist in 1.15 and my 1.16 patch-o-matic-ng, that I have no clue on how to fix are.
After a dependency is applied, it needs to be added to @applied, which doesn't
happen currently.
If you change from apply to revert, the @applied stays the same. The revert
should only be allowed as a first available patch, and not be allowed to change
after patches have been applied.
Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
Date: 2004-04-06
Initial Package Version: CVS Snapshot
Origin: Jim Gifford
Description: Adds applied patch check
runme renamed from runme.orig +15 -7
@@ -16,7 +16,7 @@ require Term::Cap; my $POMNG_ROOT_DIR = '.'; -my $VERSION = '1.15'; +my $VERSION = '1.16'; push(@INC, $POMNG_ROOT_DIR); use Netfilter_POM;
@@ -85,6 +85,7 @@ my @patchdirs; my @repositories; my @applied; +my $applied_text; my $clrscr = "\n\n\n\n\n\n\n\n\n\n"; my $opt_batch;
@@ -260,7 +261,9 @@ print($clrscr); print_header(); - print("Already applied: ", join(" ", @applied),"\n\n"); + + $applied_text = join(" ", @applied); + print("Already applied: $applied_text\n\n"); if (!Netfilter_POM::requirements_fulfilled($patchlet)) { printf("Not all requirements fulfilled for $plname, skipping:\n %s\n",
@@ -291,12 +294,15 @@ chomp($key); if ($key eq 'y') { my $ret = Netfilter_POM::dependencies_fulfilled($plets, - $plname); + $plname, $applied_text, + $opt_reverse); if ($ret == 0) { if (!Netfilter_POM::apply_dependencies($plets, - $plname, 0, 1) || + $plname, 0, 1, + $applied_text) || !Netfilter_POM::apply_dependencies($plets, - $plname, 0, 0)) { + $plname, 0, 0, + $applied_text)) { Netfilter_POM::perror(); goto PROMPT; }
@@ -321,10 +327,12 @@ goto PROMPT; } elsif ($key eq 'f') { my $ret = Netfilter_POM::dependencies_fulfilled($plets, - $plname); + $plname, $applied_text, + $opt_reverse); if ($ret == 0) { if (!Netfilter_POM::apply_dependencies($plets, - $plname, 1, 0)) { + $plname, 1, 0, + $applied_text)) { Netfilter_POM::perror(); next PATCHLET; }
Netfilter_POM.pm renamed from Netfilter_POM.pm.orig +40 -9
91 lines not on this page · raw message
Hi Jim,
Quoted 1 line · Jim Gifford
Maybe I should of added [PATCH] when I posted. I have reattached the patch.
No, I read your report but unfortunately other urgent matters prevents me to work on pom-ng :-(. After Eastern...
Best regards and sorry,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary