* [Buildroot] [PATCH] snappy: add dependency on host-pkgconf
@ 2014-12-15 13:44 Steve James
2014-12-15 17:37 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Steve James @ 2014-12-15 13:44 UTC (permalink / raw)
To: buildroot
Signed-off-by: Steve James <ste@junkomatic.net>
---
Hello all. First Buildroot patch :-)
(This was discovered when adding leveldb which requires snappy. This missing
dependency is exposed when selection of this package is the only non-default
configuration choice ie you're not getting host-pkgconf via some other non-
default choice.)
Snappy doesn't configure without host pkg-config. The diagnostic from autoconf
is totally unhelpful, so for the benefit of others who might need this
prerequisite, when autoconf says this...
configure.ac:42: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:44: error: possibly undefined macro: AC_MSG_FAILURE
The solution is (probably) to add host-pkgconf to the packages's DEPENDENCIES
list.
package/snappy/snappy.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/snappy/snappy.mk b/package/snappy/snappy.mk
index fd89325..6bda7ce 100644
--- a/package/snappy/snappy.mk
+++ b/package/snappy/snappy.mk
@@ -10,6 +10,7 @@ SNAPPY_LICENSE = BSD-3c
SNAPPY_LICENSE_FILES = COPYING
# from git
SNAPPY_AUTORECONF = YES
+SNAPPY_DEPENDENCIES = host-pkgconf
SNAPPY_INSTALL_STAGING = YES
$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] snappy: add dependency on host-pkgconf
2014-12-15 13:44 [Buildroot] [PATCH] snappy: add dependency on host-pkgconf Steve James
@ 2014-12-15 17:37 ` Yann E. MORIN
2014-12-17 12:18 ` Steve James
0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2014-12-15 17:37 UTC (permalink / raw)
To: buildroot
Steve, All,
On 2014-12-15 13:44 +0000, Steve James spake thusly:
> Signed-off-by: Steve James <ste@junkomatic.net>
>
> ---
> Hello all. First Buildroot patch :-)
Great, glad to see your contribution! :-)
> (This was discovered when adding leveldb which requires snappy. This missing
> dependency is exposed when selection of this package is the only non-default
> configuration choice ie you're not getting host-pkgconf via some other non-
> default choice.)
This:
> Snappy doesn't configure without host pkg-config. The diagnostic from autoconf
> is totally unhelpful, so for the benefit of others who might need this
> prerequisite, when autoconf says this...
>
> configure.ac:42: error: possibly undefined macro: AC_DEFINE
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure.ac:44: error: possibly undefined macro: AC_MSG_FAILURE
... up until here should have been part of the ommit log itself, that
is, above the --- line. All that is below the --- line is "forgotten"
by git when it applies a patch.
Basically, a commit log should contain:
topic: a short description
A paragraphe with one (or more as needed) sentences explaining
the problem, possibly with excerpts of the failure.
A paragraph explaining the reason for the failure.
A paragraph explaining the solution.
Signed-off-by: Real NAME <email-address>
Of course, for very trivial patches, it is possible to shorten the
commit log. So for this patch, the commit log could have been something
like:
package/snappy: needs host-pkconf
Snappy doesn't configure without host pkg-config. The diagnostic
from autoconf is totally unhelpful:
configure.ac:42: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:44: error: possibly undefined macro: AC_MSG_FAILURE
So, add host-pkgconf to the dependencies.
Signed-off-by: Steve James <ste@junkomatic.net>
> The solution is (probably) to add host-pkgconf to the packages's DEPENDENCIES
> list.
>
>
> package/snappy/snappy.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/snappy/snappy.mk b/package/snappy/snappy.mk
> index fd89325..6bda7ce 100644
> --- a/package/snappy/snappy.mk
> +++ b/package/snappy/snappy.mk
> @@ -10,6 +10,7 @@ SNAPPY_LICENSE = BSD-3c
> SNAPPY_LICENSE_FILES = COPYING
> # from git
> SNAPPY_AUTORECONF = YES
> +SNAPPY_DEPENDENCIES = host-pkgconf
Indeed, snappy makes use of PKG_CHECK_MODULES().
With the commit log rewritten, you can add my:
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Thank you for this patch! :-)
Regards,
Yann E. MORIN.
> SNAPPY_INSTALL_STAGING = YES
>
> $(eval $(autotools-package))
> --
> 1.7.10.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] snappy: add dependency on host-pkgconf
2014-12-15 17:37 ` Yann E. MORIN
@ 2014-12-17 12:18 ` Steve James
2014-12-17 18:14 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Steve James @ 2014-12-17 12:18 UTC (permalink / raw)
To: buildroot
On Monday 15 Dec 2014 17:37:26 Yann E. MORIN wrote:
> Steve, All,
>
> On 2014-12-15 13:44 +0000, Steve James spake thusly:
> > Signed-off-by: Steve James <ste@junkomatic.net>
> >
> > ---
> > Hello all. First Buildroot patch :-)
>
> Great, glad to see your contribution! :-)
>
--snip--
>
> With the commit log rewritten, you can add my:
>
> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
> Thank you for this patch! :-)
Many thanks for the feedback Yann. Patch v2 follows.
Looking at Patchwork, I presume I should mark this v1 patch as superseded.
I don't think Patchwork would be able to do that automatically?
--snip--
Thanks,
Steve.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] snappy: add dependency on host-pkgconf
2014-12-17 12:18 ` Steve James
@ 2014-12-17 18:14 ` Yann E. MORIN
0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2014-12-17 18:14 UTC (permalink / raw)
To: buildroot
Steve, All,
On 2014-12-17 12:18 +0000, Steve James spake thusly:
[--SNIP--]
> Looking at Patchwork, I presume I should mark this v1 patch as superseded.
> I don't think Patchwork would be able to do that automatically?
Indeed, Patchwork is not smart enough, someone has to mark it superseded
manualy.
If you are registered with Patchwork, you can act on your own patches
(which you seem to have already discovered!).
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-17 18:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 13:44 [Buildroot] [PATCH] snappy: add dependency on host-pkgconf Steve James
2014-12-15 17:37 ` Yann E. MORIN
2014-12-17 12:18 ` Steve James
2014-12-17 18:14 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox