| Summary: | New package: cleanbench - the clean nbench Benchmark utility for Linux/UNIX | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Matt Turner <mattst88> |
| Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | enhancement | CC: | flameeyes, serkan |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://mattst88.com/programming/cleanbench/ | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
cleanbench-1.0 ebuild
fixed cleanbench 1.0 ebuild |
||
|
Description
Matt Turner
2008-12-14 03:10:19 UTC
Created attachment 175236 [details]
cleanbench-1.0 ebuild
Doesn't the makefile override what you pass for CC and CFLAGS and LINKFLAGS is never used in the makefile. Also please use emake instead of make. Thanks. Serkan Created attachment 175269 [details]
fixed cleanbench 1.0 ebuild
I believe this ebuild fixes the things mentioned previously. Please review.
(In reply to comment #3) > Created an attachment (id=175269) [edit] > fixed cleanbench 1.0 ebuild > > I believe this ebuild fixes the things mentioned previously. Please review. > What I meant was the package's Makefile overrides the enviroments CFLAGS,CC and doesn't respect LDFLAGS. So, cleanbench's Makefile needs to be fixed actually. Flameeyes' article[1] has a part explaining it. 1: http://lwn.net/Articles/277132/ @Flameeyes: Adding you for suggestions. Thanks. The sed should be in src_unpack (or prepare for EAPI=2), dobin and doins should be checked with || die in case of failure. As for the Makefile, since there is a cleanbench.o object listed, you can just replace LIBS with LDLIBS and replace the rule all: $(OBJS) with all: cleanbench cleanbench: $(OBJS) and it will respect LDFLAGS and build properly; but it would require changes to other parts of the makefile to work properly anyway: the .c -> .o transformation can be made much shorter, by using something like OPTFLAGS ?= -march= ... override CFLAGS = $(OPTFLAGS) $(WARN) and then removing all the rules. sysinfo.sh is a bit of a problem, but that's beside the point I guess. |