Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207838 - sys-apps/debianutils deletes /bin/mktemp
Summary: sys-apps/debianutils deletes /bin/mktemp
Status: RESOLVED DUPLICATE of bug 145914
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 05:27 UTC by Victor Roman Archidona
Modified: 2008-01-28 12:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Roman Archidona 2008-01-28 05:27:42 UTC
Hi,

doing an emerge -e system, coreutils-6.10 (~amd64) installed the mktemp binary as expected now. Due debianutils is installed after coreutils, it removes the /bin/mktemp binary causing serious problems (mostly with depscan).

This bug uses ~amd64, debianutils-2.28.2 and coreutils-6.10-r1.

Reproducible: Always

Steps to Reproduce:
1. install coreutils and debianutils
2. OR emerge -e system.
3.

Actual Results:  
/bin/mktemp is removed causing serious problems.

Expected Results:  
/bin/mktemp untouched, leaving the coreutils versions on its place.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 08:30:14 UTC
sys-apps/debianutils-2.28.2 doesn't install mktemp at all. Previous versions didn't install it either since sys-apps/mktemp is a separate ebuild (which blocks >=coreutils-6.10). 

So, you'll have to give us some working instructions how to reproduce your issue, the ones provided here don't work.
Comment 2 Victor Roman Archidona 2008-01-28 11:55:28 UTC
Hi,

I have done the following (dropping some output due it's not relevant):

machine ~ # mkdir /mnt/gentoo
machine ~ # tar xjpf stage3-amd64-2007.0.tar.bz2 -C /mnt/gentoo
machine ~ # mkdir /mnt/gentoo/usr/portage
machine ~ # mount -t proc none /mnt/gentoo/proc
machine ~ # mount -o bind /dev /mnt/gentoo/dev
machine ~ # mount -o bind /usr/portage /mnt/gentoo/usr/portage
machine ~ # cp -L /etc/resolv.conf /mnt/gentoo/etc
machine ~ # cp -L /etc/make.conf /mnt/gentoo/etc
machine ~ # chroot /mnt/gentoo /bin/bash
machine / # env-update
machine / # source /etc/profile
machine / # export PS1="(chroot) $PS1"
(chroot) machine / # emerge --metadata

I updated some packages, first bash to avoid portage blocking when upgrading to latests ~keyworded:

(chroot) machine / # ACCEPT_KEYWORDS="-* amd64" emerge bash

Now portage from 2.1.2.2 to 2.1.4. This also installed sys-apps/sandbox-1.2.18.1-r2, dev-lang/python-2.5.1-r5 and app-admin/python-updater-0.4.

(chroot) machine / # emerge portage

From here you can "emerge -e system" and got the error, OR reproduce it by hand. First I updated coreutils from 6.4 to 6.10-r1, this also installed sys-devel/automake-1.10.1 and app-arch/lzma-utils-4.32.4:

(chroot) machine / # emerge coreutils
(chroot) machine / # hash -r

For consistency I checked that /bin/mktemp still exists: 

(chroot) machine / # ls -al /bin/mktemp
-rwxr-xr-x 1 root root 37136 ene 28 11:46 /bin/mktemp
(chroot) machine / #

Seems ok and the date is today. Is the version installed by coreutils.

Time to emerge debianutils before coreutils (this happens when using emerge -e system). It updates from 2.15-r1 to 2.28.2:

(chroot) machine / # emerge debianutils

And finally we got:

(chroot) machine / # ls -al /bin/mktemp
ls: cannot access /bin/mktemp: No such file or directory
(chroot) machine / # file /usr/bin/mktemp
/usr/bin/mktemp: broken symbolic link to `/bin/mktemp'
(chroot) machine / #


This is my emerge --info for reference:
(chroot) machine / # emerge --info
Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.23-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r5 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Mon, 28 Jan 2008 00:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10.1
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="POSIX"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acct acl amd64 bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt dri fortran gdbm gif gnutls gpm iconv idn ipv6 isdnlog jpeg midi mmap mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session snmp spl sse sse2 ssl tcpd threads truetype truetype-fonts type1-fonts unicode vhosts vim-syntax xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

(chroot) machine / #
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 12:01:09 UTC
Eh, for debianutils-2.15-r1 we clearly don't have any fix, since the ebuild doesn't exist and was removed 8 months ago. It was also WONTFIXed ages ago. Sorry.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 12:01:20 UTC

*** This bug has been marked as a duplicate of bug 145914 ***