Bug 2172617 - libfplll: data missing from header files
Summary: libfplll: data missing from header files
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: libfplll
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-22 18:02 UTC by Jerry James
Modified: 2025-10-23 11:20 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fplll fplll issues 509 0 None open FPLLL_SONUM macro has no substitution 2023-02-22 18:45:03 UTC
Github fplll fplll issues 510 0 None open Handling FPLLL_DEFAULT_STRATEGY(_PATH) for system-wide library 2023-02-23 01:50:31 UTC
Github fplll fpylll issues 221#issuecomment-1440653252 0 None open Loading strategies 2023-02-23 01:50:31 UTC
Github passagemath passagemath issues 1330 0 None open passagemath-standard: fplll/strategies/default.json not found 2025-10-23 11:20:43 UTC

Description Jerry James 2023-02-22 18:02:34 UTC
Description of problem:
I was just looking at a python-fpylll issue (https://github.com/fplll/fpylll/issues/221).  There is a proposed fix for the issue, but it requires libfplll to have good values for FPLLL_DEFAULT_STRATEGY_PATH and FPLLL_DEFAULT_STRATEGY in /usr/include/fplll/defs.h.  In Rawhide, at least, both of those are empty strings.  They should be:

#ifndef FPLLL_DEFAULT_STRATEGY_PATH
#define FPLLL_DEFAULT_STRATEGY_PATH "/usr/share/fplll/strategies"
#endif

#ifndef FPLLL_DEFAULT_STRATEGY
#define FPLLL_DEFAULT_STRATEGY "default.json"
#endif

While poking around, I also noticed that fplll_config.h has this:

#define FPLLL_SONUM @FPLLL_SONUM@

which probably doesn't do anybody any good.  I don't know that anything consumes FPLLL_SONUM, but we should probably see why substitution failed there.

None of this is urgent.  I'm just filing a bug so it doesn't get forgotten.  We should fix it sometime.

Version-Release number of selected component (if applicable):
libfplll-5.4.4-2.fc38

How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ben Beasley 2023-02-22 18:45:03 UTC
Thanks for reporting these. I’ve asked upstream what they want to do about the FPLLL_SONUM macro[1], which I suspect has never had a usable value.

I agree about the correct values of the strategy path macros. I will look into whether this is an upstream bug or an issue with the way we are building the package.

[1] https://github.com/fplll/fplll/issues/509

Comment 2 Ben Beasley 2023-02-22 19:18:25 UTC
I have commented on the fpylll upstream issue[1] and opened an issue with fplll upstream[2] to talk about it. I’ll wait a little while for discussion and then patch this downstreame-only if I have to.

[1] https://github.com/fplll/fpylll/issues/221#issuecomment-1440653252
[2] https://github.com/fplll/fplll/issues/510

Comment 3 Jerry James 2023-02-22 21:27:52 UTC
Thanks for the quick action, Ben.  I'll keep an eye on those upstream issues.

Comment 4 Ben Beasley 2023-03-04 14:03:17 UTC
I suggested a patch upstream[1]. I am waiting for maintainer and community review before doing anything to the Fedora package.

[1] https://github.com/fplll/fplll/pull/512

Comment 5 Fedora Release Engineering 2023-08-16 08:14:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 6 Ben Beasley 2023-10-19 18:10:43 UTC
The useless/unusable @FPLLL_SONUM@ in fplll/fplll_config.h is removed in libfplll 5.4.5. The bug and PR for FPLLL_DEFAULT_STRATEGY(_PATH) seem to be stalled. There aren’t any objections to the proposed solution, but it doesn’t seem to be moving forward at the moment either.

Comment 7 Jerry James 2023-10-20 02:22:40 UTC
Thanks for the update, Ben.

Comment 8 Aoife Moloney 2024-11-08 10:48:07 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Ben Beasley 2024-11-14 15:48:59 UTC
Upstream just released version 5.5.0, but there was no progress on this issue. Updating the version to rawhide.

Comment 10 Aoife Moloney 2025-02-26 12:53:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 11 Ben Beasley 2025-10-23 11:20:44 UTC
Changing the version to Rawhide again. Just waiting on upstream to actually consider my suggested fix. People have been committing other things, but my PR for this has been languishing for 2.5 years now.


Note You need to log in before you can comment on or make changes to this bug.