diff options
| author | mulhern <mulhern@yoctoproject.org> | 2013-08-25 15:28:48 -0400 |
|---|---|---|
| committer | mulhern <mulhern@yoctoproject.org> | 2013-08-30 15:29:48 -0400 |
| commit | 7654815dbf81de12493a02063a02c9ee7792b939 (patch) | |
| tree | 0ae8f615b22558e41203d73ca40d773015d32123 /recipes-security/bastille/files/yocto-standard-patch.patch | |
| parent | 600a74468bf6d2e2f865e7d7c70e68c60c829234 (diff) | |
| download | meta-security-7654815dbf81de12493a02063a02c9ee7792b939.tar.gz | |
Bastille: Preliminary cleanup of existing patches.
[YOCTO #3867]
Renames existing patches and removes some changes.
Curses-and-IOLoader-changes.patch is renamed to call_output_config.patch. The
new patch omits the removal of the pruning step in Load_Questions but
retains the replacement of a call to a non-existant function with a call
to an appropriate implemented function.
yocto-standard-patch.patch is renamed to fixed_defined_warnings.patch. The
new patch omits the definition of a yocto distro but includes the defined
warnings fix.
The recipe file is changed to include the new patches and also to omit a
related action in the do_install script.
Signed-off-by: mulhern <mulhern@yoctoproject.org>
Diffstat (limited to 'recipes-security/bastille/files/yocto-standard-patch.patch')
| -rw-r--r-- | recipes-security/bastille/files/yocto-standard-patch.patch | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/recipes-security/bastille/files/yocto-standard-patch.patch b/recipes-security/bastille/files/yocto-standard-patch.patch deleted file mode 100644 index 4f78a3b..0000000 --- a/recipes-security/bastille/files/yocto-standard-patch.patch +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | From c59b84ca3bda8e4244d47901b6966f28dd675434 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
| 3 | Date: Thu, 23 May 2013 15:12:23 +0300 | ||
| 4 | Subject: [PATCH] added yocto-standard to bastille | ||
| 5 | |||
| 6 | In order to make Bastille functional and avoid errors | ||
| 7 | regarding distros, if not any given distro is identified, | ||
| 8 | yocto-standard distro is added to the distro variable | ||
| 9 | in Bastille. | ||
| 10 | |||
| 11 | Fixed also some warnings regarding defined statements | ||
| 12 | in API.pm. | ||
| 13 | |||
| 14 | Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
| 15 | --- | ||
| 16 | Bastille/API.pm | 12 ++++++------ | ||
| 17 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/Bastille/API.pm b/Bastille/API.pm | ||
| 20 | index 40f8c72..ebbe9f7 100644 | ||
| 21 | --- a/Bastille/API.pm | ||
| 22 | +++ b/Bastille/API.pm | ||
| 23 | @@ -445,8 +445,8 @@ sub GetDistro() { | ||
| 24 | $release=`/usr/bin/uname -sr`; | ||
| 25 | } | ||
| 26 | else { | ||
| 27 | - print STDERR "$err Could not determine operating system version!\n"; | ||
| 28 | - $distro="unknown"; | ||
| 29 | + #print STDERR "$err Could not determine operating system version!\n"; | ||
| 30 | + $distro="3.8.11-yocto-standard"; | ||
| 31 | } | ||
| 32 | |||
| 33 | # Figure out what kind of system we're on. | ||
| 34 | @@ -537,7 +537,7 @@ sub getSupportedOSHash () { | ||
| 35 | "DB2.2", "DB3.0", | ||
| 36 | "RH6.0","RH6.1","RH6.2","RH7.0", | ||
| 37 | "RH7.1","RH7.2","RH7.3","RH8.0", | ||
| 38 | - "RH9", | ||
| 39 | + "RH9","3.8.11-yocto-standard", | ||
| 40 | "RHEL5", | ||
| 41 | "RHEL4AS","RHEL4ES","RHEL4WS", | ||
| 42 | "RHEL3AS","RHEL3ES","RHEL3WS", | ||
| 43 | @@ -1284,7 +1284,7 @@ sub B_write_sums { | ||
| 44 | |||
| 45 | my $sumFile = &getGlobal('BFILE',"sum.csv"); | ||
| 46 | |||
| 47 | - if ( defined %GLOBAL_SUM ) { | ||
| 48 | + if ( %GLOBAL_SUM ) { | ||
| 49 | |||
| 50 | open( SUM, "> $sumFile") or &B_log("ERROR","Unable to open $sumFile for write.\n$!\n"); | ||
| 51 | |||
| 52 | @@ -1318,7 +1318,7 @@ sub B_check_sum($) { | ||
| 53 | my $file = $_[0]; | ||
| 54 | my $cksum = &getGlobal('BIN',"cksum"); | ||
| 55 | |||
| 56 | - if (not(defined(%GLOBAL_SUM))) { | ||
| 57 | + if (not(%GLOBAL_SUM)) { | ||
| 58 | &B_read_sums; | ||
| 59 | } | ||
| 60 | |||
| 61 | @@ -1375,7 +1375,7 @@ sub listModifiedFiles { | ||
| 62 | sub B_isFileinSumDB($) { | ||
| 63 | my $file = $_[0]; | ||
| 64 | |||
| 65 | - if (not(defined(%GLOBAL_SUM))) { | ||
| 66 | + if (not(%GLOBAL_SUM)) { | ||
| 67 | &B_log("DEBUG","Reading in DB from B_isFileinSumDB"); | ||
| 68 | &B_read_sums; | ||
| 69 | } | ||
| 70 | -- | ||
| 71 | 1.7.9.5 | ||
| 72 | |||
