Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtalloc: Add missing dependency on libbsd #3522

Closed
wants to merge 1 commit into from
Closed

libtalloc: Add missing dependency on libbsd #3522

wants to merge 1 commit into from

Conversation

monoidic
Copy link
Contributor

$ readelf -d ~/../usr/lib/libtalloc.so | grep NEEDED
0x0000000000000001 (NEEDED)             Shared library: [libbsd.so]
0x0000000000000001 (NEEDED)             Shared library: [libdl.so]
0x0000000000000001 (NEEDED)             Shared library: [libc.so]

@tomty89
Copy link
Contributor

tomty89 commented Mar 16, 2019

Which binary repo / architecture are you on? I'm not seeing this on the android-5 aarch64 libtalloc. Neither does talloc on Arch appear to have dependency on libbsd.

@monoidic
Copy link
Contributor Author

Version 2.1.14 from bintray (https://dl.bintray.com/termux/termux-packages-24/aarch64/:libtalloc_2.1.14_aarch64.deb). I just checked that .deb a desktop system:

$ dpkg -x libtalloc_2.1.14_aarch64.deb out
$ readelf -d out/data/data/com.termux/files/usr/lib/libtalloc.so | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libbsd.so]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so]

@ghost
Copy link

ghost commented Mar 16, 2019

libbsd was picked accidentally because it was exist before libtalloc was built.

    # libbsd on some platforms provides strlcpy and strlcat
    if not conf.CHECK_FUNCS('strlcpy strlcat'):
        if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
                               checklibc=True):
            strlcpy_in_bsd = True

This should not be merged unless there is a good reason to use functions from libbsd.

@monoidic
Copy link
Contributor Author

monoidic commented Mar 16, 2019

Whatever fixes (packages depending on) libtalloc ¯\_(ツ)_/¯

fornwall added a commit that referenced this pull request Mar 17, 2019
The libtalloc build tries to link in libbsd for strlcpy and strlcat,
which is not needed on Android since bionic already has those.

See #3522.
fornwall added a commit that referenced this pull request Mar 17, 2019
The libtalloc build tries to link in libbsd for strlcpy and strlcat,
which is not needed on Android since bionic already has those.

See #3522.
@fornwall
Copy link
Member

@monoidic Thanks for reporting!

This should be fixed by bd59d70 (applied both to master and the android-5 branch), which avoids linking in libbsd (and libtalloc only tried to link in that library for the strlcpy and strlcat functions, which is not needed since the Android libc already has those.

@fornwall fornwall closed this Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants