Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368213 - net-misc/batman-adv, net-misc/batctl, net-misc/batman-vis (new packages)
Summary: net-misc/batman-adv, net-misc/batctl, net-misc/batman-vis (new packages)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL: http://gitorious.org/s3d-gentoo/s3d-g...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 20:49 UTC by Clara Gnos
Modified: 2011-05-23 06:55 UTC (History)
0 users

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


Attachments
batman-vis-0.3.2.ebuild (batman-vis-0.3.2.ebuild,987 bytes, text/plain)
2011-05-21 08:02 UTC, Clara Gnos
Details
batctl-2011.1.0.ebuild (batctl-2011.1.0.ebuild,1.03 KB, text/plain)
2011-05-21 08:03 UTC, Clara Gnos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clara Gnos 2011-05-20 20:49:46 UTC
I wish Gentoo would provide the B.A.T.M.A.N. advanced control and management tool required to control the batman-adv module available in linux 2.6.38 and 2.6.39. I already found a package, but it is not part of Gentoo[1]. It is already part of Debian[2] and Ubuntu[3].

[1] http://gitorious.org/s3d-gentoo/s3d-gentoo/trees/master/net-misc/batctl
[2] http://packages.qa.debian.org/b/batctl.html
[3] https://launchpad.net/ubuntu/+source/batctl

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2011-05-20 22:21:40 UTC
+*batman-adv-2011.1.0 (20 May 2011)
+
+  20 May 2011; Michael Weber <xmw@gentoo.org> +batman-adv-2011.1.0.ebuild,
+  +metadata.xml:
+  Initial import, thanks to Emil Langrock for the report (bug 368213) and s3d
+  for the initial ebuild.
+
Comment 2 Michael Weber (RETIRED) gentoo-dev 2011-05-20 22:56:44 UTC
+*batctl-2011.1.0 (20 May 2011)
+
+  20 May 2011; Michael Weber <xmw@gentoo.org> +batctl-2011.1.0.ebuild,
+  +metadata.xml:
+  Initial import, thanks to Emil Langrock for the report (bug 368213) and s3d
+  for the initial ebuild.
+
Comment 3 Michael Weber (RETIRED) gentoo-dev 2011-05-20 23:37:19 UTC
+*batman-vis-0.3.2 (20 May 2011)
+
+  20 May 2011; Michael Weber <xmw@gentoo.org> +batman-vis-0.3.2.ebuild,
+  +files/batman-vis-conf.d, +files/batman-vis-init.d, +metadata.xml:
+  Initial import, thanks to Emil Langrock for the report (bug 368213) and s3d
+  for the initial ebuild.
+
Comment 4 Clara Gnos 2011-05-21 07:03:18 UTC
Why do you provide batman-adv-2011.1.0? It is now part of the kernel and that is also the reason why it was removed from Debian and from s3d-gentoo repository
Comment 5 Clara Gnos 2011-05-21 07:17:43 UTC
Looked through you ebuilds and it makes sense. Thanks
Comment 6 Clara Gnos 2011-05-21 07:25:59 UTC
And noticed that you use sometimes http://downloads.open-mesh.org/batman/releases/ and sometimes http://downloads.open-mesh.org/batman/stable/sources/ as download path. Wouldn't it be better to use everywhere the same?
Comment 7 Clara Gnos 2011-05-21 07:43:41 UTC
And I doubt that it was a good idea to use those sed expression. Now you removed the -std=gnu99 which is necessary to compile batctl cleanly. It is also easier to set V=1 instead of overriding Q_CC and Q_LD
Comment 8 Clara Gnos 2011-05-21 07:54:34 UTC
I would recommend to change it to something like that:

	sed -e "/^CFLAGS/s: -O[^[:space:]]* : :" \
		-e "/^CFLAGS/s: -g[^[:space:]]* : :" \
		-e "/^NUM_CPUS/d" \
		-e "/\$(MAKE)/s: -j \$(NUM_CPUS) : :" \
		-e "/BINARY_NAME=/s:vis:${PN}:" \
		-i Makefile || die


And you can also just call make batctl instead of make all to remove the automatic parallel build.

batman-vis would be similar. I attach my version of the ebuilds
Comment 9 Clara Gnos 2011-05-21 08:02:40 UTC
Created attachment 274185 [details]
batman-vis-0.3.2.ebuild

Fixed batman-vis ebuild
Comment 10 Clara Gnos 2011-05-21 08:03:34 UTC
Created attachment 274187 [details]
batctl-2011.1.0.ebuild

Fixed batctl ebuild
Comment 11 Michael Weber (RETIRED) gentoo-dev 2011-05-22 23:08:18 UTC
(In reply to comment #4)
> Why do you provide batman-adv-2011.1.0? It is now part of the kernel 
Tru for 2.6.38 and .39. But false for 2.6.21-37 (which are documented to work).

(In reply to comment #6)
> And noticed that you use sometimes
> http://downloads.open-mesh.org/batman/releases/ and sometimes
> http://downloads.open-mesh.org/batman/stable/sources/ as download path.
> Wouldn't it be better to use everywhere the same?

I just picked up the urls as there're referenced at 
http://www.open-mesh.org/wiki/open-mesh/Download

(In reply to comment #7)
> And I doubt that it was a good idea to use those sed expression. Now you
> removed the -std=gnu99 which is necessary to compile batctl cleanly. It is also
> easier to set V=1 instead of overriding Q_CC and Q_LD
good point on V=1 and -std=gnu99, but the -g* -O* are property of /etc/make.conf.

Esp.
(In reply to comment #8)
> And you can also just call make batctl instead of make all to remove the
> automatic parallel build.
I don't want to remove parallel build per se, but it's up to the /etc/make.conf:MAKEOPTS to decide this. Not some crappy CPU detection.

Thanks for the feedback.
Comment 12 Michael Weber (RETIRED) gentoo-dev 2011-05-22 23:31:37 UTC
+  22 May 2011; Michael Weber <xmw@gentoo.org> batctl-2011.1.0.ebuild:
+  Improved sed expression and sr_compile, thanks to Emil Langrock (bug 368213)

I've decided to stick to the all target for future releases, which might lack the ${PN} target.

+  22 May 2011; Michael Weber <xmw@gentoo.org> batman-vis-0.3.2.ebuild:
+  Improved sed expression, src_compile and updated SRC_URI, thanks to Emil
+  Langrock (bug 368213)
Comment 13 Clara Gnos 2011-05-23 06:55:10 UTC
Do I read it correctly? You warn either when the batman-adv module is compiled using the kernel or when the module is _not_ installed using net-misc/batctl. Sounds wrong to me.