Skip to content

[Package]: libresolve #24913

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

Open
6 of 8 tasks
Manamama opened this issue Jun 1, 2025 · 1 comment
Open
6 of 8 tasks

[Package]: libresolve #24913

Manamama opened this issue Jun 1, 2025 · 1 comment
Labels
package request A new package was requested

Comments

@Manamama
Copy link

Manamama commented Jun 1, 2025

Why is it worth to add this package?

For docling and many more.

See: docling-project/docling-parse#122 how I seem to have solved it (via Grok AI, admitted) for now:

#include <resolv.h>
#include <netinet/in.h>
#include <arpa/nameser.h>

// Forward resolver functions to Bionic's libc
int res_init(void) { return res_init(); }
int res_query(const char *dname, int class, int type, unsigned char *answer, int anslen) { return res_query(dname, class, type, answer, anslen); }
int res_search(const char *dname, int class, int type, unsigned char *answer, int anslen) { return res_search(dname, class, type, answer, anslen); }
int res_send(const char *msg, int msglen, unsigned char *answer, int anslen) { return res_send(msg, msglen, answer, anslen); }

Home page URL

No response

Source code URL

https://github.com/aosm/libresolv/blob/master/resolv.h

Packaging policy acknowledgement

  • The project is actively developed.

  • The project has existing packages and is "well known".

  • Licensed under an open source license.

  • Not available through a language package manager: pip, npm, cpan, cargo, etc.

  • Not taking up too much disk space (< 100MiB per architecture, exceptions can be made)

  • Not duplicating the functionality of existing packages.

  • Not serving hacking, malware, phishing, spamming, spying, ddos functionality.

  • I certify that I have read Termux Packaging Policy and understand that my request will be denied if it is found lacking.

Additional information

Nota bene: me no coder, maybe this resolver is available via "cargo in mamba under glibc runner" already, etc, see also termux/proot-distro#522 (comment), if you deem the above as spam or like.

@Manamama Manamama added the package request A new package was requested label Jun 1, 2025
@Manamama
Copy link
Author

Manamama commented Jun 1, 2025

Ah, could just one rename this?

~/downloads/uclibc-ng $ ldd /data/data/com.termux/files/usr/lib/libresolv_wrapper.so
        libdl.so => /system/lib64/libdl.so
        libc.so => /system/lib64/libc.so
        ld-android.so => /system/lib64/ld-android.so

To (my hand compiled):

~/downloads/uclibc-ng $ ldd /data/data/com.termux/files/usr/lib/libresolv
libresolv.so          libresolv_wrapper.so
~/downloads/uclibc-ng $ ldd /data/data/com.termux/files/usr/lib/libresolv.so
        libc.so => /system/lib64/libc.so
        libdl.so => /system/lib64/libdl.so
        ld-android.so => /system/lib64/ld-android.so
~/downloads/uclibc-ng $

?

As:

~/downloads/uclibc-ng $ ll /data/data/com.termux/files/usr/lib/libresolv.so
.rwx------. u0_a278 u0_a278 5.7 KB Sun Jun  1 10:50:26 2025  /data/data/com.termux/files/usr/lib/libresolv.so
~/downloads/uclibc-ng $ ll /data/data/com.termux/files/usr/lib/libresolv_wrapper.so
.rw-------. u0_a278 u0_a278 21 KB Sun Jan  8 00:02:53 2023  /data/data/com.termux/files/usr/lib/libresolv_wrapper.so                                                                                               ~/downloads/uclibc-ng $

If so, just the name of libresolv_wrapper.so should be as per above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested
Projects
None yet
Development

No branches or pull requests

1 participant