Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254707 - guitarix-0.03.ebuild
Summary: guitarix-0.03.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2009-01-12 22:21 UTC by Jimmy.Jazz
Modified: 2019-04-21 05:03 UTC (History)
4 users (show)

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


Attachments
guitarix-0.03.ebuild (guitarix-0.03.ebuild,800 bytes, text/plain)
2009-01-12 22:21 UTC, Jimmy.Jazz
Details
guitarix-0.03.ebuild (guitarix-0.03.ebuild,753 bytes, text/plain)
2009-01-18 20:58 UTC, Jimmy.Jazz
Details
A bit polished ebuild (guitarix-0.04.3.ebuild,736 bytes, text/plain)
2009-05-12 14:22 UTC, Goran Mekić
Details
Add "bin" directory (add-bin-dir.patch,354 bytes, patch)
2009-05-12 14:23 UTC, Goran Mekić
Details | Diff
HOMEPAGED changed (guitarix-0.04.3.ebuild,718 bytes, text/plain)
2009-05-12 14:26 UTC, Goran Mekić
Details
guitarix-0.04.6.ebuild (guitarix-0.04.6.ebuild,731 bytes, text/plain)
2009-07-01 17:14 UTC, keenblade
Details
guitarix-0.04.6.ebuild (guitarix-0.04.6.ebuild,786 bytes, text/plain)
2009-07-27 00:18 UTC, keenblade
Details
guitarix-0.05.0.ebuild (guitarix-0.05.0.ebuild,786 bytes, text/plain)
2009-08-03 10:13 UTC, keenblade
Details
media-sound/guitarix2-0.38.1.ebuild (guitarix2-0.38.1.ebuild,1.68 KB, text/plain)
2019-04-11 09:46 UTC, Reva Denis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2009-01-12 22:21:04 UTC
guitarix is a simple Linux amplifier for jack with one input and two outputs

Reproducible: Always
Comment 1 Jimmy.Jazz 2009-01-12 22:21:29 UTC
Created attachment 178277 [details]
guitarix-0.03.ebuild
Comment 2 Alexis Ballier gentoo-dev 2009-01-16 22:50:32 UTC
thanks for the ebuild, but i have to do some review first :)

DESCRIPTION="guitarix is a simple Linux amplifier for jack with one input and two outputs"


better if it would be only "A simple ..."

SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.a.tar.bz2"

please use mirror://sourceforge/

HOMEPAGE="www.brummer.de.hm/unstable.html"

missing the http:// I suppose
and its probably not the real homepage
https://brain.kicks-ass.org/~hermann/guitarfx.html seems better

DEPEND="${RDEPEND}"

the build process appears to use pkgconfig, so you need to DEPEND on it


src_unpack() {
	srcdir="${DISTDIR}/"

	einfo "Unpacking ${A} to ${WORDIR}"
	tar xf ${srcdir}${A} -C "${WORKDIR}"

}

unneeded or if the file is broken better repackage it

src_compile() {
	cd ${S}
	emake
}


ditto


src_install() {
	cd ${S}

	mkdir -p ${D}/usr/bin
	emake DESTDIR=${D} install
}

src_install starts in $S, don't use mkdir but dodir, quote $D


moreover, the build system completely ignores C(XX)FLAGS, LDFLAGS and seems flawed with as-needed
Comment 3 Jimmy.Jazz 2009-01-18 20:22:33 UTC
(In reply to comment #2)

> 
> better if it would be only "A simple ..."
> 
Probably, but I don't have the material to test it :)

> SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.a.tar.bz2"
> 
> please use mirror://sourceforge/

no problemo

> HOMEPAGE="www.brummer.de.hm/unstable.html"
> 
> missing the http:// I suppose
> and its probably not the real homepage
> https://brain.kicks-ass.org/~hermann/guitarfx.html seems better

you are welcome :)

> DEPEND="${RDEPEND}"
> 
> the build process appears to use pkgconfig, so you need to DEPEND on it
> 
> 
> src_unpack() {
>         srcdir="${DISTDIR}/"
> 
>         einfo "Unpacking ${A} to ${WORDIR}"
>         tar xf ${srcdir}${A} -C "${WORKDIR}"
> 
> }
> 
> unneeded or if the file is broken better repackage it

the file is broken, unpack() doesn't like it. It is an uncompressed tar file

> src_compile() {
>         cd ${S}
>         emake
> }
> 
> 
> ditto
> 
> 
> src_install() {
>         cd ${S}
> 
>         mkdir -p ${D}/usr/bin
>         emake DESTDIR=${D} install
> }
> 
> src_install starts in $S, don't use mkdir but dodir, quote $D
> 

Please, redirect me to an official up-to-date portage doc and I will stop reading other ebuild to build one :)

> 
> moreover, the build system completely ignores C(XX)FLAGS, LDFLAGS and seems
> flawed with as-needed
> 

Weird, I'm using as-needed too.

Comment 4 Jimmy.Jazz 2009-01-18 20:58:16 UTC
Created attachment 178925 [details]
guitarix-0.03.ebuild
Comment 5 Jimmy.Jazz 2009-01-18 21:00:13 UTC
Also, the author should improve a bit its makefile
Comment 6 Alexis Ballier gentoo-dev 2009-01-19 20:04:21 UTC
(In reply to comment #3)
> > DEPEND="${RDEPEND}"
> > 
> > the build process appears to use pkgconfig, so you need to DEPEND on it
> > 
> > 
> > src_unpack() {
> >         srcdir="${DISTDIR}/"
> > 
> >         einfo "Unpacking ${A} to ${WORDIR}"
> >         tar xf ${srcdir}${A} -C "${WORKDIR}"
> > 
> > }
> > 
> > unneeded or if the file is broken better repackage it
> 
> the file is broken, unpack() doesn't like it. It is an uncompressed tar file


yes, you can use the 0.03.3-1 tarball

> > 
> > moreover, the build system completely ignores C(XX)FLAGS, LDFLAGS and seems
> > flawed with as-needed
> > 
> 
> Weird, I'm using as-needed too.

it doesnt fail because it *ignores* it


more review:

RDEPEND="
	media-sound/jack-audio-connection-kit
	media-sound/lame
	x11-libs/gtk+
	media-libs/ladspa-sdk
	media-sound/vorbis-tools"

I see a depend on gtk2 (so you might want to use gtk+:2 and EAPI=1), jack and ladspa which are fine but also libsndfile
however i see no dep on lame and vorbis-tools

src_unpack() {
	unpack ${A}
}

thats still more or less the default


src_compile() {
	append-ldflags "-Wl,--no-as-needed"
	emake
}

never ever append --no-as-needed unless its a weird issue that cant easily be fixed like the c++ issue with static initalisers; that's better to let it fail with as-needed than hiding the bug like that.
if you remove the append-ldflags, that's again the default.


I get things like that when building:
g++ -fPIC -shared -O3 -march=native  -mfpmath=sse -ffast-math -Dmydsp=guitarix guitarix-ladspa.cpp -o guitarix.so

That's definitely not my cxxflags nor ldflags, so the makefiles need to be patched upstream or in the ebuild to get into the portage tree
Also it shouldn't call g++ directly but x86_64-pc-linux-gnu-g++ here in order to allow cross compilations. use tc-getCXX or tc-export CXX from toolchain-funcs eclass.

src_install() {
	dodir /usr/bin
	emake DESTDIR=${D} install
}

I think the dodir isn't needed (at least with 0.03.3-1)

> Please, redirect me to an official up-to-date portage doc and I will stop
> reading other ebuild to build one :)

http://devmanual.gentoo.org/

or the pms:
http://dev.gentoo.org/~ferdy/pms/pms-head.pdf
Comment 7 Jimmy.Jazz 2009-01-21 16:24:57 UTC
Thx for your explanation.

I will take a look at the manual for the next ebuild... and improve the Makefile in case upstream doesn't do it.
Comment 8 Goran Mekić 2009-05-12 14:22:15 UTC
Created attachment 191021 [details]
A bit polished ebuild

Hope this works better. Some polishing done, nothing big.
Comment 9 Goran Mekić 2009-05-12 14:23:52 UTC
Created attachment 191022 [details, diff]
Add "bin" directory

Without this patch, you get /usr/bin as a file, and it should be /usr/bin/guitarix. Will send to upstream, too.
Comment 10 Goran Mekić 2009-05-12 14:26:33 UTC
Created attachment 191023 [details]
HOMEPAGED changed
Comment 11 keenblade 2009-07-01 17:14:26 UTC
Created attachment 196262 [details]
guitarix-0.04.6.ebuild

guitarix-0.04.6 uses waf build tool. So the ebuild is adjusted for waf. Also now using eapi2. And some cleanup.
Comment 12 keenblade 2009-07-27 00:18:50 UTC
Created attachment 199266 [details]
guitarix-0.04.6.ebuild

Added missing dev-libs/boost and media-libs/libsndfile to the RDEPEND.
Comment 13 keenblade 2009-08-03 10:13:47 UTC
Created attachment 200008 [details]
guitarix-0.05.0.ebuild

Actually this is just a version bump by renaming. Nothing new.
Comment 14 Guillaume Chanaud 2009-09-15 15:54:31 UTC
Hello,

will this ebuild be included in the official portage tree ?
If it's not the case, it may be possible to include it in the pro-audio overlay (http://proaudio.tuxfamily.org/).

Thanks for the work :) !
Comment 15 Viktor Lazarev 2010-05-16 20:38:00 UTC
This ebuild added to the proaudio overlay.
Comment 16 Reva Denis 2019-04-11 09:46:17 UTC
Created attachment 572444 [details]
media-sound/guitarix2-0.38.1.ebuild

Ok, here is latest ebuild :)
Comment 17 Larry the Git Cow gentoo-dev 2019-04-21 05:03:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd37b5281bd4d5e79dae6bb9397d0046dd71bda9

commit fd37b5281bd4d5e79dae6bb9397d0046dd71bda9
Author:     Alexander Tsoy <alexander@tsoy.me>
AuthorDate: 2019-04-15 21:30:25 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-04-21 05:01:30 +0000

    media-sound/guitarix: new package
    
    guitarix is a virtual guitar amplifier for Linux
    
    Ebuild by me with some additions from ebuild by Reva Denis and ebuild from
    gentoostudio overlay.
    
    Closes: https://bugs.gentoo.org/254707
    Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
    Package-Manager: Portage-2.3.62, Repoman-2.3.11
    Closes: https://github.com/gentoo/gentoo/pull/11703
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 media-sound/guitarix/Manifest               |  1 +
 media-sound/guitarix/guitarix-0.38.1.ebuild | 73 +++++++++++++++++++++++++++++
 media-sound/guitarix/metadata.xml           | 19 ++++++++
 3 files changed, 93 insertions(+)