Bug 116348

Summary: --use-service=name --libs broken
Product: [Fedora] Fedora Reporter: Martin Blom <martin>
Component: ORBit2Assignee: Mark McLoughlin <markmc>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-19 17:53:59 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 Martin Blom 2004-02-20 13:22:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
orbit2-config --libs --use-service=name

returns -lORBitCosNaming when it should in fact return -lORBitCosNaming-2.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. orbit2-config --libs --use-service=name


Actual Results:  -pthread -Wl,--export-dynamic -lORBitCosNaming
-lORBit-2 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm


Expected Results:  -pthread -Wl,--export-dynamic -lORBitCosNaming-2
-lORBit-2 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm


Additional info:

--- /usr/bin/orbit2-config~     2003-10-22 23:41:40.000000000 +0200
+++ /usr/bin/orbit2-config      2004-02-20 14:20:04.000000000 +0100
@@ -95,7 +95,7 @@
    --use-service=*)
        case $optarg in
            name)
-               services="$services -lORBitCosNaming"
+               services="$services -lORBitCosNaming-2"
                ;;
            *)
                usage

Comment 1 Mark McLoughlin 2004-03-19 17:53:59 UTC
This script is deprecated and you should use 

 $> pkg-config --libs ORBit-CosNaming-2.0

I've fixed this upstream anyway:

2004-03-19  Mark McLoughlin  <mark>
                                                                     
                                                                         
        * orbit2-config.in: return -lORBitCosNaming-2 with
        --use-service=name rather than -lORBitCosNaming.
        This script is still deprecated old cruft, though.