Bug 2026656 - Requiring /usr/bin/latex during build breaks flatpaked simple-scan
Summary: Requiring /usr/bin/latex during build breaks flatpaked simple-scan
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-backends
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-25 12:36 UTC by Alessio
Modified: 2021-12-01 11:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-01 11:24:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alessio 2021-11-25 12:36:24 UTC
Hello.
I was trying to build a flatpak for simple-scan (just for fun, probably there will be other issues).

simple-scan requires sane-backends
But it happens that when it will install the build requirements inside the "container", %{_bindir} is /app/bin and not the canonical /usr/bin
(I'm not sure of what I'm writing).
So dnf fails to find the package containing latex because of no package contains /app/bin/latex

Is it possible to modify the spec file in order to have

  BuildRequires: texlive-base

Instead of

  BuildRequires: %{_bindir}/latex

What do you think?

Comment 1 Zdenek Dohnal 2021-12-01 11:24:29 UTC
Hi Alessio,

I'm sorry for missing this one and thanks for the report!

Yep, LGTM - the whole package is brought in either way IIUC, so the change is ok, I'll merge your PR.

Merged as https://src.fedoraproject.org/rpms/sane-backends/c/5da3040a6b2ad52bfa9b141b5aca19ce7c9a9ce1?branch=rawhide .

Is it okay for you to have just in rawhide or do you need it in F35 as well?

Comment 2 Alessio 2021-12-01 11:40:01 UTC
Great. Thanks.

I think that it is more safe to keep it only in rawhide. Is it?

Comment 3 Zdenek Dohnal 2021-12-01 11:58:03 UTC
IMO there is no concern about it, but let's keep there for a while. Usually I get it into stable release once there is a bug which needs fixing.


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