Bug 2386875 - apr-1-config duplicated in /usr/sbin with different output
Summary: apr-1-config duplicated in /usr/sbin with different output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: apr
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Luboš Uhliarik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-06 14:51 UTC by Vladimír Chlup
Modified: 2025-08-15 01:04 UTC (History)
4 users (show)

Fixed In Version: apr-1.7.6-3.fc43 apr-1.7.6-3.fc42
Clone Of:
Environment:
Last Closed: 2025-08-15 01:04:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vladimír Chlup 2025-08-06 14:51:06 UTC
On Fedora 42 when I install apr-devel, an apr-1-config script gets installed to /usr/bin as in the previous Fedora 41, but also additionally to /usr/sbin.

These two variants differ in output:

`/usr/bin/apr-1-config --includedir` outputs `/usr/include/apr-1`

but

`/usr/sbin/apr-1-config --includedir` outputs `/usr/sbin/apr-1-config//usr/include/apr-1`

The variant that gets used depends on `PATH` (I discovered this when my fedora:42 docker image failed to compile httpd because of missing apr because `which apr-1-config` returned the second variant. My VM worked fine, because the first variant got used.).

It seems there are two issues:  

1) the script gets installed to /usr/sbin (a change from fedora 41, might be related to /usr/(s)bin merge, but frankly I don't understand how this happens) – imho it should be only in /usr/bin (or at least the output should not differ)

2) the script detects a cross compilation and that's why the output is different (probably an issue for the upstream apr)


If there is any additional info needed, please let me know.

Reproducible: Always

Steps to Reproduce:
1. run dnf install apr-devel
2. execute `/usr/bin/apr-1-config --includedir`
3. execute `/usr/sbin/apr-1-config --includedir`
Actual Results:
step 2 outputs /usr/include/apr-1
step 3 outputs /usr/sbin/apr-1-config//usr/include/apr-1

Expected Results:
step 2 outputs /usr/include/apr-1
step 3 outputs /usr/include/apr-1 OR bash: /usr/sbin/apr-1-config: No such file or directory

Comment 1 Joe Orton 2025-08-07 15:59:34 UTC
Fix in https://src.fedoraproject.org/rpms/apr/pull-request/6

Comment 2 Vladimír Chlup 2025-08-08 13:51:39 UTC
Can confirm it works.

[root@7b896ef66c42 /]# /usr/sbin/apr-1-config --includedir
/usr/include/apr-1
[root@7b896ef66c42 /]# /usr/bin/apr-1-config --includedir
/usr/include/apr-1

Thank you.

Comment 3 Joe Orton 2025-08-12 07:40:29 UTC
Package: apr-1.7.6-3.fc43
Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=2789697

Comment 4 Fedora Update System 2025-08-12 08:04:50 UTC
FEDORA-2025-04dfcc0185 (apr-1.7.6-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-04dfcc0185

Comment 5 Fedora Update System 2025-08-13 00:59:03 UTC
FEDORA-2025-04dfcc0185 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-04dfcc0185`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-04dfcc0185

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-08-15 01:04:08 UTC
FEDORA-2025-04dfcc0185 (apr-1.7.6-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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