We could use something like this instead:
```
%{__sed} --in-place=.backup --regexp-extended --_expression_='/^lt_cv_sys_global_symbol_to_cdecl=/{:start;s/""//;s/^(.*)\\$/\1/;T end;N;s/\n//;t start;:end}' configure
diff -u configure.backup configure && mv configure.backup configure
```
It is a bit more complex, due to the branching, but should be understandable.
`lt_cv_sys_global_symbol_to_cdecl` is likely to be the definition causing issues.
I would suggest only using this on an as needed basis.
Hope this is helpful.
--
Jarryd Lisher
Software Engineer
15.08.2022, 00:50, "Jeff Law" <jeffreyalaw@xxxxxxxxx>:
On 8/14/2022 6:29 AM, Jarryd Lisher via devel wrote:Hey,
I figured out that this is mainly caused by the configure script
containing multi-line definitions. So, the hacks only operate on the
first part and land up leaving random lines of nonsense in the file.
You can fix this by adding the following "unwrap" `sed` script just
before the `%{configure}` line:
```
%{__sed} -i -z -e 's/\\\n//g' configure
```
It's not perfect, but is a simple fix to remove those errors from the
configure.That seems like a pretty big hammer with fair potential for changing
something we didn't really want to. Can we key it's behavior somehow on
lines we care about?
Thanks,
Jeff
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue