Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330299 - sys-devel/binutils-config-2: cross-binutils have library header files deleted due to funky `find`
Summary: sys-devel/binutils-config-2: cross-binutils have library header files deleted...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 03:26 UTC by Pinky
Modified: 2010-08-15 05:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.17 KB, text/plain)
2010-07-29 03:27 UTC, Pinky
Details
buildlog for cross-avr/binutils (cross-avr-binutils.log,407.11 KB, text/plain)
2010-07-29 21:39 UTC, Pinky
Details
cross-avr/binutils CONTENTS file as found after instalation (CONTENTS,23.58 KB, text/plain)
2010-08-04 09:16 UTC, Pinky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pinky 2010-07-29 03:26:50 UTC
missing file bfd.h, it is listed in CONTENT file, but not copied to system

cat /var/db/pkg/sys-devel/binutils-2.20.1-r1/CONTENTS | grep bfd.h
obj /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/include/bfd.h f96264231e30a39d0f9d3f1d7081ffac 1277261364

but 
ls /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/include/bfd.h
... No such file or directory


Reproducible: Always

Steps to Reproduce:
install sys-devel/crossdev
crossdev -t avr --g 4.2
Comment 1 Pinky 2010-07-29 03:27:52 UTC
Created attachment 240541 [details]
emerge --info
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-07-29 15:46:38 UTC
Are you sure about the CONTENTS file you grep?

michael@io % cat /var/db/pkg/sys-devel/binutils-2.20.1-r1/CONTENTS | grep bfd.h
obj /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/include/bfd.h f96264231e30a39d0f9d3f1d7081ffac 1273413297
michael@io % la /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/include/bfd.h
-rw-r--r-- 1 root root 188K May  9 15:54 /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/include/bfd.h
michael@io % cat /var/db/pkg/cross-avr/binutils-2.20.1-r1/CONTENTS | grep bfd.h 
obj /usr/lib/binutils/avr/2.20.1/include/bfd.h 1552489d5cc3f119069441fcfc3d90d1 1280185253
michael@io gentoo-dev % la /usr/lib/binutils/avr/2.20.1/include/bfd.h
-rw-r--r-- 1 root root 188K Jul 27 01:00 /usr/lib/binutils/avr/2.20.1/include/bfd.h
Comment 3 Pinky 2010-07-29 21:37:24 UTC
sorry, I have had this on my ming

grep bfd.h /var/db/pkg/cross-avr/binutils-2.20.1-r1/CONTENTS obj /usr/lib/binutils/avr/2.20.1/include/bfd.h 1552489d5cc3f119069441fcfc3d90d1 1280439092

ls /usr/lib/binutils/avr/2.20.1/include/bfd.hls: cannot access /usr/lib/binutils/avr/2.20.1/include/bfd.h: No such file or directory

I reemerged coss tools one more to by absolutely sure, so it is relly missing.
Comment 4 Pinky 2010-07-29 21:39:37 UTC
Created attachment 240637 [details]
buildlog for cross-avr/binutils

nothigh abnormal at first look
Comment 5 SpanKY gentoo-dev 2010-08-02 04:36:08 UTC
post the whole /var/db/pkg/cross-avr/binutils-2.20.1-r1/CONTENTS file as an attachment.  if the file is listed in CONTENTS but does not exist, that really doesnt have anything to do with binutils.

also, run `qcheck cross-avr/binutils` and post the output of it
Comment 6 Pinky 2010-08-04 09:13:28 UTC
qcheck cross-avr/binutils
Checking cross-avr/binutils-2.20.1-r1 ...
 AFK: /usr/lib/binutils/avr/2.20.1/include/bfd.h
 AFK: /usr/lib/binutils/avr/2.20.1/include/ansidecl.h
 AFK: /usr/lib/binutils/avr/2.20.1/include/symcat.h
 AFK: /usr/lib/binutils/avr/2.20.1/include/bfdlink.h
 AFK: /usr/lib/binutils/avr/2.20.1/include/dis-asm.h
 AFK: /usr/lib/binutils/avr/2.20.1/include/libiberty.h
  * 261 out of 267 files are good
Comment 7 Pinky 2010-08-04 09:16:15 UTC
Created attachment 241385 [details]
cross-avr/binutils CONTENTS file as found after instalation
Comment 8 SpanKY gentoo-dev 2010-08-04 18:00:25 UTC
i'm not aware of any Gentoo package that rm's those files/dirs.  i would suggest you try doing:
emerge -C cross-avr/binutils
rm -rf /usr/lib/binutils/avr/
emerge cross-avr/binutils

and see if the files in question exist.  they were def installed by the ebuild, otherwise they never would have been in the CONTENTS file.  that listing is created after the ebuild has finished all install steps.
Comment 9 Pinky 2010-08-11 14:08:12 UTC
(In reply to comment #8)
> i'm not aware of any Gentoo package that rm's those files/dirs.  i would
> suggest you try doing:
> emerge -C cross-avr/binutils
> rm -rf /usr/lib/binutils/avr/
> emerge cross-avr/binutils
Still the same result.
I will do some more investigations letter, now I'm too bussy ...
> 
> and see if the files in question exist.  they were def installed by the ebuild,
> otherwise they never would have been in the CONTENTS file.  that listing is
> created after the ebuild has finished all install steps.
> 

Comment 10 SpanKY gentoo-dev 2010-08-11 16:28:10 UTC
another test:
emerge -b cross-avr/binutils
look at the binary .tbz2 package and make sure bfd.h is in it
emerge -C cross-avr/binutils
see if the bfd.h is removed on the way in

this is a smaller test, so you could even do:
strace -f -o log emerge -C cross-avr/binutils
Comment 11 Pinky 2010-08-14 13:36:48 UTC
(In reply to comment #10)
> another test:
> emerge -b cross-avr/binutils
> look at the binary .tbz2 package and make sure bfd.h is in it
> emerge -C cross-avr/binutils
> see if the bfd.h is removed on the way in
> 
> this is a smaller test, so you could even do:
> strace -f -o log emerge -C cross-avr/binutils
> 

works fine with
=sys-devel/binutils-config-1.9-r4
does not work with
=sys-devel/binutils-config-2
Comment 12 Pinky 2010-08-14 13:37:41 UTC
looks like binutils-config bug
Comment 13 SpanKY gentoo-dev 2010-08-15 05:14:29 UTC
should be fixed with binutils-config-2-r1 ... odd find behavior screwed me up

http://sources.gentoo.org/sys-devel/binutils-config/files/binutils-config-2?r1=1.1&r2=1.2
Comment 14 SpanKY gentoo-dev 2010-08-15 05:15:16 UTC
btw, thanks for narrowing things down.  dont know why my cross-avr/binutils wasnt showing the same as you, but once i cleaned things out and started both from scratch, i could reproduce.