Bug 1744558

Summary: RFE: Recognize file:// URLs (and/or absolute paths) for retrieval by spectool
Product: Red Hat Enterprise Linux 8 Reporter: Japheth Cleaver <cleaver-redhat>
Component: rpmdevtoolsAssignee: Michal Domonkos <mdomonko>
Status: CLOSED WONTFIX QA Contact: swm-qe
Severity: low Docs Contact: Mariya Pershina <mpershin>
Priority: medium    
Version: 8.0CC: bugs.michael, extras-qa, kevin, mdomonko, mpershin, ngompa13, qe-baseos-security, twoerner
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1658379 Environment:
Last Closed: 2021-02-24 07:30:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Japheth Cleaver 2019-08-22 12:28:34 UTC
Cloned for RHEL8

+++ This bug was initially created as a clone of Bug #1658379 +++

+++ This bug was initially created as a clone of Bug #1472006 +++

Description of problem:
We have an rpmbuild server which NFS mounts a directory with build artifacts from a separate server farm. We had hoped to use spectool to automatically transfer Source#: files in .SPECS to our SOURCEDIR, which works fine for remote URLs but doesn't do anything useful with absolute paths. 


Version-Release number of selected component (if applicable):
rpmdevtools-8.10-7.el8.noarch

How reproducible:
Always

Steps to Reproduce:
1. Specify a SOURCE# using a file:// URL or absolute path in package.spec
2. spectool -v -g -S -R package.spec
3.

Actual results:
Couldn't fetch file:///mnt/foobar/build/package/1.0.0/package-1.0.0.tar.gz: missing URL

Expected results:
spectool copies the specified file into rpm's %{_sourcedir}



--- Additional comment from Ville Skyttä on 2017-07-18 08:47:25 UTC ---

I opted to remove the internal check for specific protocols altogether, everything that looks like it has a protocol is passed to curl now:

https://pagure.io/rpmdevtools/c/ecbe7300237b74abfbaa7c429b0e0b78468a89c6

--- Additional comment from Japheth Cleaver on 2018-08-27 23:31:41 UTC ---

Thank you. Is there any chance this patch could be backported into RHEL? file URLs are a useful feature for those wanting to automate this.

--- Additional comment from Neal Gompa on 2018-12-11 21:21:14 UTC ---

I can't do anything about RHEL rpmdevtools, a separate bug will need to be filed against the RHEL package.

--- Additional comment from Japheth Cleaver on 2019-03-18 20:27:10 UTC ---

Is there any chance this can be cherry-picked from upstream? Likewise for RHEL8?

https://pagure.io/rpmdevtools/c/ecbe7300237b74abfbaa7c429b0e0b78468a89c6?branch=master

Comment 1 Michal Domonkos 2019-12-03 18:11:34 UTC
*** Bug 1658379 has been marked as a duplicate of this bug. ***

Comment 6 RHEL Program Management 2021-02-24 07:30:29 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.