<?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>135009</bug_id>
          
          <creation_ts>2006-05-31 02:37 0000</creation_ts>
          <short_desc>app-misc/mc-4.6.1-r1 - lazy bindings</short_desc>
          <delta_ts>2009-08-05 11:35:17 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>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>122768</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ticho@gentoo.org</reporter>
          <assigned_to>maintainer-needed@gentoo.org</assigned_to>
          <cc>lanius@gentoo.org</cc>
    
    <cc>qa@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2006-05-31 02:37:21 0000</bug_when>
            <thetext>Emerge of midnight commander bombs out with &quot;stricter&quot; in FEATURES:

make[2]: Leaving directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1/syntax&apos;
make[1]: Leaving directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1/syntax&apos;
make[1]: Entering directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1&apos;
make[2]: Entering directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1&apos;
make[2]: Nothing to be done for `install-exec-am&apos;.
make[2]: Nothing to be done for `install-data-am&apos;.
make[2]: Leaving directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1&apos;
make[1]: Leaving directory `/var/tmp/portage/mc-4.6.1-r1/work/mc-4.6.1&apos;
 * Applying mc-4.6.0-ebuild-syntax.patch ...                                      [ ok ]
&gt;&gt;&gt; Completed installing mc-4.6.1-r1 into /var/tmp/portage/mc-4.6.1-r1/image/

man:
gzipping man page: mc.1
gzipping man page: mcedit.1
gzipping man page: mcview.1
strip: i686-pc-linux-gnu-strip --strip-unneeded
   usr/bin/mc
   usr/bin/mcmfmt
   usr/lib/mc/cons.saver

QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS=&apos;-Wl,-z,now&apos; emerge mc
LAZY usr/lib/mc/cons.saver


!!! ERROR: app-misc/mc-4.6.1-r1 failed.
Call stack:
  misc-functions.sh, line 411:   Called install_qa_check
  misc-functions.sh, line 166:   Called die

!!! Aborting due to QA concerns:  setXid lazy bindings,
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! install_qa_check failed; exiting.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2006-05-31 15:03:17 0000</bug_when>
            <thetext>After poking in bugzilla for bugs for similar issues, I came up with this patch to fix this:

--- mc-4.6.1-r1.ebuild	3 May 2006 14:47:46 -0000	1.1
+++ mc-4.6.1-r1.ebuild	31 May 2006 22:02:18 -0000
@@ -64,6 +64,9 @@
 src_compile() {
 	append-flags -I/usr/include/gssapi
 
+	# Prevent lazy bindings for +s binary cons.saver (bug #135009)
+	append-ldflags $(bindnow-flags)
+
 	filter-flags -malign-double
 
 	local myconf=&quot;&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2006-05-31 15:23:16 0000</bug_when>
            <thetext>Ok, another patch - this time we force necessary LDFLAGS only for cons.saver binary.

--- mc-4.6.1-r1.ebuild	3 May 2006 14:47:46 -0000	1.1
+++ mc-4.6.1-r1.ebuild	31 May 2006 22:22:34 -0000
@@ -59,6 +59,10 @@
 		epatch ${DISTDIR}/${P}-utf8.patch.bz2
 	fi
 	epatch ${FILESDIR}/${P}-nonblock.patch
+
+	# Prevent lazy bindings in cons.saver binary (bug #135009)
+	sed -i -e &quot;s:^\(cons_saver_LDADD = .*\):\1 $(bindnow-flags):&quot; \
+		src/Makefile.in
 }
 
 src_compile() {
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>exg@gentoo.org</who>
            <bug_when>2006-06-27 14:33:21 0000</bug_when>
            <thetext>Closing, Ticho fixed it himself a while ago.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>