<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>97548</bug_id>
          
          <creation_ts>2005-06-30 14:28 0000</creation_ts>
          <short_desc>net-libs/libnet and sys-cluster/torque both own /usr/lib/libnet.a</short_desc>
          <delta_ts>2005-07-04 18:12:02 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>patl@sfu.ca</reporter>
          <assigned_to>hp-cluster@gentoo.org</assigned_to>
          <cc>netmon@gentoo.org</cc>
    
    <cc>robbat2@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>patl@sfu.ca</who>
            <bug_when>2005-06-30 14:28:42 0000</bug_when>
            <thetext>libnet and torque both install an archive called libnet.a in /usr/lib.

# equery belongs /usr/lib/libnet.a
[ Searching for file(s) /usr/lib/libnet.a in *... ]
net-libs/libnet-1.1.2.1-r1 (/usr/lib/libnet.a)
sys-cluster/torque-1.2.0_p1 (/usr/lib/libnet.a)

Steps to reproduce:
1. emerge libnet
2. emerge torque
3. equery belongs /usr/lib/libnet.a

This is probably fundamentally an upstream problem, as calling something in a PBS system libnet seems kind of insane to me, but this should be checked for.

Note that libnet installs /usr/lib/libnet.so*, whereas torque does not. Any programs that later attempt to link against torque fail because collect picks up libnet.so from libnet before libnet.a from torque.

Also note that this issue likely affects sys-cluster/openpbs as well, but I haven&apos;t tested this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-07-04 14:21:08 0000</bug_when>
            <thetext>is the libnet.a from the same source code, or is it totally different?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>patl@sfu.ca</who>
            <bug_when>2005-07-04 14:34:14 0000</bug_when>
            <thetext>Different source trees. All the net-libs/libnet source files for the library are prefixed libnet_, appearing 
different in readelf. There&apos;s also a lot more source files included in libnet than there are in the torque 
libnet.a.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-07-04 15:57:38 0000</bug_when>
            <thetext>looking at the libs of torque:
/usr/lib/libattr.a
/usr/lib/libcmds.a
/usr/lib/liblog.a
/usr/lib/libnet.a
/usr/lib/libpbs.a
/usr/lib/libsite.a
/usr/lib/pbs_sched.a

I see two possible options:
1. move them to /usr/lib/torque
2. rename them to libtorque_XXX or something similar.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-07-04 16:59:43 0000</bug_when>
            <thetext>ok after talking with patl directly, option #1 is best, as very few things link
against torque (and none of them are in the tree yet). They are only things like
alternative schedulers (eg maui) and interfaces for PBS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-07-04 18:12:02 0000</bug_when>
            <thetext>fixed in cvs now, using /usr/$libdir/torque.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>