Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 92693
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Marcelo Goes <vanquirius@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Radek Podgorny <radek@podgorny.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
links-2.1_pre17-r2.ebuild.diff links-2.1_pre17-r2.ebuild.diff patch Marcelo Goes 2005-05-25 10:45 0000 829 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 92693 depends on: Show dependency tree
Bug 92693 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-15 05:01 0000
The current way links is built is wrong because it has "gcc" hardcoded in the
Makefiles (or somewhere else?). It just doesn't take CBUILD and CHOST into
account which results in broken binaries (cannot be run on target system).

------- Comment #1 From Marcelo Goes 2005-05-25 10:45:47 0000 -------
Created an attachment (id=59804) [details]
links-2.1_pre17-r2.ebuild.diff

I took a look at the configure script and found this:

  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.

Thus perhaps setting CC before the configure script is run fixes it?
Please tell me if this patch works for you.

------- Comment #2 From Radek Podgorny 2005-05-25 11:51:58 0000 -------
AFAIK setting CC worked for me but this is not an acceptable solution. Portage
itself should take care of build/target architecture so one can emerge world for
another arch without dealing with this...

P.S.: Sorry, can't test it now as my system is not prepared... :-(

------- Comment #3 From Marcelo Goes 2005-05-25 13:20:08 0000 -------
(In reply to comment #2)
> Portage itself should take care...

Yep, that's why I'm adding export CC="$(tc-getCC)" to the ebuild, it should
define CC so that you don't have to.

> P.S.: Sorry, can't test it now as my system is not prepared... :-(

No problem. Let me know when you can so that we can sort this out :-).

------- Comment #4 From Radek Podgorny 2005-05-25 13:36:54 0000 -------
OK, thanks. Will try ASAP...

------- Comment #5 From Radek Podgorny 2005-05-31 05:02:31 0000 -------
This patch seem to work as expected, please include. Don't have a machine to
try
it on but in case it won't work, I'll reopen this one.

------- Comment #6 From Marcelo Goes 2005-06-07 14:07:29 0000 -------
Alright, adding it to -r2.
Thanks for reporting.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug