Commit Graph

3 Commits

Author SHA1 Message Date
Vicente Olivert Riera
0d3f4752af ibrdtn-tools: fix linking problem when building statically
The problem looks like this:

/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib/librt.a(timer_routines.os):
In function `__start_helper_thread':
timer_routines.c:(.text+0x2f4): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status

Adding -pthread to LDFLAGS fixes the problem.

Fixes:

  http://autobuild.buildroot.net/results/a87/a87a764d3a28f835ed8645923594f7023a662ae8/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-10-04 11:43:21 +02:00
Luca Ceresoli
7b0e757fb8 package: Remove trailing slash from all package site URLs
The recommended form is without the trailing slash, and will become
mandatory in a coming commit.

This avoids the need for the $$($(2)_SITE:/=) magic in package/pkg-generic.mk
to avoid double slashes in download URLs, like
"https://mosh.mit.edu//mosh-1.2.5.tar.gz".
                     ^^

Note: this work has already been done in b0b9606530 a few
months ago and earlier in c7f4b96471 and 4a9eb20de8,
but no check has been added at that time to avoid new slashes to slip
in, and so they did. This time a patch will follow immediately to
prevent future mistakes from being unnoticed.

Mass-replaced with the following command:

  git grep -l '_SITE.*/$' | xargs sed -i '/_SITE.*=/s|/$||'

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-09-30 12:46:42 +02:00
Tom Sparks
0b22622fec ibrdtn-tools: new package
[Thomas:
  - include package/ibrdtn-tools/Config.in from package/Config.in
  - fix the Config.in option name: we don't use - in option names, it
    should be replaced by _. Also do the same change in the .mk file.
  - from Config.in, don't select BR2_PACKAGE_IBRDTND (it's not a
    dependency of ibrdtn-tools), but instead select
    BR2_PACKAGE_IBRCOMMON and BR2_PACKAGE_IBRDTN.
  - in the Config.in file, fix the comment dependency logic (we want
    the comment to be shown when either thread support *or* C++
    support is missing)
  - add hash file.
  - do not install to staging, since the package does not install any
    library
  - remove IBRDTN_TOOLS_SOURCE variable, since it's equal to the
    default value
  - add ibrcommon, ibrdtn and host-pkgconf as mandatory dependencies,
    and handle libdaemon and libarchive as optional dependencies.
  - remove custom INSTALL_STAGING_OPTS and INSTALL_TARGET_OPTS:
    automake is used, so there's no need for any hack.]

Signed-off-by: Tom Sparks <tom_a_sparks@yahoo.com.au>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-29 22:59:14 +02:00