Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366587 - media-sound/alsa-utils-1.0.24.2-r1 fails to install with missing alsa-store.service file
Summary: media-sound/alsa-utils-1.0.24.2-r1 fails to install with missing alsa-store.s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL: https://bugtrack.alsa-project.org/als...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-05-09 11:42 UTC by Nils Kneuper
Modified: 2012-02-03 12:31 UTC (History)
2 users (show)

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


Attachments
media-sound/alsa-utils-1.0.24.2-r1 build log (build.log,33.35 KB, text/plain)
2011-05-09 11:44 UTC, Nils Kneuper
Details
Diff between clear log and SED=sed log (alsa-utils-SED=sed.diff,1.44 KB, patch)
2011-05-13 13:12 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Kneuper 2011-05-09 11:42:55 UTC
It is not possible to compile/install alsa-utils since the bump to -r1. The previous package media-sound/alsa-utils-1.0.24.2 installed without any problems.Trying to update now (after having -r1 masked for some time) with this output from emerge, this is the respective "update" line:
[ebuild     U ] media-sound/alsa-utils-1.0.24.2-r1 [1.0.23-r1] USE="nls -doc -minimal" 0 kB

I see the problems with both, my ~amd64 as well as my ~x86 system.

Reproducible: Always

Steps to Reproduce:
1. try to upgrade from any alsa-utils version to media-sound/alsa-utils-1.0.24.2-r1
Actual Results:  
make[3]: Entering directory `/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/work/alsa-utils-1.0.24.2/alsactl'
test -z "/usr/sbin" || /bin/mkdir -p "/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//usr/sbin"
test -z "/lib/udev/rules.d" || /bin/mkdir -p "/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//lib/udev/rules.d"
test -z "/usr/share/man/man1" || /bin/mkdir -p "/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//usr/share/man/man1"
test -z "/usr/share/man/man7" || /bin/mkdir -p "/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//usr/share/man/man7"
sed sed -r 's,@sbindir\@,/usr/sbin,g' < alsa-store.service.in > alsa-store.service || rm alsa-store.service
sed sed -r 's,@sbindir\@,/usr/sbin,g' < alsa-restore.service.in > alsa-restore.service || rm alsa-restore.service
sed: -e expression #1, char 3: unterminated `s' command
sed: -e expression #1, char 3: unterminated `s' command
  /usr/bin/install -c alsactl '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//usr/sbin'
test -z "/lib/systemd/system" || /bin/mkdir -p "/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//lib/systemd/system"
 /usr/bin/install -c -m 644 90-alsa-restore.rules '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//lib/udev/rules.d'
 /usr/bin/install -c -m 644 ./alsa-store.service ./alsa-restore.service '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//lib/systemd/system'
/usr/bin/install: cannot stat `./alsa-store.service': No such file or directory
/usr/bin/install: cannot stat `./alsa-restore.service': No such file or directory
make[3]: *** [install-systemdsystemunitDATA] Error 1
make[3]: *** Waiting for unfinished jobs....
 /usr/bin/install -c -m 644 alsactl.1 '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/image//usr/share/man/man1'
make[3]: Leaving directory `/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/work/alsa-utils-1.0.24.2/alsactl'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/work/alsa-utils-1.0.24.2/alsactl'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/work/alsa-utils-1.0.24.2/alsactl'
make: *** [install-recursive] Error 1
emake failed
 * ERROR: media-sound/alsa-utils-1.0.24.2-r1 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2308:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =media-sound/alsa-utils-1.0.24.2-r1',
 * the complete build log and the output of 'emerge -pqv =media-sound/alsa-utils-1.0.24.2-r1'.
 * The complete build log is located at '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/temp/environment'.
 * S: '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/work/alsa-utils-1.0.24.2'

>>> Failed to emerge media-sound/alsa-utils-1.0.24.2-r1, Log file:

>>>  '/var/tmp/portage/media-sound/alsa-utils-1.0.24.2-r1/temp/build.log'

Expected Results:  
It should have updated to the latest version of the ebuild.

Portage 2.1.9.48 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.39-rc6 x86_64)
=================================================================
System uname: Linux-2.6.39-rc6-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.2
Timestamp of tree: Mon, 09 May 2011 09:30:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:          4.2_p8-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          3.1.4
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/ http://mirror.jamit.de/gentoo/ http://gentoo.mneisen.org/"
LANG="de_DE@euro"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apm bash-completion bzip2 cdinstall cdr cli consolekit cracklib crypt css cups cxx dbus dri dri2 drm dts dvb dvd dvdr dvdread enca encode ffmpeg firefox firefox3 fortran ftp g15 gallium gif gpm gtk iconv icq imagemagick ipv6 java javascript jpeg kde kontact lame lcd libsamplerate lirc lm_sensors mad matroska mmx modules mp3 mpeg mudflap multilib mysql ncurses nls no-seamonkey nocd nptl nptlonly nsplugin ogg openal opengl openmp oscar pam pcre pdf perl plasma png policykit pppd qt3support qt4 quicktime readline recode reiserfs samba scanner sdl session sip smp spell sse sse2 ssl svg sysfs theora threads truetype udev unicode usb userlocales v4l v4l2 vcd videos vorbis wav wmp wxwindows x264 xcomposite xfs xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="de en" LIRC_DEVICES="devinput" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="r600 radeon fglrx" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nils Kneuper 2011-05-09 11:44:25 UTC
Created attachment 272603 [details]
media-sound/alsa-utils-1.0.24.2-r1 build log

Build log of the failing attempt to upgrade to media-sound/alsa-utils-1.0.24.2-r1.
Comment 2 Jochen Schlick 2011-05-10 23:52:28 UTC
i have exactly the same problem in my 32bit-chroot on my amd64 laptop

sys-apps/sed-4.2.1-r1
Comment 3 Nils Kneuper 2011-05-11 09:09:36 UTC
Okay, looks like I have an idea where the breakage comes from:

Due to some problems with compiling glib-1.x some time ago I had the environment variable SED=sed set. Without this one, alsa-utils builds nicely. Would be nice if someone could check *why* this env variable breaks things.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2011-05-13 07:52:35 UTC
Michał, as you have introduced this change, I am assigning this bug to you. Please let me know on IRC if I can help in any way.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-05-13 13:12:03 UTC
Created attachment 273063 [details, diff]
Diff between clear log and SED=sed log

I'm able to reproduce this using SED=sed. As the attached diff states, setting that causes make to run 'sed sed ...' command. I'll find the source of this in a minute.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-05-13 13:21:35 UTC
Ok, this is obvious mistake in alsactl/Makefile.am. I have reported it upstream [1].

[1] https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5363
Comment 7 Jerry McBride 2011-10-03 21:51:56 UTC
And the patch is?????
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2012-02-03 12:31:18 UTC
+*alsa-utils-1.0.25 (03 Feb 2012)
+
+  03 Feb 2012; Tony Vroon <chainsaw@gentoo.org> +alsa-utils-1.0.25.ebuild,
+  +files/alsa-utils-1.0.25-separate-usr-var-fs.patch:
+  Version bump. Add missed libsamplerate dependency, closes bug #383263 by
+  Hans. Patch by Martin van Gagern silences warnings when using a separate /usr
+  or /var partition, closes bug #384375. Upstream changes fix build breakage
+  when SED is set in the environment, closes bug #366587 by Nils Kneuper.
+  Automatic module loading & unloading is unsupported and may be removed soon.