View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012442 | Rocky-Linux-10 | leptonica | public | 2026-04-14 11:44 | 2026-04-14 11:45 |
| Reporter | Taketo Kabe | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | i586 | OS | Rocky Linux | OS Version | 10.1 |
| Product Version | 10.1 | ||||
| Summary | 0012442: leptonica fails to compile when mingw is installed | ||||
| Description | leptonica 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 Reproduce | dnf 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 Information | Following 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 ``` | ||||
| Tags | No tags attached. | ||||
|
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 |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-04-14 11:44 | Taketo Kabe | New Issue | |
| 2026-04-14 11:45 | Taketo Kabe | Note Added: 0013234 |