Skip to content

Commit

Permalink
Workaround for swig-4.2.0 missing fragment dependency
Browse files Browse the repository at this point in the history
Fixes error:
repoPYTHON_wrap.cxx:5656:56: error: expected template-name before '<' token
 5656 |     struct SwigPyMapIterator_T : SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper>

due to missing SWIG %fragment dependency on SwigPyIterator_T which provides the missing base class SwigPyIteratorClosed_T.

See swig/swig#2744
  • Loading branch information
wsfulton authored and kontura committed Jan 9, 2024
1 parent 7d27fef commit b84f2f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings/libdnf5/repo.i
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
%import "common.i"
%import "conf.i"

#if SWIG_VERSION == 0x040200
// https://github.com/swig/swig/issues/2744
%fragment("SwigPyIterator_T");
#endif

%exception {
try {
$action
Expand Down

0 comments on commit b84f2f9

Please sign in to comment.