Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 269372

Summary: x11-base/xorg-server-1.5.3-r6 install fails with sys-apps/coreutils-7.2+ and sys-devel/automake-1.10b
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: martin
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=22547
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 319443    

Description SpanKY gentoo-dev 2009-05-11 08:35:37 UTC
newer coreutils will barf on purpose if you specify the same file multiple times with `install`.  as such, xorg-server dies:

test -z "/usr/include/xorg" || /bin/mkdir -p "/var/tmp/portage/x11-base/xorg-server-1.5.3-r6/image//usr/include/xorg"
 /usr/bin/install -c -m 644 compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h xf86PciInfo.h xf86Priv.h xf86Privstr.h xf86Resources.h xf86cmap.h xf86fbman.h xf86str.h xf86Xinput.h xisb.h xf86xv.h xf86xvmc.h atKeynames.h xf86Version.h xorgVersion.h xf86sbusBus.h xf86xv.h xf86xvmc.h xf86xvpriv.h '/var/tmp/portage/x11-base/xorg-server-1.5.3-r6/image//usr/include/xorg'
/usr/bin/install: will not overwrite just-created `/var/tmp/portage/x11-base/xorg-server-1.5.3-r6/image//usr/include/xorg/xf86xv.h' with `xf86xv.h'
/usr/bin/install: will not overwrite just-created `/var/tmp/portage/x11-base/xorg-server-1.5.3-r6/image//usr/include/xorg/xf86xvmc.h' with `xf86xvmc.h'
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-05-11 12:04:31 UTC
I can't reproduce with coreutils 7.4. Are you doing something weird/special with coreutils?

Thanks
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-05-11 12:38:13 UTC
Could you attach your full build.log? Because the same section of my build log shows that each header is installed using its own "install" call, while yours seems to "pack" all headers within a same dir into one "install" call...

Thanks
Comment 3 SpanKY gentoo-dev 2009-05-11 16:30:24 UTC
it's probably a feature of using autoconf-2.63b (which i am)

basically one of the Makefile.am incorrectly lists the file multiple times in the relevant variable
Comment 4 SpanKY gentoo-dev 2009-05-11 16:32:04 UTC
err, automake-1.10b ... but you probably want both installed at the same time
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-06-19 14:02:52 UTC
@Mike,

any updates on this?

Thanks
Comment 6 SpanKY gentoo-dev 2009-06-19 21:16:04 UTC
sorry, but what exactly are you expecting from me ?  ive pointed out the problem in the xorg build system ...
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-06-19 21:23:58 UTC
1) no, I can't reproduce and I have the versions you mentioned, both on ~x86 and ~amd64

2) can you still reproduce with xorg-server 1.6?

Thanks
Comment 8 SpanKY gentoo-dev 2009-06-19 23:25:16 UTC
looking the relevant Makefile.am seems pretty clear to me

hw/xfree86/common/Makefile.am:
...
if XV
...
XVSDKINCS = xf86xv.h xf86xvmc.h
endif
...
sdk_HEADERS = ... $(XVSDKINCS) ... xf86xv.h xf86xvmc.h ...
...

that sdk_HEADERS setting is wrong
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2009-06-20 07:38:16 UTC
Thanks for the pointer. But could you at least tell me how I can reproduce the bug so I can fix other bugs as well (I'm pretty sure this won't be the only place where files are installed twice).

Thanks
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2009-07-03 09:34:35 UTC
Turns out I was right, it wasn't the only place that needed a change. I would have liked being able to reproduce it myself...
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-07-08 12:29:21 UTC
Patch is in xorg-server master and 1.6.2.

Thanks
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-07-15 12:47:51 UTC
*** Bug 277691 has been marked as a duplicate of this bug. ***