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

Perl is always configured for AFS on RHEL9 and derivatives #22522

Open
Grinnz opened this issue Aug 20, 2024 · 0 comments
Open

Perl is always configured for AFS on RHEL9 and derivatives #22522

Grinnz opened this issue Aug 20, 2024 · 0 comments

Comments

@Grinnz
Copy link
Contributor

Grinnz commented Aug 20, 2024

Description
When building Perl on Rocky Linux 9, the "afs" configuration is always set to true, due to the root-level '/afs' directory always being present.

Ref: https://www.reddit.com/r/Fedora/comments/z090bw/whats_the_afs_dir_on_my_f37_system_its_empty/

Steps to Reproduce
Install Perl on RHEL/CentOS/Rocky Linux 9 or recent versions of Fedora Linux. The configure script will ask AFS-related questions and the 'afs' configuration will be set to true.

$ perl -V:afs
afs='true';

Expected behavior
Possibly there is some better way to detect if AFS is actually installed/in use? On CentOS 7:

$ perl -V:afs
afs='false';

Perl configuration

Summary of my perl5 (revision 5 version 40 subversion 0) configuration:
   
  Platform:
    osname=linux
    osvers=5.14.0-284.11.1.el9_2.x86_64
    archname=x86_64-linux
    uname='linux beta.perldoc.pl 5.14.0-284.11.1.el9_2.x86_64 #1 smp preempt_dynamic tue may 9 17:09:15 utc 2023 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dprefix=/opt/perl-5.40.0 -de -A'eval:scriptdir=/opt/perl-5.40.0/bin''
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='11.4.1 20231218 (Red Hat 11.4.1-3)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /usr/lib64 /usr/local/lib64
    libs=-lpthread -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=/lib/../lib64/libc.so.6
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.34'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    HAS_LONG_DOUBLE
    HAS_STRTOLD
    HAS_TIMES
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_SIPHASH13
    PERL_HASH_USE_SBOX32
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under linux
  Compiled at Aug 19 2024 03:17:03
  @INC:
    /opt/perl-5.40.0/lib/site_perl/5.40.0/x86_64-linux
    /opt/perl-5.40.0/lib/site_perl/5.40.0
    /opt/perl-5.40.0/lib/5.40.0/x86_64-linux
    /opt/perl-5.40.0/lib/5.40.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants