Joao Marcos Costa 05191ba25b
memcached: drop libhugetlbfs
In Linux, memcached relies on transparent huge pages, and even if
libhugetlbfs is enabled by the PACKAGECONFIG (and detected during
do_configure, of course), it is simply not used:

root@qemuriscv64:~# ldd $(which memcached)
    linux-vdso.so.1 (0x0000003fa4358000)
    libevent-2.1.so.7 => /lib/libevent-2.1.so.7 (0x0000003fa42b0000)
    libc.so.6 => /lib/libc.so.6 (0x0000003fa4157000)
    /usr/lib/ld-linux-riscv64-lp64d.so.1 (0x0000003fa435a000)

The main reason is the fact that the only call to a function coming from
libhugetlbfs is here:

https://github.com/memcached/memcached/blob/master/memcached.c#L4274

and getpagesizes() is only called if the #if block evaluates to true:

    int ret = -1;
    size_t sizes[32];
    int avail = getpagesizes(sizes, 32);
(...)
    /* check if transparent hugepages is compiled into the kernel */
    /* RH based systems possibly uses a different path */
    static const char *mm_thp_paths[] = {
        "/sys/kernel/mm/transparent_hugepage/enabled",
        "/sys/kernel/mm/redhat_transparent_hugepage/enabled",
        NULL
    };
(...)

This block relies on HAVE_MEMCNTL, which is a Solaris-specific feature.
Therefore, the dependency link between memcached and libhugetlbfs
doesn't exist in Linux.

Drop libhugetlbfs from memcached's recipe.

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-24 18:39:52 -07:00
..
2026-03-17 13:25:14 -07:00
2026-01-22 22:01:04 -08:00
2026-04-10 17:25:50 -07:00
2026-04-17 14:16:04 -07:00
2026-04-10 07:59:50 -07:00
2026-01-12 08:53:42 -08:00
2023-02-16 19:33:29 -08:00
2025-03-21 11:07:33 -07:00
2026-03-17 22:02:52 -07:00
2025-11-10 20:31:55 -08:00
2020-11-09 20:49:52 -08:00
2023-10-17 21:42:56 -07:00
2026-01-30 23:59:07 -08:00
2026-02-25 20:29:55 -08:00
2026-04-24 18:39:52 -07:00
2025-07-15 23:54:15 -07:00
2024-05-23 08:44:42 -07:00
2026-04-10 07:59:54 -07:00
2025-12-28 08:14:39 -08:00
2025-11-28 11:39:52 -08:00
2026-04-12 16:42:04 -07:00
2026-03-22 14:13:01 -07:00
2026-04-13 19:15:56 -07:00
2026-03-17 13:25:13 -07:00
2026-03-27 09:09:05 -07:00
2025-12-02 09:18:20 -08:00
2026-03-20 09:51:45 -07:00
2024-04-09 13:56:26 -07:00
2026-03-17 13:25:14 -07:00
2025-04-19 14:36:02 -07:00
2026-04-14 08:59:36 -07:00
2026-01-12 08:53:45 -08:00
2026-04-06 10:03:48 -07:00
2026-03-17 13:25:24 -07:00
2026-03-17 13:25:13 -07:00
2023-12-29 09:04:16 -08:00
2025-12-16 19:57:34 -08:00
2026-03-02 19:25:57 -08:00