Skip to contentSkip to conversation

recipes for gsnmp and scli

PATCH Superseded Henri Bragge 3 participants 27 messages Aug 4, 2010 – Aug 9, 2010

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 recipe for gsnmp-0.3.0

---
 recipes/gsnmp/gsnmp.inc    |    6 ++++++
 recipes/gsnmp/gsnmp_svn.bb |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp.inc
 create mode 100644 recipes/gsnmp/gsnmp_svn.bb
recipes/gsnmp/gsnmp.inc new file +6 -0
new file mode 100644
index 0000000..66e88cc
@@ -0,0 +1,6 @@
+DESCRIPTION = "SNMP library written on top of glib and gnet."
+LICENSE = "GPLv2"
+SECTION = "libs/network"
+DEPENDS = "glib-2.0 gnet"
+
+inherit autotools pkgconfig
recipes/gsnmp/gsnmp_svn.bb new file +8 -0
new file mode 100644
index 0000000..ed27bb6
@@ -0,0 +1,8 @@
+require gsnmp.inc
+
+SRCREV = "3372"
+PV = "0.3.0+svnr${SRCREV}"
+PR = "r1"
+
+SRC_URI = "svn://cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp;module=trunk;proto=https"
+S = "${WORKDIR}/trunk"
Signature · 1 line
1.5.6.5
#2 lore raw

PATCH 2/2 recipe for scli-0.4.0

---
 recipes/scli/scli.inc    |    6 ++++++
 recipes/scli/scli_svn.bb |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/scli/scli.inc
 create mode 100644 recipes/scli/scli_svn.bb
recipes/scli/scli.inc new file +6 -0
new file mode 100644
index 0000000..abe341d
@@ -0,0 +1,6 @@
+DESCRIPTION = "SNMP Command Line Interface"
+LICENSE = "GPLv2"
+SECTION = "console/network"
+DEPENDS = "gsnmp readline libxml2 ncurses"
+
+inherit autotools
recipes/scli/scli_svn.bb new file +8 -0
new file mode 100644
index 0000000..45bd08e
@@ -0,0 +1,8 @@
+require scli.inc
+
+SRCREV = "3285"
+PV = "0.4.0+svnr${SRCREV}"
+PR = "r1"
+
+SRC_URI = "svn://cnds.eecs.jacobs-university.de/svn/schoenw/src/scli;module=trunk;proto=https"
+S = "${WORKDIR}/trunk"
Signature · 1 line
1.5.6.5
#3 lore raw

Re: [PATCH 2/2] recipe for scli-0.4.0

2010/8/4 Henri Bragge <[email protected]>

Quoted 27 lines
---
 recipes/scli/scli.inc    |    6 ++++++
 recipes/scli/scli_svn.bb |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/scli/scli.inc
 create mode 100644 recipes/scli/scli_svn.bb
recipes/scli/scli.inc new file +6 -0
new file mode 100644
index 0000000..abe341d
@@ -0,0 +1,6 @@
+DESCRIPTION = "SNMP Command Line Interface"
+LICENSE = "GPLv2"
+SECTION = "console/network"
+DEPENDS = "gsnmp readline libxml2 ncurses"
+
+inherit autotools
recipes/scli/scli_svn.bb new file +0 -0
new file mode 100644
index 0000000..45bd08e

recipes/scli/scli_svn.bb line 5

Quoted 5 lines
recipes/scli/scli_svn.bb new file +5 -0
@@ -0,0 +1,8 @@
+require scli.inc
+
+SRCREV = "3285"
+PV = "0.4.0+svnr${SRCREV}"
+PR = "r1"

+

Quoted 5 lines
recipes/scli/scli_svn.bb new file +1 -0
+SRC_URI = "svn://

cnds.eecs.jacobs-university.de/svn/schoenw/src/scli;module=trunk;proto=https "
+S = "${WORKDIR}/trunk"

Same remarks as for the other one.
Also, do we need the .inc file. If I look at the content it is hardly worth putting it in a separate file.

Then again *if* you insist on an inc file you should also have an INC_PR.

This also holds for the other recipe.

Frans

Quoted 9 lines

--
1.5.6.5

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

PATCH v2 1/2 recipe for gsnmp-0.3.0

---
 recipes/gsnmp/gsnmp_svn.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp_svn.bb
recipes/gsnmp/gsnmp_svn.bb new file +12 -0
new file mode 100644
index 0000000..3a2ac09
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP library written on top of glib and gnet."
+SECTION = "libs/network"
+LICENSE = "GPLv2"
+DEPENDS = "glib-2.0 gnet"
+SRCREV = "3372"
+PV = "0.3.0+svnr${SRCREV}"
+PR = "r0"
+
+inherit autotools pkgconfig
+
+SRC_URI = "svn://cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp;module=trunk;proto=https"
+S = "${WORKDIR}/trunk"
Signature · 1 line
1.5.6.5
#5 lore raw

PATCH v2 2/2 recipe for scli-0.4.0

---
 recipes/scli/scli_svn.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/scli/scli_svn.bb
recipes/scli/scli_svn.bb new file +12 -0
new file mode 100644
index 0000000..589879b
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP Command Line Interface"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+DEPENDS = "gsnmp readline libxml2 ncurses"
+SRCREV = "3285"
+PV = "0.4.0+svnr${SRCREV}"
+PR = "r0"
+
+inherit autotools
+
+SRC_URI = "svn://cnds.eecs.jacobs-university.de/svn/schoenw/src/scli;module=trunk;proto=https"
+S = "${WORKDIR}/trunk"
Signature · 1 line
1.5.6.5
#6 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

In reply to Henri Bragge

2010/8/4 Henri Bragge <[email protected]>

Quoted 23 lines
---
 recipes/gsnmp/gsnmp_svn.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp_svn.bb
recipes/gsnmp/gsnmp_svn.bb new file +11 -0
new file mode 100644
index 0000000..3a2ac09
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP library written on top of glib and gnet."
+SECTION = "libs/network"
+LICENSE = "GPLv2"
+DEPENDS = "glib-2.0 gnet"
+SRCREV = "3372"
+PV = "0.3.0+svnr${SRCREV}"
+PR = "r0"
+
+inherit autotools pkgconfig
+
+SRC_URI = "svn://
Quoted 3 lines

cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp;module=trunk;proto=https "
+S = "${WORKDIR}/trunk"

tried to build this, stranded at this:

NOTE: Fetch svn://
cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp;module=trunk;proto=https
Error validating server certificate for '
https://cnds.eecs.jacobs-university.de:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: cnds.eecs.jacobs-university.de
- Valid: from Tue, 22 Sep 2009 08:07:16 GMT until Sun, 21 Sep 2014 08:07:16
GMT
- Issuer: IRC-IT, Jacobs University Bremen gGmbH, DE
- Fingerprint: a3:ed:4f:1d:a7:3b:dc:99:aa:0f:cb:d7:d3:19:f5:b0:ef:1c:06:00
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of '
https://cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp/trunk': Server
certificate verification failed: issuer is not trusted (
https://cnds.eecs.jacobs-university.de)
NOTE: Task failed: Fetch failed: Fetch command export HOME=/home/frans;
export SSH_AUTH_SOCK=/tmp/ssh-iwZKs1963/agent.1963; export PATH=/home/frans/oe/tmp_angstrom/sysroots/i686-linux/usr/armv7a/bin:/home/frans/oe/tmp_angstrom/sysroots/i686-linux/usr/sbin:/home/frans/oe/tmp_angstrom/sysroots/i686-linux/usr/bin:/home/frans/oe/tmp_angstrom/sysroots/i686-linux/sbin:/home/frans/oe/tmp_angstrom/sysroots/i686-linux//bin:/home/frans/oe/bitbake/bin:/home/frans/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/gnome/bin:/usr/lib/qt3/bin:/home/frans/bin:.; /usr/bin/env svn co -r 3372
https://cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp/trunk@3372trunk
failed with signal 1, output:
Error validating server certificate for '
https://cnds.eecs.jacobs-university.de:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: cnds.eecs.jacobs-university.de
- Valid: from Tue, 22 Sep 2009 08:07:16 GMT until Sun, 21 Sep 2014 08:07:16
GMT
- Issuer: IRC-IT, Jacobs University Bremen gGmbH, DE
- Fingerprint: a3:ed:4f:1d:a7:3b:dc:99:aa:0f:cb:d7:d3:19:f5:b0:ef:1c:06:00
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of '
https://cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp/trunk': Server
certificate verification failed: issuer is not trusted (
https://cnds.eecs.jacobs-university.de)

NOTE: oestats: task failed, see
http://tinderbox.openembedded.net/packages/668019/
ERROR: TaskFailed event exception, aborting

No idea what the policy on this is, but I'm not too eager to add all kind of certificates to my system

Frans

#7 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

Quoted 12 lines · Frans Meulenbroeks <fransmeulenbroeks <at> gmail.com> writes:

tried to build this, stranded at this:

...

NOTE: oestats: task failed, see
http://tinderbox.openembedded.net/packages/668019/
ERROR: TaskFailed event exception, aborting

No idea what the policy on this is, but I'm not too eager to add all kind of certificates to my system

Posted v3, this time with ftp sources. Had forgotten that Deutsche Telekom (which that certificate is rooted to) was an untrusted authority.

Sorry the hassle, this is my first patch to oe.

- Henri

#8 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

2010/8/5 Henri Bragge <[email protected]>:

Quoted 11 lines
Quoted 9 lines · Frans Meulenbroeks <fransmeulenbroeks <at> gmail.com> writes:

tried to build this, stranded at this:

...

NOTE: oestats: task failed, see
http://tinderbox.openembedded.net/packages/668019/
ERROR: TaskFailed event exception, aborting

Quoted 8 lines
Quoted 3 lines

No idea what the policy on this is, but I'm not too eager to add all kind of certificates to my system

Posted v3, this time with ftp sources. Had forgotten that Deutsche Telekom (which that certificate is rooted to) was an untrusted authority.

Sorry the hassle, this is my first patch to oe.

It is no problem, ftp is definitely better than svn/https (at least in my opinion).
And wrt the hassle: we all had to go through the learning curve at one point in time.

Frans

#9 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

This one also failed building with a similar QA issue:

NOTE: Running task 629 of 630 (ID: 10, /home/frans/oe/openembedded/recipes/gsnmp/gsnmp_0.3.0.bb,
do_qa_staging)
ERROR: QA Issue with staging: libexslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA Issue with staging: libxslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA staging was broken by the package built above

see http://tinderbox.openembedded.net/builds/81312

No idea how exactly to fix this.

Frans

#10 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

2010/8/5 Frans Meulenbroeks <[email protected]>:

Quoted 12 lines

This one also failed building with a similar QA issue:

NOTE: Running task 629 of 630 (ID: 10, /home/frans/oe/openembedded/recipes/gsnmp/gsnmp_0.3.0.bb,
do_qa_staging)
ERROR: QA Issue with staging: libexslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA Issue with staging: libxslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA staging was broken by the package built above

Quoted 6 lines

see http://tinderbox.openembedded.net/builds/81312

No idea how exactly to fix this.

Frans

Please disregard ths comment and the one on the other recipe. Apparently some other recipe (libxslt) left a faulty pc file in pkgconfig. That is something that needs to be repaired (although I woudl not know how), but does not affect your recipe.

Your recipes have been tested, build nicely and have been pushed. Thank you for your contribution, and again apologies for any inconvenience caused by the above mail)

Frans

#11 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

Quoted 21 lines · Frans Meulenbroeks

2010/8/5 Frans Meulenbroeks <[email protected]>:

Quoted 12 lines

This one also failed building with a similar QA issue:

NOTE: Running task 629 of 630 (ID: 10, /home/frans/oe/openembedded/recipes/gsnmp/gsnmp_0.3.0.bb,
do_qa_staging)
ERROR: QA Issue with staging: libexslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA Issue with staging: libxslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA staging was broken by the package built above

Quoted 7 lines

see http://tinderbox.openembedded.net/builds/81312

No idea how exactly to fix this.

Frans

Quoted 9 lines

Please disregard ths comment and the one on the other recipe. Apparently some other recipe (libxslt) left a faulty pc file in pkgconfig. That is something that needs to be repaired (although I woudl not know how), but does not affect your recipe.

Your recipes have been tested, build nicely and have been pushed. Thank you for your contribution, and again apologies for any inconvenience caused by the above mail)

No harm done, I suspected it was someone else's fault this time. Thanks for testing & comments.

- Henri

#12 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

Still one issue left:

I saw this warning when building another package:

/home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
warning: underquoted definition of AM_PATH_GSNMP /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
run info '(automake)Extending aclocal'
/home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal

I suggest a patch to resolve this.

Frans

#13 lore raw

PATCH 1/1 gsnmp-0.3.0: fix quoting in autoconf macros

---
 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch |   24 ++++++++++++++++++++++++
 recipes/gsnmp/gsnmp_0.3.0.bb              |    3 ++-
 2 files changed, 26 insertions(+), 1 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +24 -0
new file mode 100644
index 0000000..138c9e6
@@ -0,0 +1,24 @@
+diff -Nurd gsnmp-0.3.0.orig/acinclude.m4 gsnmp-0.3.0/acinclude.m4
+--- gsnmp-0.3.0.orig/acinclude.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/acinclude.m4	2010-08-09 13:30:32.000000000 +0300
+@@ -6,7 +6,7 @@
+ dnl usually in <utime.h>.
+ dnl Some systems have utime.h but don't declare the struct anywhere.
+ 
+-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
+ [
+   AC_CHECK_HEADERS(utime.h)
+   AC_REQUIRE([AC_HEADER_TIME])
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])
recipes/gsnmp/gsnmp_0.3.0.bb +2 -1
index b191762..6287010 100644
@@ -4,7 +4,8 @@ LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
 PR = "r0"
 
-SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz"
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz \
+	   file://quote-fix.patch"
 
 SRC_URI[md5sum] = "466699c11b70e18a04d51388b8f89f1c"
 SRC_URI[sha256sum] = "e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9"
Signature · 1 line
1.5.6.5
#14 lore raw

Re: [PATCH 1/1] gsnmp-0.3.0: fix quoting in autoconf macros

Is there an upstream bug for this? If not, it would be great if you could sent it upstream.

Am Montag, den 09.08.2010, 14:36 +0300 schrieb Henri Bragge:

Quoted 27 lines
---
 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch |   24 ++++++++++++++++++++++++
 recipes/gsnmp/gsnmp_0.3.0.bb              |    3 ++-
 2 files changed, 26 insertions(+), 1 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +14 -0
new file mode 100644
index 0000000..138c9e6
@@ -0,0 +1,24 @@
+diff -Nurd gsnmp-0.3.0.orig/acinclude.m4 gsnmp-0.3.0/acinclude.m4
+--- gsnmp-0.3.0.orig/acinclude.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/acinclude.m4	2010-08-09 13:30:32.000000000 +0300
+@@ -6,7 +6,7 @@
+ dnl usually in <utime.h>.
+ dnl Some systems have utime.h but don't declare the struct anywhere.
+ 
+-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
+ [
+   AC_CHECK_HEADERS(utime.h)
+   AC_REQUIRE([AC_HEADER_TIME])
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200

recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch line 24

Quoted 10 lines
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +10 -0
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])

Why is this check needed? Maybe add a note to the commit message or split the patch.

recipes/gsnmp/gsnmp_0.3.0.bb LICENSE = "GPLv2" · line 5

Quoted 7 lines
recipes/gsnmp/gsnmp_0.3.0.bb +0 -0
index b191762..6287010 100644
@@ -4,7 +4,8 @@ LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
 PR = "r0"

I guess you need to increase PR.

[…]

Thanks,

Paul

#15 lore raw

Re: [PATCH 1/1] gsnmp-0.3.0: fix quoting in autoconf macros

Quoted 3 lines · Paul Menzel

Is there an upstream bug for this? If not, it would be great if you could sent it upstream.

The bug is still present in upstream too, but I will send this patch to the gsnmp maintainer if it does the trick (or should it be the other way around?).

Quoted 35 lines

Am Montag, den 09.08.2010, 14:36 +0300 schrieb Henri Bragge:

Quoted 33 lines
---
 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch |   24 ++++++++++++++++++++++++
 recipes/gsnmp/gsnmp_0.3.0.bb              |    3 ++-
 2 files changed, 26 insertions(+), 1 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +20 -0
new file mode 100644
index 0000000..138c9e6
@@ -0,0 +1,24 @@
+diff -Nurd gsnmp-0.3.0.orig/acinclude.m4 gsnmp-0.3.0/acinclude.m4
+--- gsnmp-0.3.0.orig/acinclude.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/acinclude.m4	2010-08-09 13:30:32.000000000 +0300
+@@ -6,7 +6,7 @@
+ dnl usually in <utime.h>.
+ dnl Some systems have utime.h but don't declare the struct anywhere.
+ 
+-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
+ [
+   AC_CHECK_HEADERS(utime.h)
+   AC_REQUIRE([AC_HEADER_TIME])
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
Quoted 9 lines

recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch line 24

Quoted 5 lines
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +4 -0
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])

Why is this check needed? Maybe add a note to the commit message or split the patch.

About that I've no idea, notice that I just added the brackets there.

Quoted 12 lines

recipes/gsnmp/gsnmp_0.3.0.bb LICENSE = "GPLv2" · line 6

Quoted 9 lines
recipes/gsnmp/gsnmp_0.3.0.bb +0 -0
index b191762..6287010 100644
@@ -4,7 +4,8 @@ LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
 PR = "r0"
 

I guess you need to increase PR.

Quoted 2 lines

[…]

Will do.

- Henri

#16 lore raw

Re: [PATCH 1/1] gsnmp-0.3.0: fix quoting in autoconf macros

Am Montag, den 09.08.2010, 15:05 +0300 schrieb Henri Bragge:

Quoted 7 lines
Quoted 2 lines · Paul Menzel

Is there an upstream bug for this? If not, it would be great if you could sent it upstream.

The bug is still present in upstream too, but I will send this patch to the gsnmp maintainer if it does the trick (or should it be the other way around?).

I have no idea [1]. But I guess it would not hurt if you send it upstream anyway.

[1] http://wiki.openembedded.net/index.php/Push_patches_upstream

Quoted 1 line
Quoted 1 line

Am Montag, den 09.08.2010, 14:36 +0300 schrieb Henri Bragge:

[…]

Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +12 -0
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])
Quoted 4 lines
Quoted 2 lines

Why is this check needed? Maybe add a note to the commit message or split the patch.

About that I've no idea, notice that I just added the brackets there.

Sorry, the double patch got me confused.

Quoted 11 lines
Quoted 11 lines

recipes/gsnmp/gsnmp_0.3.0.bb LICENSE = "GPLv2" · line 6

Quoted 8 lines
recipes/gsnmp/gsnmp_0.3.0.bb +0 -0
index b191762..6287010 100644
@@ -4,7 +4,8 @@ LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
 PR = "r0"
 

I guess you need to increase PR.

Quoted 3 lines
Quoted 1 line

[…]

Will do.

Thanks,

Paul

#17 lore raw

PATCH v3 1/1 gsnmp-0.3.0: fix quoting in autoconf macros

---
 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch |   28 ++++++++++++++++++++++++++++
 recipes/gsnmp/gsnmp_0.3.0.bb              |    5 +++--
 2 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +28 -0
new file mode 100644
index 0000000..6cb2e0d
@@ -0,0 +1,28 @@
+upstream: n/a
+status: accepted in r3406
+comment: Fix underquoted macro definitions.
+
+diff -Nurd gsnmp-0.3.0.orig/acinclude.m4 gsnmp-0.3.0/acinclude.m4
+--- gsnmp-0.3.0.orig/acinclude.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/acinclude.m4	2010-08-09 13:30:32.000000000 +0300
+@@ -6,7 +6,7 @@
+ dnl usually in <utime.h>.
+ dnl Some systems have utime.h but don't declare the struct anywhere.
+ 
+-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
+ [
+   AC_CHECK_HEADERS(utime.h)
+   AC_REQUIRE([AC_HEADER_TIME])
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])
recipes/gsnmp/gsnmp_0.3.0.bb +3 -2
index b191762..e27e3e9 100644
@@ -2,9 +2,10 @@ DESCRIPTION = "SNMP library written on top of glib and gnet."
 SECTION = "libs/network"
 LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
-PR = "r0"
+PR = "r1"
 
-SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz"
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz \
+	   file://quote-fix.patch"
 
 SRC_URI[md5sum] = "466699c11b70e18a04d51388b8f89f1c"
 SRC_URI[sha256sum] = "e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9"
Signature · 1 line
1.5.6.5
#18 lore raw

Re: [PATCH 1/1] gsnmp-0.3.0: fix quoting in autoconf macros

In reply to Paul Menzel
Quoted 7 lines · Paul Menzel

Am Montag, den 09.08.2010, 15:05 +0300 schrieb Henri Bragge:

Quoted 5 lines
Quoted 3 lines · Paul Menzel

Is there an upstream bug for this? If not, it would be great if you could sent it upstream.

Quoted 8 lines
Quoted 2 lines

The bug is still present in upstream too, but I will send this patch to the gsnmp maintainer if it does the trick (or should it be the other way around?).

I have no idea [1]. But I guess it would not hurt if you send it upstream anyway.

[1] http://wiki.openembedded.net/index.php/Push_patches_upstream

Got it accepted, included some upstream info in the patch (see v3).

- Henri

#19 lore raw

Re: [PATCH 1/1] gsnmp-0.3.0: fix quoting in autoconf macros

2010/8/9 Henri Bragge <[email protected]>:

Quoted 4 lines

Got it accepted, included some upstream info in the patch (see v3).

- Henri

Pushed your patch. Thanks for contributing. One small remark: I had to fix 3 whitespace errors. Perhaps next time run contrib/oe-stylize.py Looking forward for your next contribution

Have fun! Frans

#20 lore raw

Re: [PATCH v2 1/2] recipe for gsnmp-0.3.0

In reply to Frans Meulenbroeks
Quoted 4 lines · Frans Meulenbroeks

Still one issue left:

I saw this warning when building another package:

Quoted 9 lines

/home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
warning: underquoted definition of AM_PATH_GSNMP /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
run info '(automake)Extending aclocal'
/home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal/gsnmp.m4:4:
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal

I suggest a patch to resolve this.

Posted a patch that should fix this. Couldn't really reproduce the problem but I hope it helps..

- Henri

#21 lore raw

PATCH v2 1/1 gsnmp-0.3.0: fix quoting in autoconf macros

In reply to Frans Meulenbroeks
---
 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch |   24 ++++++++++++++++++++++++
 recipes/gsnmp/gsnmp_0.3.0.bb              |    5 +++--
 2 files changed, 27 insertions(+), 2 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch
recipes/gsnmp/gsnmp-0.3.0/quote-fix.patch new file +24 -0
new file mode 100644
index 0000000..138c9e6
@@ -0,0 +1,24 @@
+diff -Nurd gsnmp-0.3.0.orig/acinclude.m4 gsnmp-0.3.0/acinclude.m4
+--- gsnmp-0.3.0.orig/acinclude.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/acinclude.m4	2010-08-09 13:30:32.000000000 +0300
+@@ -6,7 +6,7 @@
+ dnl usually in <utime.h>.
+ dnl Some systems have utime.h but don't declare the struct anywhere.
+ 
+-AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
++AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
+ [
+   AC_CHECK_HEADERS(utime.h)
+   AC_REQUIRE([AC_HEADER_TIME])
+diff -Nurd gsnmp-0.3.0.orig/gsnmp.m4 gsnmp-0.3.0/gsnmp.m4
+--- gsnmp-0.3.0.orig/gsnmp.m4	2010-02-19 10:35:29.000000000 +0200
++++ gsnmp-0.3.0/gsnmp.m4	2010-08-09 13:30:46.000000000 +0300
+@@ -1,7 +1,7 @@
+ dnl AM_PATH_GSNMP()
+ dnl 
+ 
+-AC_DEFUN(AM_PATH_GSNMP,
++AC_DEFUN([AM_PATH_GSNMP],
+ [
+   PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1)
+ ])
recipes/gsnmp/gsnmp_0.3.0.bb +3 -2
index b191762..e27e3e9 100644
@@ -2,9 +2,10 @@ DESCRIPTION = "SNMP library written on top of glib and gnet."
 SECTION = "libs/network"
 LICENSE = "GPLv2"
 DEPENDS = "glib-2.0 gnet"
-PR = "r0"
+PR = "r1"
 
-SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz"
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz \
+	   file://quote-fix.patch"
 
 SRC_URI[md5sum] = "466699c11b70e18a04d51388b8f89f1c"
 SRC_URI[sha256sum] = "e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9"
Signature · 1 line
1.5.6.5
#22 lore raw

Re: [PATCH 2/2] recipe for scli-0.4.0

In reply to Frans Meulenbroeks
Quoted 49 lines · Frans Meulenbroeks

2010/8/4 Henri Bragge <[email protected]>

Quoted 28 lines
---
 recipes/scli/scli.inc    |    6 ++++++
 recipes/scli/scli_svn.bb |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/scli/scli.inc
 create mode 100644 recipes/scli/scli_svn.bb
recipes/scli/scli.inc new file +6 -0
new file mode 100644
index 0000000..abe341d
@@ -0,0 +1,6 @@
+DESCRIPTION = "SNMP Command Line Interface"
+LICENSE = "GPLv2"
+SECTION = "console/network"
+DEPENDS = "gsnmp readline libxml2 ncurses"
+
+inherit autotools
recipes/scli/scli_svn.bb new file +0 -0
new file mode 100644
index 0000000..45bd08e

recipes/scli/scli_svn.bb line 5

Quoted 5 lines
recipes/scli/scli_svn.bb new file +5 -0
@@ -0,0 +1,8 @@
+require scli.inc
+
+SRCREV = "3285"
+PV = "0.4.0+svnr${SRCREV}"
+PR = "r1"

+

Quoted 6 lines
recipes/scli/scli_svn.bb new file +1 -0
+SRC_URI = "svn://

cnds.eecs.jacobs-university.de/svn/schoenw/src/scli;module=trunk;proto=https "
+S = "${WORKDIR}/trunk"

Same remarks as for the other one.
Also, do we need the .inc file. If I look at the content it is hardly worth putting it in a separate file.

Quoted 4 lines

Then again *if* you insist on an inc file you should also have an INC_PR.

This also holds for the other recipe.

Thanks for the comments, sent v2 of the patches.

Just thought .inc would be a good idea to separate generic stuff from svn-specific, but indeed there's very little of the generic part to justify its own file. Fixed the PRs also.

Btw, only https seems to be available.

- Henri

#23 lore raw

PATCH v3 1/2 recipe for gsnmp-0.3.0

In reply to Frans Meulenbroeks
---
 recipes/gsnmp/gsnmp_0.3.0.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp_0.3.0.bb
recipes/gsnmp/gsnmp_0.3.0.bb new file +12 -0
new file mode 100644
index 0000000..b191762
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP library written on top of glib and gnet."
+SECTION = "libs/network"
+LICENSE = "GPLv2"
+DEPENDS = "glib-2.0 gnet"
+PR = "r0"
+
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/gsnmp-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "466699c11b70e18a04d51388b8f89f1c"
+SRC_URI[sha256sum] = "e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9"
+
+inherit autotools pkgconfig
Signature · 1 line
1.5.6.5
#24 lore raw

PATCH v3 2/2 recipe for scli-0.4.0

---
 recipes/scli/scli_0.4.0.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/scli/scli_0.4.0.bb
recipes/scli/scli_0.4.0.bb new file +12 -0
new file mode 100644
index 0000000..3d24910
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP Command Line Interface"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+DEPENDS = "gsnmp readline libxml2 ncurses"
+PR = "r0"
+
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/scli/scli-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "486c92c76059a35c87e88edf24cbf804"
+SRC_URI[sha256sum] = "308511589260d3da9bc5817ace363180070ac83ccba9231b7b9a01e1b0c29fe1"
+
+inherit autotools
Signature · 1 line
1.5.6.5
#25 lore raw

Re: [PATCH v3 2/2] recipe for scli-0.4.0

2010/8/5 Henri Bragge <[email protected]>:

Quoted 17 lines

---
 recipes/scli/scli_0.4.0.bb |   12 ++++++++++++

 1 files changed, 12 insertions(+), 0 deletions(-)

 create mode 100644 recipes/scli/scli_0.4.0.bb

recipes/scli/scli_0.4.0.bb new file +3 -0
new file mode 100644
index 0000000..3d24910
@@ -0,0 +1,12 @@
+DESCRIPTION = "SNMP Command Line Interface"
+SECTION = "console/network"
+LICENSE = "GPLv2"

recipes/scli/scli_0.4.0.bb

Quoted 10 lines
recipes/scli/scli_0.4.0.bb new file +9 -1
+DEPENDS = "gsnmp readline libxml2 ncurses"
+PR = "r0"
+
+SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/scli/scli-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "486c92c76059a35c87e88edf24cbf804"
+SRC_URI[sha256sum] = "308511589260d3da9bc5817ace363180070ac83ccba9231b7b9a01e1b0c29fe1"
+
+inherit autotools
--

Tried it. Fetch is ok now, but when building I get a QA issue causing the build to fail (angstrom/beagleboard):

OTE: Running task 665 of 669 (ID: 16, /home/frans/oe/openembedded/recipes/scli/scli_0.4.0.bb,
do_package_write_ipk)
ERROR: QA Issue with staging: libexslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA Issue with staging: libxslt.pc failed sanity test (tmpdir)
in path /home/frans/oe/tmp_angstrom/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig
ERROR: QA staging was broken by the package built above

see http://tinderbox.openembedded.net/builds/81310/

Frans

#26 lore raw

Re: [PATCH 1/2] recipe for gsnmp-0.3.0

In reply to Henri Bragge

2010/8/4 Henri Bragge <[email protected]>

Quoted 27 lines
---
 recipes/gsnmp/gsnmp.inc    |    6 ++++++
 recipes/gsnmp/gsnmp_svn.bb |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gsnmp/gsnmp.inc
 create mode 100644 recipes/gsnmp/gsnmp_svn.bb
recipes/gsnmp/gsnmp.inc new file +6 -0
new file mode 100644
index 0000000..66e88cc
@@ -0,0 +1,6 @@
+DESCRIPTION = "SNMP library written on top of glib and gnet."
+LICENSE = "GPLv2"
+SECTION = "libs/network"
+DEPENDS = "glib-2.0 gnet"
+
+inherit autotools pkgconfig
recipes/gsnmp/gsnmp_svn.bb new file +0 -0
new file mode 100644
index 0000000..ed27bb6

recipes/gsnmp/gsnmp_svn.bb line 5

Quoted 5 lines
recipes/gsnmp/gsnmp_svn.bb new file +5 -0
@@ -0,0 +1,8 @@
+require gsnmp.inc
+
+SRCREV = "3372"
+PV = "0.3.0+svnr${SRCREV}"
+PR = "r1"

Why do you start with PR = r1?

Quoted 5 lines
recipes/gsnmp/gsnmp_svn.bb new file +2 -0
+
+SRC_URI = "svn://

cnds.eecs.jacobs-university.de/svn/schoenw/src/gsnmp;module=trunk;proto=https "

Does it need to be https ?
If http is also supported, I would prefer http i.s.o. https

Quoted 10 lines

+S = "${WORKDIR}/trunk"
--
1.5.6.5

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel