Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 396312 Details for
Bug 539928
sys-libs/glibc - devpts check in eblit should be done earlier, rather than in pkg_preinst.eblit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eblit.patch
eblit.patch (text/plain), 2.10 KB, created by
Teika kazura
on 2015-02-13 06:02:14 UTC
(
hide
)
Description:
eblit.patch
Filename:
MIME Type:
Creator:
Teika kazura
Created:
2015-02-13 06:02:14 UTC
Size:
2.10 KB
patch
obsolete
>diff -u -r /usr/portage/sys-libs/glibc//files/eblits/pkg_preinst.eblit glibc//files/eblits/pkg_preinst.eblit >--- /usr/portage/sys-libs/glibc//files/eblits/pkg_preinst.eblit 2014-08-10 13:01:17.000000000 +0900 >+++ glibc//files/eblits/pkg_preinst.eblit 2015-02-12 13:29:57.452403079 +0900 >@@ -52,18 +52,4 @@ > [[ ${ROOT} != "/" ]] && return 0 > [[ -d ${D}/$(get_libdir) ]] || return 0 > glibc_sanity_check >- >- # Make sure devpts is mounted correctly for use w/out setuid pt_chown. >- if in_iuse suid && ! use suid ; then >- if awk '$3 == "devpts" && $4 ~ /[, ]gid=5[, ]/ { exit 1 }' /proc/mounts ; then >- eerror "In order to use glibc with USE=-suid, you must make sure that" >- eerror "you have devpts mounted at /dev/pts with the gid=5 option." >- eerror "Openrc should do this for you, so you should check /etc/fstab" >- eerror "and make sure you do not have any invalid settings there." >- # Do not die on older kernels as devpts did not export these settings #489520. >- if version_is_at_least 2.6.25 $(uname -r) ; then >- die "mount & fix your /dev/pts settings" >- fi >- fi >- fi > } >diff -u -r /usr/portage/sys-libs/glibc//files/eblits/pkg_setup.eblit glibc//files/eblits/pkg_setup.eblit >--- /usr/portage/sys-libs/glibc//files/eblits/pkg_setup.eblit 2014-10-18 02:31:17.000000000 +0900 >+++ glibc//files/eblits/pkg_setup.eblit 2015-02-12 13:30:28.136017334 +0900 >@@ -122,4 +122,19 @@ > die "old __guard detected" > fi > fi >+ >+ # Make sure devpts is mounted correctly for use w/out setuid pt_chown. >+ just_headers && return >+ if in_iuse suid && ! use suid ; then >+ if awk '$3 == "devpts" && $4 ~ /[, ]gid=5[, ]/ { exit 1 }' /proc/mounts ; then >+ eerror "In order to use glibc with USE=-suid, you must make sure that" >+ eerror "you have devpts mounted at /dev/pts with the gid=5 option." >+ eerror "Openrc should do this for you, so you should check /etc/fstab" >+ eerror "and make sure you do not have any invalid settings there." >+ # Do not die on older kernels as devpts did not export these settings #489520. >+ if version_is_at_least 2.6.25 $(uname -r) ; then >+ die "mount & fix your /dev/pts settings" >+ fi >+ fi >+ fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 539928
:
396312
|
397358