Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449514 - sci-libs/hdf5 does not respect AR
Summary: sci-libs/hdf5 does not respect AR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2012-12-31 21:30 UTC by Agostino Sarubbo
Modified: 2013-01-01 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2012-12-31 21:30:37 UTC
You receive this bug because this package does not respect my system's AR ( x86_64-pc-linux-gnu-ar - /usr/bin/x86_64-pc-linux-gnu-ar ) and calls directly ar - /usr/bin/ar
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export AR
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)"


libtool: link: ar cru .libs/libh5test.a .libs/h5test.o .libs/testframe.o .libs/cache_common.o 
libtool: link: ar cru .libs/libh5tools.a .libs/h5tools.o .libs/h5tools_dump.o .libs/h5tools_str.o .libs/h5tools_utils.o .libs/h5diff.o .libs/h5diff_array.o 
.libs/h5diff_attr.o .libs/h5diff_dset.o .libs/h5diff_util.o .libs/h5trav.o .libs/h5tools_filters.o .libs/h5tools_ref.o .libs/h5tools_type.o 
libtool: link: ar cru .libs/libh5test_fortran.a .libs/tf.o .libs/t.o
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-01-01 19:01:11 UTC
$ AR=/usr/bin/x86_64-pc-linux-gnu-ar ebuild /usr/portage/sci-libs/hdf5/hdf5-1.8.10.ebuild digest clean compile
...
$ grep ' cru ' /var/tmp/portage/sci-libs/hdf5-1.8.10/temp/build.log

libtool: link: /usr/bin/x86_64-pc-linux-gnu-ar cru .libs/libh5test.a .libs/h5test.o .libs/testframe.o .libs/cache_common.o 
libtool: link: /usr/bin/x86_64-pc-linux-gnu-ar cru .libs/libh5tools.a .libs/h5tools.o .libs/h5tools_dump.o .libs/h5tools_str.o .libs/h5tools_utils.o .libs/h5diff.o .libs/h5diff_array.o .libs/h5diff_attr.o .libs/h5diff_dset.o .libs/h5diff_util.o .libs/h5trav.o .libs/h5tools_filters.o .libs/h5tools_ref.o .libs/h5tools_type.o 
libtool: link: /usr/bin/x86_64-pc-linux-gnu-ar cru .libs/libh5test_fortran.a .libs/tf.o .libs/t.o
Comment 2 Agostino Sarubbo gentoo-dev 2013-01-01 19:18:23 UTC
Please don't close for the fun =)

I can reproduce it on many machines, please give me the output without setting AR before the emerge.
Comment 3 Agostino Sarubbo gentoo-dev 2013-01-01 19:21:49 UTC
and..for the record, I didn't say it does not have AR variable in its buildsystem, simply it does not initialize AR as my system-ar
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-01-01 19:42:18 UTC
+  01 Jan 2013; Kacper Kowalik <xarthisius@gentoo.org> hdf5-1.8.10.ebuild,
+  hdf5-1.8.8-r1.ebuild, hdf5-1.8.9-r2.ebuild:
+  Respect AR wrt #449514 by Agostino Sarubbo <ago@gentoo.org>