Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472060 - sys-fs/udev - create /dev/core -> /proc/kcore symlink only if latter exists
Summary: sys-fs/udev - create /dev/core -> /proc/kcore symlink only if latter exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 05:04 UTC by Coacher
Modified: 2013-07-26 14:46 UTC (History)
1 user (show)

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


Attachments
emerge --info (info,4.88 KB, text/plain)
2013-06-04 18:38 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2013-06-02 05:04:03 UTC
/dev/core -> /proc/kcore symlink should be created only if /proc/kcore file exists.

Reproducible: Always




This bug is similar to this one: https://bugs.gentoo.org/show_bug.cgi?id=100978
Unfortunately, fix in this old bugreport is no longer applicable since /sbin/rc is ELF-binary nowadays.

I have sys-apps/baselayout-2.2 and sys-apps/openrc-0.11.8 installed.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-04 14:27:38 UTC
sys-fs/udev or sys-fs/eudev is responsible for that. Which do you have?

Please post your `emerge --info' output in a comment.
Comment 2 Coacher 2013-06-04 18:38:02 UTC
I have sys-fs/udev-200.
Comment 3 Coacher 2013-06-04 18:38:35 UTC
Created attachment 350124 [details]
emerge --info
Comment 4 Coacher 2013-06-04 19:10:34 UTC
(In reply to Jeroen Roovers from comment #1)
> Please post your `emerge --info' output in a comment.

Oops, sorry. I was inattentive. Here is emerge --info output in comment:

Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.9.4-ACER-1830T x86_64)
=================================================================
System uname: Linux-3.9.4-ACER-1830T-x86_64-Intel-R-_Core-TM-_i3_CPU_U_330_@_1.20GHz-with-gentoo-2.2
KiB Mem:     7832724 total,   4178492 free
KiB Swap:    8000332 total,   8000332 free
Timestamp of tree: Tue, 04 Jun 2013 18:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo bonespirit
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -msse4.2 -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mtune=generic -msse4.2 -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --load-average=3 --jobs=1 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror2.corbina.ru/gentoo-distfiles/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/bonespirit"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acer acpi alsa amd64 bluetooth bzip2 cairo cdda cddb cdparanoia cleartype cli consolekit cracklib crypt cups cxx dbus djvu dri drm dts dvd egl encode exif expat fam ffmpeg flac fontconfig ftp gif gimp gmp gnutls gstreamer gtk gzip hddtemp iconv icu idn imagemagick imlib ipv6 jpeg jpeg2k kde kontact lame lcms libass libnotify lzma lzo matroska mime mmx modules mp3 mp4 mplayer mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pch pcre pdf pm-utils png policykit postscript qt3support qt4 quicktime readline sasl scanner schroedinger semantic-desktop session smp sound sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg symlink syslog tcpd theora threads tiff truetype udev unicode usb vaapi vim-syntax vorbis vpx wifi x264 xcb xinerama xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="words sheets stage" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-06-05 01:01:50 UTC
sys-fs/udev -> systemd-204/src/shared/dev-setup.c:

void dev_setup(const char *prefix) {
        const char *j, *k;

        static const char symlinks[] =
                "/proc/kcore\0"      "/dev/core\0"
                "/proc/self/fd\0"    "/dev/fd\0"
                "/proc/self/fd/0\0"  "/dev/stdin\0"
                "/proc/self/fd/1\0"  "/dev/stdout\0"
                "/proc/self/fd/2\0"  "/dev/stderr\0";

        NULSTR_FOREACH_PAIR(j, k, symlinks) {

                if (prefix) {
                        char *linkname;

                        if (asprintf(&linkname, "%s/%s", prefix, k) < 0) {
                                log_oom();
                                break;
                        }

                        symlink_and_label(j, linkname);
                        free(linkname);
                } else
                        symlink_and_label(j, k);
        }
}
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-06-05 01:09:33 UTC
Upstream bug report,

http://bugs.freedesktop.org/show_bug.cgi?id=65382
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-06-05 10:08:29 UTC
closing as per response from upstream,

http://bugs.freedesktop.org/show_bug.cgi?id=65382#c3
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-06-06 10:12:29 UTC
good. reopen. http://bugs.freedesktop.org/show_bug.cgi?id=65382#c7
Comment 9 Coacher 2013-06-19 09:54:18 UTC
Upstream bugreport was RESOLVED FIXED with the following commit:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=696fee7

Since the patch is trivial maybe we could backport it to stable sys-fs/udev in Gentoo, please?
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2013-07-26 14:46:03 UTC
(In reply to Coacher from comment #9)
> Upstream bugreport was RESOLVED FIXED with the following commit:
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=696fee7
> 
> Since the patch is trivial maybe we could backport it to stable sys-fs/udev
> in Gentoo, please?

It's in 206 which will be next stable. Closing...