All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/5] gnupg2: new package
Date: Fri, 6 Jun 2014 17:34:53 +0100	[thread overview]
Message-ID: <5391EDAD.6070908@imgtec.com> (raw)
In-Reply-To: <k2096bxgbf.ln2@ID-313208.user.individual.net>

On 06/06/2014 03:33 PM, Bernd Kuhls wrote:
> Vicente Olivert Riera
> <Vincent.Riera@imgtec.com> wrote in
> news:1402062269-57018-4-git-send-email-Vincent.Riera at imgtec.com:
>
>> +     select BR2_PACKAGE_PTH
>> +     depends on !BR2_TOOLCHAIN_USES_UCLIBC # pth
>
> Hi,

Hello Bernd, all,

> afaik gnupg2 is compatible with uclibc if you use the existing libpthsem
> package instead of your new pth package.

no, it doesn't build (as is) using libpthsem. Here is why:

First, because it looks for pth-config, which is installed by pth. 
libpthsem installs pthsem-config.

Second, although you try to make a pth-config symlink pointing to 
pthsem-config, it will fail again because "pthsem-config --version" 
outputs the version in a different format than pth-config, so the pth 
version check in gnupg2's configure script will fail.

Third, although you make a copy of pthsem-config calling it pth-config, 
and you modify it to output the version in the same way as the original 
pth-config does, it will fail again because it also looks for pth.h 
which is installed by pth. pthsem installs pthsem.h.

Now, if you make a pth.h symlink pointing to pthsem.h, then it builds fine.

To summarize: if you want to build gnupg2 using libpthsem instead of 
pth, you will need to patch libpthsem package to install a compatibility 
pth-config script (just a copy with the --version modification) and a 
compatibility pth.h symlink.

So, we have three options here and we need to decide one of them:

Option 1: add the new pth package
   pros: -there is no need to patch libpthsem
   cons: -gnupg2 will not work with uclibc

Option 2: patch the libpthsem package
   pros: -no need to add pth package
         -gnupg2 will work with uclibc
   cons: -we need to patch libpthsem to install compatibility stuff

Option 3: patch gnupg2 to use libpthsem in case of pth is missing
   pros: -no need to add pth package
         -gnupg2 will work with uclibc
         -gnupg2 will work with both libpthsem and pth
   cons: -patching gnupg2 source code should be accepted upstream

Let's vote! :)

> Regards, Bernd
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-- 
Vincent

  reply	other threads:[~2014-06-06 16:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06 13:44 [Buildroot] [PATCH 0/5] Add support for gnupg2 Vicente Olivert Riera
2014-06-06 13:44 ` [Buildroot] [PATCH 1/5] pth: new package Vicente Olivert Riera
2014-06-06 19:47   ` Thomas Petazzoni
2014-06-09  8:53     ` Vicente Olivert Riera
2014-07-23 21:36   ` Thomas Petazzoni
2014-06-06 13:44 ` [Buildroot] [PATCH 2/5] libksba: " Vicente Olivert Riera
2014-06-06 14:35   ` Bernd Kuhls
2014-06-09 13:00   ` Thomas Petazzoni
2014-06-06 13:44 ` [Buildroot] [PATCH 3/5] gnupg2: " Vicente Olivert Riera
2014-06-06 14:33   ` Bernd Kuhls
2014-06-06 16:34     ` Vicente Olivert Riera [this message]
2014-06-06 17:06       ` Yann E. MORIN
2014-07-23 21:35       ` Thomas Petazzoni
2014-06-06 13:44 ` [Buildroot] [PATCH 4/5] gnupg: Make gnupg and gnupg2 mutual exclusive Vicente Olivert Riera
2014-07-23 21:36   ` Thomas Petazzoni
2014-06-06 13:44 ` [Buildroot] [PATCH 5/5] pinentry: new package Vicente Olivert Riera
2014-06-09 13:32   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5391EDAD.6070908@imgtec.com \
    --to=vincent.riera@imgtec.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.