View Issue Details

IDProjectCategoryView StatusLast Update
0012442Rocky-Linux-10leptonicapublic2026-04-14 11:45
ReporterTaketo Kabe Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformi586OSRocky LinuxOS Version10.1
Product Version10.1 
Summary0012442: leptonica fails to compile when mingw is installed
Descriptionleptonica fails to compile when RPM variable %{mingw_debug_package} is defined,
that is, defined in /usr/lib/rpm/macros.d/macros.mingw, which is provided by mingw-filesystem-base-148-7.el10.noarch package.

koji build seems to not suffer since it does not pull in the mingw packages firsthand.

I tried to report this to bugzilla.redhat.com, but it lacks category RHEL, hence reporting here.
Steps To Reproducednf install mingw-filesystem-base
rpm -ivh leptonica-1.84.1-5.el10.src.rpm
rpmbuild -v -bb --noclean -D 'dist .el10' SPECS/leptonica.spec
Additional InformationFollowing patch seems to fix the problem. It puts %{?mingw_debug_package} inside %if %{with mingw} clause.

```
--- leptonica.spec-1.84.1-5 2024-10-29 09:00:00.000000000 +0900
+++ leptonica.spec 2026-04-14 20:36:36.512262161 +0900
@@ -114,11 +114,11 @@ BuildArch: noarch

 %description -n mingw64-%{name}
 MinGW Windows Leptonica library.
-%endif
-

 %{?mingw_debug_package}

+%endif
+

 %prep
 %autosetup -p1
```
TagsNo tags attached.

Activities

Taketo Kabe

Taketo Kabe

2026-04-14 11:45

reporter   ~0013234

The failins rpmbuild is like this:

2026-04-14 16:06:37 RPM build errors:
2026-04-14 16:06:37 Could not open %files file /home/kabe/r10builds/leptonica-r10/BUILD/leptonica-1.84.1/mingw32-debugfiles.list: No such file or directory

Issue History

Date Modified Username Field Change
2026-04-14 11:44 Taketo Kabe New Issue
2026-04-14 11:45 Taketo Kabe Note Added: 0013234