Bug 1039975

Summary: mysql_config nonzero return code on usage message
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: mariadbAssignee: Jakub Dorňák <jdornak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: hhorak, jdornak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1039976 1039977 1039978 (view as bug list) Environment:
Last Closed: 2016-06-15 10:56:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1039976, 1039977, 1039978    

Description Karel Volný 2013-12-10 12:57:44 UTC
Description of problem:
Trying to run mysql_config without parameters, it returns nonzero exit code. But this is not an error, the application should return zero.

Version-Release number of selected component (if applicable):
mariadb-5.5.33a-1.fc19

How reproducible:
always

Steps to Reproduce:
1. mysql_config >/dev/null; echo $?

Actual results:
1

Expected results:
0

Additional info:
from the manpage:

"If you invoke mysql_config with no options, it displays a list of all options that it supports, and their values:"

so, invoking without parameters is correct usage ...

note also that it'd be nice to support the "--help" option, but that's more RFE material than a bug

Comment 1 Honza Horak 2013-12-12 15:53:41 UTC
Upstream bug report: https://mariadb.atlassian.net/browse/MDEV-5436
Let's see what they think about such behaviour.

Comment 2 Honza Horak 2014-02-21 15:15:47 UTC
Upstream fix:
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4077

Comment 3 Jaroslav Reznik 2015-03-03 16:57:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 4 Fedora Admin XMLRPC Client 2015-08-11 10:03:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Honza Horak 2016-06-15 10:56:22 UTC
According to upstream, it's been fixed in 5.5.36, so closing.