Firstly, some files that should not have been tracked by version control in the first place have been removed:
mobile_insight/monitor/dm_collector/dm_collector_c.so. This was causing an edge case issue when trying to install Mobile Insight. Namely, this (outdated, I presume) version of dm_collector_c.so was masking the system dm_collector_c.so, causing test scripts to fail.
Testing with examples/offline-analysis-example.py confirms that it still works even after removing these 3 files (the latter two are regenerated as part of its runtime anyway).
Implement Ignore Rules
To enforce version control best practices, this PR introduces a repository .gitignore file. I populated it with standard ignore rules for C, C++, and Python, pulled from GitHub's official .gitignore templates.
In addition, I appended project-specific ignore rules. These are documented in the .gitignore file as comments.
Warning For Wireshark Build Error
Finally, not directly related to ignore rules but important, recent builds have encountered an error when building Wireshark due to its epan/epan.h including the <glib.h> header under extern "C". We presume glib.h is no longer compatible with C linkage. To fix this, the #include <glib.h> line had to be manually moved out of the extern block and recompiled.
Since this is a change in upstream source code, it cannot be fixed in version control for this repository. As a temporary workaround, a warning has been added to the README under installation instructions describing this error and how to fix it. This warning should be removed if the change is fixed upstream (where the Wireshark installation is sourced).
Untrack Volatile Files
Firstly, some files that should not have been tracked by version control in the first place have been removed:
dm_collector_c.so
was masking the systemdm_collector_c.so
, causing test scripts to fail.examples/
script.Testing with
examples/offline-analysis-example.py
confirms that it still works even after removing these 3 files (the latter two are regenerated as part of its runtime anyway).Implement Ignore Rules
To enforce version control best practices, this PR introduces a repository
.gitignore
file. I populated it with standard ignore rules for C, C++, and Python, pulled from GitHub's official .gitignore templates.In addition, I appended project-specific ignore rules. These are documented in the
.gitignore
file as comments.Warning For Wireshark Build Error
Finally, not directly related to ignore rules but important, recent builds have encountered an error when building Wireshark due to its
epan/epan.h
including the<glib.h>
header underextern "C"
. We presumeglib.h
is no longer compatible with C linkage. To fix this, the#include <glib.h>
line had to be manually moved out of theextern
block and recompiled.Since this is a change in upstream source code, it cannot be fixed in version control for this repository. As a temporary workaround, a warning has been added to the README under installation instructions describing this error and how to fix it. This warning should be removed if the change is fixed upstream (where the Wireshark installation is sourced).