Bug 32568

Summary: mingw-termcap - consider adding a pkgconfig capability.
Product: Mageia Reporter: Aurelian R <arusanu>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mingw-termcap-1.3.1-23.mga9.src.rpm, faudio-22.12-1.mga9.src.rpm CVE:
Status comment:
Attachments: source file for termcap.pc
proposed mingw-termcap spec file
mingw-faudio spec with building limited to x86_64

Description Aurelian R 2023-11-25 14:07:03 CET
Created attachment 14182 [details]
source file for termcap.pc

The package mingw-termcap, doesn't provide a pkgconfig file that newer packages look for during build. 
Attached is a termcap.spec file and a termcap.pc.in file that works for me, hope this will help.

Regards, A.

PS: Also, got found that the pkgconfig files for mingw-faudio seems to not be properly setup, they set "libdir=%{prefix}" not to "libdir=%{prefix}/lib" and similarly for includedir. Here is a simple hack for it that can be put in the %install section of faudio.spec file:
"
# Fix package config file for MinGW.
sed -i 's|libdir=.*|libdir=${prefix}/lib|' $RPM_BUILD_ROOT%{mingw32_libdir}/pkgconfig/FAudio.pc
sed -i 's|includedir=.*|includedir=${prefix}/include|' $RPM_BUILD_ROOT%{mingw32_libdir}/pkgconfig/FAudio.pc
sed -i 's|libdir=.*|libdir=${prefix}/lib|' $RPM_BUILD_ROOT%{mingw64_libdir}/pkgconfig/FAudio.pc
sed -i 's|includedir=.*|includedir=${prefix}/include|' $RPM_BUILD_ROOT%{mingw64_libdir}/pkgconfig/FAudio.pc
"
Comment 1 Aurelian R 2023-11-25 14:09:38 CET
Created attachment 14183 [details]
proposed mingw-termcap spec file
Comment 2 Lewis Smith 2023-11-25 21:54:00 CET
Thank you for the reports; a bit confusing between MinGW, mingw-termcap, termcap, mingw-faudio and faudio!
I have put the SRPMs for what I think are the relevant packages:
 mingw32-termcap
 mingw64-termcap
 mingw32-faudio
 mingw64-faudio

Assigning this bug globally since these SRPMs are little touched:
 mingw-termcap - never since its introduction 10y ago;
 faudio - version updates every year or so.

Source RPM: (none) => mingw-termcap-1.3.1-23.mga9.src.rpm, faudio-22.12-1.mga9.src.rpm
Assignee: bugsquad => pkg-bugs

Comment 3 Aurelian R 2023-11-25 22:53:06 CET
Sorry for being to concise and messing up termcap.spec file name instead of mingw-termcap.spec. 
There is no termcap main package but only mingw-termcap, while mingw-faudio is generated by the main faudio source package and I thought that jamming these together is more efficient as these are just fixes/enhancements not touching main libraries.
Comment 4 Aurelian R 2023-11-28 11:07:11 CET
Created attachment 14186 [details]
mingw-faudio spec with building limited to x86_64

Sorry for the late replay, no net access for couple of days.

The new versions pushed by David, mingw-termcap-1.3.1-24.mga10 and faudio-23.11-1.mga10, have the proper pkconfig files and they work properly.

PS: To free up resources, the noarch mingw-faudio pkgs should be build only on one architecture. Attached is David's latest faudio.spec file that limits the build to x86_64 arch.
Comment 5 Aurelian R 2023-11-28 11:09:20 CET
This report should be closed, as the main requests are properly fixed.
Thanks.
Comment 6 Aurelian R 2024-03-05 20:37:17 CET
David fixed it some time ago. Closing
Comment 7 Aurelian R 2024-03-05 20:42:01 CET
...

Status: NEW => RESOLVED
Resolution: (none) => FIXED