-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration to Debian 12 #4417
Merged
Merged
Migration to Debian 12 #4417
Changes from 7 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
400f6b0
FIX make code to comiple under Debian 12 without losing compatibility…
fgalan 4345f21
FIX CMakeList.txt
fgalan 546afd6
FIX small modifications in ftest framework and gtest patch
fgalan 97c08fc
ADD .patch files to ingore list in check files compliance
fgalan 224ace3
FIX Dockerfile
fgalan b65186d
Merge branch 'master' into hardening/debian12-migration
fgalan 0f45fe8
FIX little fixes in makefile and testHarness.sh
fgalan 2d870f7
FIX ci docker image
fgalan 74364e2
FIX align .test with Debian 12 curl new way of working
fgalan c3c827d
FIX ftest
fgalan 16fced2
FIX documentation
fgalan b2f1533
FIX CNR
fgalan 617f37e
FIX build_source.md
fgalan f33394c
(JP) ADD doc about Debian 12 (#4417)
fisuda 439a556
Merge pull request #4419 from fisuda/patch
fgalan 1f07a16
FIX listen only to test topic
fgalan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
This patch adapt the original fuse_gest_files.py to Python 3 | ||
Check build_source.md file to see how it is used | ||
|
||
--- fuse_gtest_files.py.orig 2023-09-01 11:26:02.036070350 +0200 | ||
+++ fuse_gtest_files.py 2023-09-01 11:39:16.422565989 +0200 | ||
@@ -1,4 +1,4 @@ | ||
-#!/usr/bin/env python | ||
+#!/usr/bin/env python3 | ||
# | ||
# Copyright 2009, Google Inc. | ||
# All rights reserved. | ||
@@ -60,7 +60,6 @@ | ||
|
||
import os | ||
import re | ||
-import sets | ||
import sys | ||
|
||
# We assume that this file is in the scripts/ directory in the Google | ||
@@ -90,8 +89,8 @@ | ||
""" | ||
|
||
if not os.path.isfile(os.path.join(directory, relative_path)): | ||
- print 'ERROR: Cannot find %s in directory %s.' % (relative_path, | ||
- directory) | ||
+ print ('ERROR: Cannot find %s in directory %s.' % (relative_path, | ||
+ directory)) | ||
print ('Please either specify a valid project root directory ' | ||
'or omit it on the command line.') | ||
sys.exit(1) | ||
@@ -123,7 +122,7 @@ | ||
(relative_path, output_dir)) | ||
answer = sys.stdin.readline().strip() | ||
if answer not in ['y', 'Y']: | ||
- print 'ABORTED.' | ||
+ print ('ABORTED.') | ||
sys.exit(1) | ||
|
||
# Makes sure the directory holding the output file exists; creates | ||
@@ -146,8 +145,8 @@ | ||
def FuseGTestH(gtest_root, output_dir): | ||
"""Scans folder gtest_root to generate gtest/gtest.h in output_dir.""" | ||
|
||
- output_file = file(os.path.join(output_dir, GTEST_H_OUTPUT), 'w') | ||
- processed_files = sets.Set() # Holds all gtest headers we've processed. | ||
+ output_file = open(os.path.join(output_dir, GTEST_H_OUTPUT), 'w') | ||
+ processed_files = set() # Holds all gtest headers we've processed. | ||
|
||
def ProcessFile(gtest_header_path): | ||
"""Processes the given gtest header file.""" | ||
@@ -159,7 +158,7 @@ | ||
processed_files.add(gtest_header_path) | ||
|
||
# Reads each line in the given gtest header. | ||
- for line in file(os.path.join(gtest_root, gtest_header_path), 'r'): | ||
+ for line in open(os.path.join(gtest_root, gtest_header_path), 'r'): | ||
m = INCLUDE_GTEST_FILE_REGEX.match(line) | ||
if m: | ||
# It's '#include <gtest/...>' - let's process it recursively. | ||
@@ -175,7 +174,7 @@ | ||
def FuseGTestAllCcToFile(gtest_root, output_file): | ||
"""Scans folder gtest_root to generate gtest/gtest-all.cc in output_file.""" | ||
|
||
- processed_files = sets.Set() | ||
+ processed_files = set() | ||
|
||
def ProcessFile(gtest_source_file): | ||
"""Processes the given gtest source file.""" | ||
@@ -187,7 +186,7 @@ | ||
processed_files.add(gtest_source_file) | ||
|
||
# Reads each line in the given gtest source file. | ||
- for line in file(os.path.join(gtest_root, gtest_source_file), 'r'): | ||
+ for line in open(os.path.join(gtest_root, gtest_source_file), 'r'): | ||
m = INCLUDE_GTEST_FILE_REGEX.match(line) | ||
if m: | ||
if 'include/' + m.group(1) == GTEST_SPI_H_SEED: | ||
@@ -218,7 +217,7 @@ | ||
def FuseGTestAllCc(gtest_root, output_dir): | ||
"""Scans folder gtest_root to generate gtest/gtest-all.cc in output_dir.""" | ||
|
||
- output_file = file(os.path.join(output_dir, GTEST_ALL_CC_OUTPUT), 'w') | ||
+ output_file = open(os.path.join(output_dir, GTEST_ALL_CC_OUTPUT), 'w') | ||
FuseGTestAllCcToFile(gtest_root, output_file) | ||
output_file.close() | ||
|
||
@@ -242,7 +241,7 @@ | ||
# fuse_gtest_files.py GTEST_ROOT_DIR OUTPUT_DIR | ||
FuseGTest(sys.argv[1], sys.argv[2]) | ||
else: | ||
- print __doc__ | ||
+ print (__doc__) | ||
sys.exit(1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually related with this PR, but found while I was investigating make coverage issues.
NTC (informative)