Skip to content
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

fix: TPROCTE_HOME Being Used In Place Of TPRO_HOME #778

Merged
merged 3 commits into from
May 29, 2019
Merged

fix: TPROCTE_HOME Being Used In Place Of TPRO_HOME #778

merged 3 commits into from
May 29, 2019

Conversation

astroesteban
Copy link
Contributor

Introduction

Hi Trick team,

My name is Esteban Duran. I am a former intern of Frank Delgado's at JSC. I now work as a flight software engineer at Firefly Aerospace. The software team and I found this easy to miss discrepancy when enabling real-time clock support in Trick. Thanks for making such a great framework!

Bug

We are trying to enable the use of a real-time clock for Trick and have encountered an issue
Per the documentation, adding the --with-tpro="path/to/driver" when executing the configure script should enable TPRO CTE support. What we found was that the configure file would completely ignore the path provided and simply print out:

configure: error: could not find /h/tpro.h

It looks like in the autoconf/configure.ac on line 63, there are still references to the TPROCTE_HOME variable and it is being used interchangeably with TPRO_HOME. The same is being done in the trick/configure file on line 7079 where the TPROCTE_HOME variable is being set to the withval variable contents but the TPRO_HOME variable is being used to check for the tpro.h file.
The TPROCTE_HOME variable was never used and the TPRO_HOME variable will always be an empty string. Thus, the configuration file will always check for only /h/tpro.h instead of /h/tpro.h.

Fix

Change all references of the TPROCTE_HOME variable in the configure file to TPRO_HOME.

Esteban Duran and others added 3 commits May 21, 2019 21:58
When compiling Trick with the --with-tpro option for use of a real-time clock, the TPROCTE_HOME variable was being assigned the contents of the withval variable instead of being assigned to the TPRO_HOME variable. The TPROCTE_HOME variable was never used and the TPRO_HOME variable will always be an empty string. Thus, the configuration file will always check for only /h/tpro.h instead of <user-provided-path-to-tpro>/h/tpro.h
@dbankieris dbankieris merged commit a3c7b57 into nasa:master May 29, 2019
@dbankieris
Copy link
Contributor

Thanks for the fix!

alexlin0 added a commit that referenced this pull request Jun 11, 2019
Needed to make some more fixes to work with modern tsync driver
code.
alexlin0 added a commit that referenced this pull request Jun 11, 2019
Need to exclude the tsync directory from Trick operations.
alexlin0 added a commit that referenced this pull request Jun 11, 2019
Changed the Tsync routing from using the old TPro API to the
new Tsync API.
alexlin0 added a commit that referenced this pull request Jun 12, 2019
I put the include for tsync.h in the wrong place.
alexlin0 added a commit that referenced this pull request Jun 14, 2019
Tell ICG not to process board handle variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants