All of lore.kernel.org
 help / color / mirror / Atom feed
* PoM-NG question
@ 2004-04-07 13:18 KOVACS Krisztian
  2004-04-07 14:47 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: KOVACS Krisztian @ 2004-04-07 13:18 UTC (permalink / raw)
  To: netfilter-devel


  Hi,

  Is it possible to use more than one .patch file in a patchlet? I mean,
I'd like to incorporate a complete, broken-out patchtree into a
patchlet. Is this possible ATM?

-- 
 Regards,
   Krisztian KOVACS

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PoM-NG question
  2004-04-07 13:18 PoM-NG question KOVACS Krisztian
@ 2004-04-07 14:47 ` Patrick McHardy
  2004-04-08 12:24   ` KOVACS Krisztian
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2004-04-07 14:47 UTC (permalink / raw)
  To: KOVACS Krisztian; +Cc: netfilter-devel

KOVACS Krisztian wrote:
>   Hi,
> 
>   Is it possible to use more than one .patch file in a patchlet? I mean,
> I'd like to incorporate a complete, broken-out patchtree into a
> patchlet. Is this possible ATM?
> 

AFAIK it's not possible. Such a feature would be great, though.

Regards
Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PoM-NG question
  2004-04-07 14:47 ` Patrick McHardy
@ 2004-04-08 12:24   ` KOVACS Krisztian
  0 siblings, 0 replies; 3+ messages in thread
From: KOVACS Krisztian @ 2004-04-08 12:24 UTC (permalink / raw)
  To: Harald Welte; +Cc: netfilter-devel, Patrick McHardy

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]


  Hi,

On Wed, 2004-04-07 at 16:47, Patrick McHardy wrote:
> >   Is it possible to use more than one .patch file in a patchlet? I mean,
> > I'd like to incorporate a complete, broken-out patchtree into a
> > patchlet. Is this possible ATM?
> > 
> 
> AFAIK it's not possible. Such a feature would be great, though.

  I've created a patch which adds support for broken out patches in
pom-ng. Please review, I'm not much of a Perl user... The patch supports
broken-out patch names like 01-foo-linux-2.4.patch, however, retains
compatibility with previous versions, so that names like linux-2.4.patch
can be used as well.

  Another fix is attached, this is for the runme script to do not omit
warnings that OSPEED is not set.

-- 
 Regards,
   Krisztian KOVACS

[-- Attachment #2: netfilter_patchsets.patch --]
[-- Type: text/x-patch, Size: 1536 bytes --]

Index: Netfilter_POM.pm
===================================================================
RCS file: /cvspublic/patch-o-matic-ng/Netfilter_POM.pm,v
retrieving revision 1.19
diff -u -r1.19 Netfilter_POM.pm
--- Netfilter_POM.pm	3 Mar 2004 12:30:46 -0000	1.19
+++ Netfilter_POM.pm	8 Apr 2004 12:12:59 -0000
@@ -407,8 +407,11 @@
 
 	# save the filename of the patch itself
 	foreach my $pf (@dents) {
-		if ($pf =~ /(([^-]+)(-([\d\.]*))?\.patch)$/) {
-			$patchlet{patch}{$2}{$4} = $1;
+		if ($pf =~ /(((\d+-[^-]+)-)?(([^-]+)(-([\d\.]*)))?\.patch)$/) {
+			if (!defined($patchlet{patch}{$5}{$7})) {
+				$patchlet{patch}{$5}{$7} = [];
+			}
+			push @{$patchlet{patch}{$5}{$7}}, $1;
 		}
 	}
 
@@ -733,16 +736,19 @@
 			if ($test) {
 				$options .= "--dry-run ";
 			}
-			my $patchfile = ($$patchlet{basedir}.'/'.$$patchlet{patch}{$proj}{best});
-			my $cmd = sprintf("%s -f -p1 -d %s %s < %s", 
-					  $BIN_PATCH, $projpath, 
-					  $options,
-					  $patchfile);
+
+			my @patchfiles = sort map { $$patchlet{basedir}.'/'.$_ } @{$$patchlet{patch}{$proj}{best}};
+			my $patchfiles = join ' ', @patchfiles;
+			my $cmd = sprintf("cat %s | %s -f -p1 -d %s %s",
+					  $patchfiles,
+					  $BIN_PATCH, $projpath,
+					  $options);
 
 			my $missing_files;
 			my $rejects;
 			my $notempty;
-			my $hunks = count_hunks($patchfile);
+			my $hunks = 0;
+			map { $hunks += count_hunks($_) } @patchfiles;
 			open(PATCH, "$cmd|") || die("can't start patch '$cmd': $!\n");
 			while (my $line = <PATCH>) {
 				# FIXME: parse patch output

[-- Attachment #3: runme_fix_ospeed.patch --]
[-- Type: text/x-patch, Size: 456 bytes --]

Index: runme
===================================================================
RCS file: /cvspublic/patch-o-matic-ng/runme,v
retrieving revision 1.15
diff -u -r1.15 runme
--- runme	4 Mar 2004 07:54:24 -0000	1.15
+++ runme	8 Apr 2004 12:10:22 -0000
@@ -234,7 +234,7 @@
 }
 
 if (defined($ENV{TERM}) && !$opt_batch) {
-	my $terminal = Tgetent Term::Cap {};
+	my $terminal = Tgetent Term::Cap { OSPEED => 9600 };
 	$clrscr = $terminal->Tputs('cl', 1);
 }
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-08 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07 13:18 PoM-NG question KOVACS Krisztian
2004-04-07 14:47 ` Patrick McHardy
2004-04-08 12:24   ` KOVACS Krisztian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.