Bug 157002 - x11-misc/adesklets-0.6.1-r1 won't compile
Bug#: 157002 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: desktop-dock@gentoo.org Reported By: dliana@frontiernet.net
Component: Applications
URL: 
Summary: x11-misc/adesklets-0.6.1-r1 won't compile
Keywords:  
Status Whiteboard: 
Opened: 2006-12-03 09:16 0000
Description:   Opened: 2006-12-03 09:16 0000
Making install in doc
make[1]: Entering directory
`/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/doc'
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info ||
/bin/sh /bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info
/bin/sh: /bin/sh: cannot execute binary file
make[1]: *** [install] Error 126
make[1]: Leaving directory
`/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/doc'
make: *** [install-recursive] Error 1

!!! ERROR: x11-misc/adesklets-0.6.1-r1 failed.

------- Comment #1 From Dave 2006-12-03 09:16:46 0000 -------
Created an attachment (id=103282) [details]
emerge --info

------- Comment #2 From ebfe 2006-12-03 10:58:01 0000 -------
your cflags are heavilly borked and usually worthless.

read the gcc docs, fix your cflags, reemerge glibc & coreutils, retry, done.

------- Comment #3 From Dave 2006-12-03 14:27:56 0000 -------
That's not the problem... 
It's because there is "/bin/sh /bin/sh"
Look on the 5th line down

------- Comment #4 From ebfe 2006-12-03 14:56:05 0000 -------
read the gcc docs, fix your cflags, reemerge glibc & coreutils, retry, done.

------- Comment #5 From Dave 2006-12-03 15:09:33 0000 -------
That's not the problem - why are you try...  shouldn't the line that says:
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info 
/bin/sh /bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info

Be:
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info 
/bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info

I modified that, and it works.  Why are you trying to execute /bin/sh with /bin
sh?  That makes no sense and is a bug.

------- Comment #6 From Dave 2006-12-03 15:12:28 0000 -------
That's not the problem.  shouldn't the line that says:
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info 
/bin/sh /bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info

Be:
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info 
/bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info

I modified that, and it works.  Why are you trying to execute /bin/sh with /bin
sh?  That makes no sense and is a bug.

------- Comment #7 From Dave 2006-12-03 15:16:22 0000 -------
My code didn't quite copy,

It should be:
test -d /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info ||
/bin/sh
/var/tmp/portage/x11-misc/adesklets-0.6.1-r1/work/adesklets-0.6.1/install-sh -d
 /var/tmp/portage/x11-misc/adesklets-0.6.1-r1/image//usr/share/info

Note that after the || there was a "/bin/sh /bin/sh" which is causing the
failure, since /bin/sh is a binary file not an ascii file

------- Comment #8 From Jakub Moc (RETIRED) 2006-12-23 01:28:55 0000 -------
*** Bug 158887 has been marked as a duplicate of this bug. ***

------- Comment #9 From Samuli Suominen 2006-12-23 02:15:15 0000 -------
(In reply to comment #4)
> read the gcc docs, fix your cflags, reemerge glibc & coreutils, retry, done.
> 

You don't have to be mean about it since that would only waste his time and do
no good since it has nothing to do with this problem.

------- Comment #10 From Botykai Zsolt 2007-01-24 07:24:52 0000 -------
Dave, please tell us what to modify where, so we can compile it too!
Thanks in advance,
Zsolt

------- Comment #11 From Michele Noberasco 2007-01-24 08:45:03 0000 -------
Added some magic sed to fix this issue. Thanks for the submission!

------- Comment #12 From Michele Noberasco 2007-01-24 08:47:48 0000 -------
*** Bug 155847 has been marked as a duplicate of this bug. ***

------- Comment #13 From Botykai Zsolt 2007-01-24 13:55:37 0000 -------
Thanks, it compiled for me!