Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779631 - net-dialup/freeradius has magic dependency on libpcap
Summary: net-dialup/freeradius has magic dependency on libpcap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-31 23:43 UTC by Mattias Merilai
Modified: 2022-06-11 05:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Merilai 2021-03-31 23:43:03 UTC
While freeradius has a pcap use flag, this seems to only decide whether libpcap gets pulled into the system and not whether freeradius is build against libpcap. This messes up binpkgs.

Reproducible: Always

Steps to Reproduce:
1. Have libpcap installed in the system.
2. Emerge freeradius with USE=-pcap
3. Freeradius gets built against libpcap
4. Create a binpkg of freeradius and install it on a host that does not have libpcap installed.
5. Witness freeradius fail to start on said host.
Actual Results:  
radius ~ # /etc/init.d/radiusd start
 * Starting radiusd ...
/usr/sbin/radiusd: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
 * start-stop-daemon: failed to start `/usr/sbin/radiusd'
 * Failed to start radiusd                                                                                                  [ !! ]
 * ERROR: radiusd failed to start


Expected Results:  
radius ~ # /etc/init.d/radiusd start
 * Starting radiusd ...    

radius ~ # ldd /usr/sbin/radiusd 
        linux-vdso.so.1 (0x00007ffc19ffc000)
        libfreeradius-server.so => /usr/lib64/libfreeradius-server.so (0x00007391d11f4000)
        libfreeradius-radius.so => /usr/lib64/libfreeradius-radius.so (0x00007391d11b1000)
        libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007391d0ef7000)
        libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x00007391d0e66000)
        libtalloc.so.2 => /usr/lib64/libtalloc.so.2 (0x00007391d0e55000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007391d0e4d000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007391d0e2b000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007391d0df1000)
        libc.so.6 => /lib64/libc.so.6 (0x00007391d0c75000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007391d0c2f000)
        libcap.so.2 => /lib64/libcap.so.2 (0x00007391d0c24000)
        /lib64/ld-linux-x86-64.so.2 (0x00007391d12a2000)
        libpcap.so.1 => not found
        libz.so.1 => /lib64/libz.so.1 (0x00007391d0c08000)
        libbsd.so.0 => /usr/lib64/libbsd.so.0 (0x00007391d0bee000)
Comment 1 Mattias Merilai 2021-04-07 21:00:22 UTC
anyone?
Comment 2 Geaaru 2021-04-08 06:41:02 UTC
Hi, thanks for the report.

It seems a similar issue to: https://bugs.gentoo.org/662074

I'm currently a bit busy and i haven't found a way to fix this without change the FreeRadius code.

It's something that is been added on the previous maintainer.
I will try to investigate on this in the next month.

bye
G.
Comment 3 Larry the Git Cow gentoo-dev 2022-06-11 05:02:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c42cf46c03f80f53bd1cad1d287c50064509567a

commit c42cf46c03f80f53bd1cad1d287c50064509567a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-11 04:53:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-11 05:01:54 +0000

    net-dialup/freeradius: add 3.2.0
    
    Closes: https://bugs.gentoo.org/805269
    Closes: https://bugs.gentoo.org/779631
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dialup/freeradius/Manifest                |   1 +
 net-dialup/freeradius/freeradius-3.2.0.ebuild | 309 ++++++++++++++++++++++++++
 2 files changed, 310 insertions(+)