https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    01/12/2023, 4:24 PM
    ewoud: basically, it requires the equivalent of libc-dev installed, which very small images might not have
  • v

    VoxBot

    01/12/2023, 6:24 PM
    meena: ,/
  • v

    VoxBot

    01/12/2023, 6:24 PM
    o/*
  • v

    VoxBot

    01/12/2023, 6:25 PM
    damned, the morning start bad… I don't have your issue on 13.1-RELEASE at Hetzner…
  • v

    VoxBot

    01/12/2023, 6:25 PM
    facter virtual #=> kvm
  • v

    VoxBot

    01/12/2023, 6:27 PM
    Do you mean you have the issue in the sto^Wborrowed code? so in your code?
  • v

    VoxBot

    01/12/2023, 6:33 PM
    smortex: I had a very slimmed down 13.1…built from PkgBase installed, and without -dev packages. libc.so is in FreeBSD-clibs-dev
  • v

    VoxBot

    01/12/2023, 6:34 PM
    meena: Ok, better understand. Do you think we can / should do something that could improve the situation?
  • v

    VoxBot

    01/12/2023, 6:36 PM
    smortex: i would have to look into Ruby's ffi to see if something can be done
  • v

    VoxBot

    01/12/2023, 6:38 PM
    smortex: https://github.com/ffi/ffi/wiki/Basic-Usage#hello-world-using-ffi maybe this already fixes the issue
  • v

    VoxBot

    01/12/2023, 6:41 PM
    nope, https://github.com/ffi/ffi/blob/master/lib/ffi/platform.rb#L145
  • v

    VoxBot

    01/12/2023, 6:43 PM
    Hetzner <3
  • v

    VoxBot

    01/12/2023, 6:44 PM
    https://github.com/ffi/ffi/wiki/Loading-Libraries
  • v

    VoxBot

    01/12/2023, 6:45 PM
    lol… /usr/lib/libc.so: ASCII text
  • v

    VoxBot

    01/12/2023, 6:46 PM
    my mind hurt… wtf?
  • v

    VoxBot

    01/12/2023, 6:46 PM
    and indeed it seems to point to the right .so.7 library
  • v

    VoxBot

    01/12/2023, 6:46 PM
    yupp
  • v

    VoxBot

    01/12/2023, 6:47 PM
    so the fix is: ffi_lib ['c', 'libc.so.7']
  • v

    VoxBot

    01/12/2023, 6:48 PM
    and when FreeBSD bumps that again in fifteen years, then you do, ffi_lib ['c', 'libc.so.8', 'libc.so.7'] for a year or so
  • v

    VoxBot

    01/12/2023, 6:58 PM
    you'd think there's a better way, like doing so in packaging
  • v

    VoxBot

    01/12/2023, 6:59 PM
    https://github.com/ffi/ffi/wiki/Loading-Libraries#in-memory-libraries wouldn't Ruby load libc already so it's already in-memory?
  • v

    VoxBot

    01/12/2023, 7:00 PM
    at least on Fedora 37 /usr/bin/ruby-mri is linked against libc.so.6
  • v

    VoxBot

    01/12/2023, 7:01 PM
    possibly also more efficient
  • v

    VoxBot

    01/12/2023, 7:01 PM
    duh, good point. Will try
  • v

    VoxBot

    01/12/2023, 7:06 PM
    interesting that it also appears to use ffi_lib :FFILibrary:LIBC in some places, but not for bsd and freebsd
  • v

    VoxBot

    01/12/2023, 7:06 PM
    s/it/facter/
  • v

    VoxBot

    01/12/2023, 7:07 PM
    on the same Fedora 37 that resolves to libc.so.6
  • v

    VoxBot

    01/12/2023, 7:08 PM
    :FFILibrary:LIBC is a lot of code
  • v

    VoxBot

    01/12/2023, 7:09 PM
    the way most of facter is written, it seems to want to be as efficient as possible, so using that seems to defeat that idea
  • v

    VoxBot

    01/12/2023, 7:10 PM
    it's used for hostname and load_averages so it's already loaded in many cases?
1...241242243...648Latest