Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Linux operating system (OS), a U...  <--  <--- Return to Home Page
   Networked Database  Linux operating system (OS), a U...   [566 / 900] RSS
 From   To   Subject   Date/Time 
Message   Benny Pedersen    Little Mikey   3 Beware; for I am fearless, and therefore powerful.   August 4, 2018
 11:16 PM *  

        # Make sure we install some symlink hacks so that when we build
        # a 2nd stage cross-compiler, gcc finds the target system
        # headers correctly.  See gcc/doc/gccinstall.info
        if is_crosscompile ; then
                # We need to make sure that /lib and /usr/lib always exists.
                # gcc likes to use relative paths to get to its multilibs like
                # /usr/lib/../lib64/.  So while we don't install any files into
                # /usr/lib/, we do need it to exist.
                keepdir $(alt_prefix)/lib
                keepdir $(alt_prefix)/usr/lib

                dosym usr/include $(alt_prefix)/sys-include
                return 0
        fi

        # Files for Debian-style locale updating
        dodir /usr/share/i18n
        sed \
                -e "/^#/d" \
                -e "/SUPPORTED-LOCALES=/d" \
                -e "s: \\\\::g" -e "s:/: :g" \
                "${S}"/localedata/SUPPORTED > "${ED}"/usr/share/i18n/SUPPORTED
\
                 die "generating /usr/share/i18n/SUPPORTED failed"
        cd "${WORKDIR}"/extra/locale
        dosbin locale-gen
        doman *.[0-8]
        insinto /etc
        doins locale.gen

        # Make sure all the ABI's can find the locales and so we only
        # have to generate one set
        local a
        keepdir /usr/$(get_libdir)/locale
        for a in $(get_install_abis) ; do
                if [[ ! -e ${ED}/usr/$(get_abi_LIBDIR ${a})/locale ]] ; then
                        dosym ../$(get_libdir)/locale /usr/$(get_abi_LIBDIR
${a})/locale
                fi
        done

        cd "${S}"

        # Install misc network config files
        insinto /etc
        doins nscd/nscd.conf posix/gai.conf nss/nsswitch.conf
        doins "${WORKDIR}"/extra/etc/*.conf

        if use nscd ; then
                doinitd "$(prefixify_ro "${WORKDIR}"/extra/etc/nscd)"

                local nscd_args=(
                        -e "s:@PIDFILE@:$(strings "${ED}"/usr/sbin/nscd | grep
nscd.pid):"
                )

                sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd

                systemd_dounit nscd/nscd.service
                systemd_newtmpfilesd nscd/nscd.tmpfiles nscd.conf
        else
                # Do this since extra/etc/*.conf above might have nscd.conf.
                rm -f "${ED}"/etc/nscd.conf
        fi

        echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc
        doenvd "${T}"/00glibc

        for d in BUGS ChangeLog CONFORMANCE FAQ NEWS NOTES PROJECTS README* ;
do
                [[ -s ${d} ]] && dodoc ${d}
        done
        dodoc -r ChangeLog.old

        # Prevent overwriting of the /etc/localtime symlink.  We'll handle the
        # creation of the "factory" symlink in pkg_postinst().
        rm -f "${ED}"/etc/localtime

        # Generate all locales if this is a native build as locale generation
        if use compile-locales && ! is_crosscompile ; then
                run_locale_gen "${ED}"
        fi
}

glibc_headers_install() {
        local builddir=$(builddir "headers";)
        cd "${builddir}"
        emake install_root="${D}$(alt_prefix)" install-headers

        insinto $(alt_headers)/gnu
        doins "${S}"/include/gnu/stubs.h

        # Make sure we install the sys-include symlink so that when
        # we build a 2nd stage cross-compiler, gcc finds the target
        # system headers correctly.  See gcc/doc/gccinstall.info
        dosym usr/include $(alt_prefix)/sys-include
}

src_strip() {
        # gdb is lame and requires some debugging information to remain in
        # libpthread, so we need to strip it by hand.  libthread_db makes no
        # sense stripped as it is only used when debugging.
        local pthread=$(has splitdebug ${FEATURES} && echo "libthread_db" 
echo "lib{pthread,thread_db}";)
        env \
                -uRESTRICT \
                CHOST=${CTARGET} \
                STRIP_MASK="/*/{,tls/}${pthread}*" \
                prepallstrip
        # if user has stripping enabled and does not have split debug turned
on,
        # then leave the debugging sections in libpthread.
        if ! has nostrip ${FEATURES} && ! has splitdebug ${FEATURES} ; then
                ${STRIP:-${CTARGET}-strip} --strip-debug
"${ED}"$(alt_prefix)/*/libpthread-*.so
        fi
}

src_install() {
        if just_headers ; then
                export ABI=default
                glibc_headers_install
                return
        fi

        foreach_abi glibc_do_src_install
        src_strip
}

# Simple test to make sure our new glibc isn't completely broken.
# Make sure we don't test with statically built binaries since
# they will fail.  Also, skip if this glibc is a cross compiler.
#
# If coreutils is built with USE=multicall, some of these files
# will just be wrapper scripts, not actual ELFs we can test.
glibc_sanity_check() {
        cd / #228809

        # We enter ${ED} so to avoid trouble if the path contains
        # special characters; for instance if the path contains the
        # colon character (:), then the linker will try to split it
        # and look for the libraries in an unexpected place. This can
        # lead to unsafe code execution if the generated prefix is
        # within a world-writable directory.
        # (e.g. /var/tmp/portage:${HOSTNAME})
        pushd "${ED}"/$(get_libdir) >/dev/null

        local x striptest
        for x in cal date env free ls true uname uptime ; do
                x=$(type -p ${x})
                [[ -z ${x}  ${x} != ${EPREFIX}/* ]] && continue
                striptest=$(LC_ALL="C" file -L ${x} 2>/dev/null)  continue
                case ${striptest} in
                *"statically linked"*) continue;;
                *"ASCII text"*) continue;;
                esac
                # We need to clear the locale settings as the upgrade might
want
                # incompatible locale data.  This test is not for verifying
that.
                LC_ALL=C \
                ./ld-*.so --library-path . ${x} > /dev/null \
                         die "simple run test (${x}) failed"
        done

        popd >/dev/null
}

pkg_preinst() {
        # nothing to do if just installing headers
        just_headers && return

        # prepare /etc/ld.so.conf.d/ for files
        mkdir -p "${EROOT}"/etc/ld.so.conf.d

        # Default /etc/hosts.conf:multi to on for systems with small dbs.
        if [[ $(wc -l < "${EROOT}"/etc/hosts) -lt 1000 ]] ; then
                sed -i '/^multi off/s:off:on:' "${ED}"/etc/host.conf
                einfo "Defaulting /etc/host.conf:multi to on"
        fi

        [[ ${ROOT} != "/" ]] && return 0
        [[ -d ${ED}/$(get_libdir) ]]  return 0
        [[ -z ${BOOTSTRAP_RAP} ]] && glibc_sanity_check
}

pkg_postinst() {
        # nothing to do if just installing headers
        just_headers && return

        if ! tc-is-cross-compiler && [[ -x ${EROOT}/usr/sbin/iconvconfig ]] ;
then
                # Generate fastloading iconv module configuration file.
                "${EROOT}"/usr/sbin/iconvconfig --prefix="${ROOT}"
        fi

        if ! is_crosscompile && [[ ${ROOT} == "/" ]] ; then
                # Reload init ... if in a chroot or a diff init package, ignore
                # errors from this step #253697
                /sbin/telinit U 2>/dev/null

                use compile-locales  run_locale_gen "${EROOT}"
        fi

        # Check for sanity of /etc/nsswitch.conf, take 2
        if [[ -e ${EROOT}/etc/nsswitch.conf ]] && ! has_version
sys-auth/libnss-nis ; then
                local entry
                for entry in passwd group shadow; do
                        if egrep -q "^[ \t]*${entry}:.*nis"
"${EROOT}"/etc/nsswitch.conf; then
                                ewarn ""
                                ewarn "Your ${EROOT}/etc/nsswitch.conf uses
NIS. Support for that has been"
                                ewarn "removed from glibc and is now provided
by the package"
                                ewarn "  sys-auth/libnss-nis"
                                ewarn "Install it now to keep your NIS setup
working."
                                ewarn ""
                        fi
                done
        fi
}
   ----- glibc-9999.ebuild ends -----

thats all :)

emerging this would not let one turn back from it, 9999 is trunc live ebuilds,
so if problems are found with it, one need to wait for fixes to be solved in
this software, not prepared to do, dont emerge it

sorry for post so big

 LM> If so then there is currently no 
 LM> machine set up here to make that doable.

if you use lvm2 snapshot it would possible be simple to make a rollback, so one
 can remerge the stable glibc on the rolledback install, that would be safe way
 to make it testing, but it will be playing with fire :)

 LM> The two machines are both 
 LM> set up to experiment with the new glibc-2.28 and both have a backup 
 LM> bootable partition that is stable just in case they are needed.  So 
 LM> far they aren't but it has only been a couple days now.

yes, i know to little to see a diff on what new things to test from not working
 or still works, for me it good to know i atleast can build gentoo kernels on
vps now, doing this at home died servers is my expirences payback for me now


 Regards Benny

... there can only be one way of life, and it works :)

--- Msged/LNX 6.1.2 (Linux/4.17.12-gentoo (x86_64))
 * Origin: I will always keep a PC running CPM 3.0 (2:230/0)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Linux operating system (OS), a U...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0955 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_raq4csfmlbpfd5c8pei0n5mps7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_raq4csfmlbpfd5c8pei0n5mps7, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_raq4csfmlbpfd5c8pei0n5mps7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0