Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167141 - Gkrellm portage ebuild doesn't manage freebsd make targets. Moreover a small modification the src/Makefile is needed to complete a succefull merge on g/fbsd.
Summary: Gkrellm portage ebuild doesn't manage freebsd make targets. Moreover a small ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 00:47 UTC by Emanuele A. Bagnaschi (Zephyrus)
Modified: 2007-08-21 14:25 UTC (History)
0 users

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


Attachments
src/Makefile patch (makefile-fbsd.patch,424 bytes, patch)
2007-02-16 00:48 UTC, Emanuele A. Bagnaschi (Zephyrus)
Details | Diff
gkrellm-2.2.10 modified ebuild (gkrellm-2.2.10.ebuild,2.99 KB, text/plain)
2007-02-16 00:48 UTC, Emanuele A. Bagnaschi (Zephyrus)
Details
src/configure (error) log when run without the previous patch (configure.log,588 bytes, text/plain)
2007-02-16 00:49 UTC, Emanuele A. Bagnaschi (Zephyrus)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele A. Bagnaschi (Zephyrus) 2007-02-16 00:47:50 UTC
A brief inspection of the gkrellm documentation reveals that there are different make targets for each operating systems. In particular the two which must be used to build the sources on fbsd are:
make freebsd and make install_freebsd

However the gkrellm ebuild provided by the portage tree is stricly Linux-centric, since it tries to build and install the package using the following commands, which are intended to be used on Linux:
make and make install

I modified the original ebuild to support the *bsd operating systems. The solution is based upon the app-arch/unzip ebuild (Thanks to Flameeyes for pointing me to that solution).

However to complete a succefull merge on g/fbsd a small modification to src/Makefile is needed. 
Without this patch the configure script will fail to properly detect gnu-tls/ssl, due to some kind of "substitution/syntax" error (see the log attached) and this directly leads to compilation failure.

The patch is also included in the fbsd gkrellm port.
I tested it both on my Linux and my g/fbsd system without getting any errors/problems.

Reproducible: Always
Comment 1 Emanuele A. Bagnaschi (Zephyrus) 2007-02-16 00:48:13 UTC
Created attachment 110346 [details, diff]
src/Makefile patch
Comment 2 Emanuele A. Bagnaschi (Zephyrus) 2007-02-16 00:48:38 UTC
Created attachment 110347 [details]
gkrellm-2.2.10 modified ebuild
Comment 3 Emanuele A. Bagnaschi (Zephyrus) 2007-02-16 00:49:30 UTC
Created attachment 110349 [details]
src/configure  (error) log when run without the previous patch
Comment 4 Nicholas Steicke 2007-04-11 04:37:39 UTC
(In reply to comment #2)
> Created an attachment (id=110347) [edit]
> gkrellm-2.2.10 modified ebuild
> 

Confermed that the ebuild and patch works (FreeBSD 6.2-RELEASE FreeBSD Gentoo 6.2)
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-08-21 14:25:21 UTC
Fixed, thanks