Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134956 - sys-apps/mawk: links with hardcoded /lib/libm.so.6 path
Summary: sys-apps/mawk: links with hardcoded /lib/libm.so.6 path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 13:48 UTC by Natanael Copa
Modified: 2006-05-31 02:23 UTC (History)
1 user (show)

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


Attachments
Patch for ebuild (mawk-mathlib.patch,296 bytes, patch)
2006-05-30 13:50 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2006-05-30 13:48:46 UTC
gcc -march=i386 -Os -pipe -fomit-frame-pointer -DMAWK -I..   -c -o rexp3.o rexp3.c
make[1]: Leaving directory `/var/tmp/portage/mawk-1.3.3/work/mawk-1.3.3/rexp'
gcc -march=i386 -Os -pipe -fomit-frame-pointer -o mawk parse.o scan.o memory.o main.o hash.o execute.o code.o da.o error.o init.o bi_vars.o cast.o print.o bi_funct.o kw.o jmp.o array.o field.o  split.o re_cmpl.o zmalloc.o fin.o files.o  scancode.o matherr.o  fcall.o version.o missing.o rexp/rexp.o rexp/rexp0.o rexp/rexp1.o rexp/rexp2.o rexp/rexp3.o  /lib/libm.so.6
gcc: /lib/libm.so.6: No such file or directory
make: *** [mawk] Error 1

This is caused by the line:

  export MATHLIB="/lib/libm.so.6"

in the ebuild. To fix, replace "/lib/libm.so.6" with "-lm".

  sed -i 's:/lib/libm.so.6:-lm:' mawk-1.3.3.ebuild

Please apply.
Comment 1 Natanael Copa 2006-05-30 13:50:04 UTC
Created attachment 87910 [details, diff]
Patch for ebuild

This patch show the fix.
Comment 2 solar (RETIRED) gentoo-dev 2006-05-31 02:12:53 UTC
Jon,
26 months ago you made a change to the ebuild to attempt to correct the 
problem in bug #45636 but you used a hardcoded full path.
http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/mawk/mawk-1.3.3.ebuild?r1=1.4&r2=1.5
Comment 3 solar (RETIRED) gentoo-dev 2006-05-31 02:23:07 UTC
Fixed InCVS. Thanks for reporting.