Skip to contentSkip to conversation

POM "--without-kernel" & "--without-iptables"

PATCH Denis Kaganovich 1 participant 2 messages Mar 28, 2007 – Apr 3, 2007

lore
Share & tools
lore
#0 lore raw

I recommend to add "--without-kernel" & "--without-iptables" into POM "runme". (I needs it for Gentoo separated package installations, but there are good options anymore)

There is my solution:

Netfilter_POM.pm +1 -0
diff -U 2 patch-o-matic-ng-20070323/Netfilter_POM.pm patch-o-matic-ng-20070323.fixed/Netfilter_POM.pm
@@ -1044,4 +1044,5 @@
 	my($branch, $oldest);
 	foreach $proj (keys %{$self->{projects}}) {
+		next if (!defined($paths->{$proj}));
 		foreach $branch (keys %{$self->{config}->{$proj}->{branches}}) {
 			$self->{projects}->{$proj}->{branch} =

Common subdirectories: patch-o-matic-ng-20070323/patch2pom and patch-o-matic-ng-20070323.fixed/patch2pom Common subdirectories: patch-o-matic-ng-20070323/patchlets and patch-o-matic-ng-20070323.fixed/patchlets Common subdirectories: patch-o-matic-ng-20070323/pom2patch and patch-o-matic-ng-20070323.fixed/pom2patch

runme +18 -0
diff -U 2 patch-o-matic-ng-20070323/runme patch-o-matic-ng-20070323.fixed/runme
@@ -90,4 +90,6 @@
 my $opt_iptpath;
 my $opt_download;
+my $opt_nokernel;
+my $opt_noipt;
 
 my $result = GetOptions("batch" => \$opt_batch,
@@ -100,4 +102,6 @@
 			"man" => \$opt_man,
 			"download" => \$opt_download,
+			"without-kernel" => \$opt_nokernel,
+			"without-iptables" => \$opt_noipt,
 			"kernel-path=s" => \$opt_path,
 			"iptables-path=s" => \$opt_iptpath) or pod2usage(2);
@@ -228,4 +232,5 @@
 	  'default'	=> '/usr/src/linux',
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_nokernel,
 	},
 	{ 'project'	=> 'iptables',
@@ -235,8 +240,13 @@
 	  'default'	=> '/usr/src/iptables',
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_noipt,
 	}
 );
 
 foreach my $path (@paths) {
+	if($path->{without}){
+	    $paths{$path->{project}}=undef;
+	    next;
+	}
 	if (!defined($ENV{$path->{env}}) && !$path->{opt}) {
 		print("Hey! $path->{env} is not set.\n");
@@ -496,4 +506,12 @@
 specify the iptables source path
 
+=item B<--without-kernel> path
+
+don't patch kernel
+
+=item B<--without-iptables> path
+
+don't patch iptables
+
 =item B<--verbose>
 
Signature · 2 lines
WBR,
Denis Kaganovich,  [email protected]  http://mahatma.bspu.unibel.by
#1 lore raw
Quoted 4 lines · Denis Kaganovich

I recommend to add "--without-kernel" & "--without-iptables" into POM "runme". (I needs it for Gentoo separated package installations, but there are good options anymore)

There is my solution:

Sorry, no suitable topic in bugzilla. Now clean:

Netfilter_POM.pm +2 -0
@@ -667,2 +667,3 @@
 
+	return 1 if(!defined($self->{projects}->{$proj}->{PATH}));
 	$projpath = $copy || $self->{projects}->{$proj}->{PATH};
@@ -1045,2 +1046,3 @@
 	foreach $proj (keys %{$self->{projects}}) {
+		next if (!defined($paths->{$proj}));
 		foreach $branch (keys %{$self->{config}->{$proj}->{branches}}) {
runme +18 -0
@@ -91,2 +91,4 @@
 my $opt_download;
+my $opt_nokernel;
+my $opt_noipt;
 
@@ -101,2 +103,4 @@
 			"download" => \$opt_download,
+			"without-kernel" => \$opt_nokernel,
+			"without-iptables" => \$opt_noipt,
 			"kernel-path=s" => \$opt_path,
@@ -229,2 +233,3 @@
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_nokernel,
 	},
@@ -236,2 +241,3 @@
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_noipt,
 	}
@@ -240,2 +246,6 @@
 foreach my $path (@paths) {
+	if($path->{without}){
+	    $paths{$path->{project}}=undef;
+	    next;
+	}
 	if (!defined($ENV{$path->{env}}) && !$path->{opt}) {
@@ -497,2 +507,10 @@
 
+=item B<--without-kernel>
+
+don't patch kernel
+
+=item B<--without-iptables>
+
+don't patch iptables
+
 =item B<--verbose>
Signature · 2 lines
WBR,
Denis Kaganovich,  [email protected]  http://mahatma.bspu.unibel.by