Skip to content

Conversation

@mahaase
Copy link
Contributor

@mahaase mahaase commented Aug 11, 2023

there is no CYGWIN_VERSION_DLL_EPOCH anymore. epoch and major has to be calculated. define CYGWIN_VERSION_DLL_MAJOR 3004 means version 3.4.x.

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02% 🎉

Comparison is base (fd2f913) 88.18% compared to head (9e6a031) 88.20%.
Report is 32 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #526      +/-   ##
==========================================
+ Coverage   88.18%   88.20%   +0.02%     
==========================================
  Files          46       46              
  Lines       14430    14493      +63     
==========================================
+ Hits        12725    12784      +59     
- Misses       1705     1709       +4     
Files Changed Coverage Δ
pym/bob/languages.py 89.83% <ø> (ø)

... and 15 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkloetzke
Copy link
Member

It looks like CYGWIN_VERSION_DLL_EPOCH was simply removed with no apparent reasoning given. 🤔 I would propose to use -1 in case it's undefined to keep compatibility with older installations:

#ifndef CYGWIN_VERSION_DLL_EPOCH
#define CYGWIN_VERSION_DLL_EPOCH -1
#endif

Otherwise the fingerprint would not be backwards compatible...

@mahaase
Copy link
Contributor Author

mahaase commented Aug 15, 2023

maybe like this?

printf("%s/%d.%d.%d\n", CYGWIN_VERSION_DLL_IDENTIFIER,
#ifdef CYGWIN_VERSION_DLL_EPOCH
        CYGWIN_VERSION_DLL_EPOCH,
        CYGWIN_VERSION_DLL_MAJOR,
#else
        CYGWIN_VERSION_DLL_MAJOR / 1000,
        CYGWIN_VERSION_DLL_MAJOR % 1000,
#endif
        CYGWIN_VERSION_DLL_MINOR);

@jkloetzke
Copy link
Member

Sure, that's also possible...

there is no CYGWIN_VERSION_DLL_EPOCH anymore. epoch and major has to be calculated.
define CYGWIN_VERSION_DLL_MAJOR 3004 means version 3.4.x.
@mahaase mahaase force-pushed the bugfix/msys-version branch from 5f2f106 to 9e6a031 Compare August 21, 2023 07:07
@mahaase
Copy link
Contributor Author

mahaase commented Aug 21, 2023

updated. 👍

@jkloetzke jkloetzke merged commit eb0f993 into BobBuildTool:master Aug 21, 2023
@jkloetzke
Copy link
Member

Thanks!

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