Bug 941804 - rpm --import URL fails if curl isn't installed
Summary: rpm --import URL fails if curl isn't installed
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 15:36 UTC by Lars Müller
Modified: 2015-08-14 15:57 UTC (History)
2 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: No
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Müller 2015-08-14 15:36:26 UTC
This issue was seen while using an image created with SUSEstudio.
Comment 1 Carsten Hoeger 2015-08-14 15:40:29 UTC
Bug has also been reported by Marcus Klein:

---------- Original Message ----------
From: bugreport@novell.com
To: bugreport@novell.com, marcus.klein@open-xchange.com
Date: August 14, 2015 at 3:15 PM
Subject: Bug Report Submission

The following bug report has been submitted:


Name: Marcus Klein
Company: Open-Xchange GmbH
Address: Martinstr. 41
Email: marcus.klein@open-xchange.com
Phone: +49 2761 75252-18
Product: SUSE Linux Enterprise Server 12
Patch Level: latest
Defect: # rpm --import http://software.open-xchange.com/oxbuildkey.pub
error: http://software.open-xchange.com/oxbuildkey.pub: import read failed(2).

Using strace I found out, that rpm uses curl internally:
[pid 6320] execve("/usr/bin/curl", ["/usr/bin/curl", "--silent", "--show-error", "--fail", "--location", "-o", "/var/tmp/rpm-tmp.1roNpA", "http://software.open-xchange.com"...], [/ 46 vars /]) = -1 ENOENT (No such file or directory)

To solve this issue the rpm package should get a dependency on curl.
Other Software and Versions Being Used: none, just SUSE Linux Enterprise Server 12
Steps to Duplicate: 1. Install a minimal SUSE Linux Enterprise Server 12 without having package curl installed.
2. Try to import a build key of a third party software repository with "rpm --import"
Other Scenarios: Yes
Environment Description: Single box having a minimal SUSE Linux Enterprise Server 12 installed.
Problem Environment: Production and Testing
Testing Environment: Yes
Fix: Package curl needs to be installed. This should be done automatically with a package dependency on the rpm package.
Comment 2 Michael Schröder 2015-08-14 15:57:10 UTC
I'd rather add a "you need to install curl" error message before adding a new dependency on curl. (The manpage does not even mention that you can specify an url with --import, so I might as well make that an error...)