Debian Bug report logs - #675768
kfreebsd: mkdir(2) sets errno to EISDIR

Package: kfreebsd-image-9-amd64; Maintainer for kfreebsd-image-9-amd64 is GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>; Source for kfreebsd-image-9-amd64 is src:kfreebsd-9.

Reported by: "goneri" <goneri@rulezlan.org>

Date: Sun, 3 Jun 2012 08:09:02 UTC

Severity: normal

Forwarded to http://www.freebsd.org/cgi/query-pr.cgi?pr=59739

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Cupt developers <cupt-devel@lists.alioth.debian.org>:
Bug#675760; Package cupt. (Sun, 03 Jun 2012 08:09:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "goneri" <goneri@rulezlan.org>:
New Bug report received and forwarded. Copy sent to Cupt developers <cupt-devel@lists.alioth.debian.org>. (Sun, 03 Jun 2012 08:09:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "goneri" <goneri@rulezlan.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: E: unable to create the directory '/'
Date: Sun, 03 Jun 2012 10:00:20 +0200
Package: cupt
Version: 2.5.5
Severity: normal

Dear Maintainer,

I use a kFreeBSD system and the problem may be
related.
cupt is not able on my system to do any changes.
Both "cupt install" and "cupt dist-upgrade" will
fail:

E: syntax error: line 4, character 1: expected: semicolon (';')
E: unable to parse the config file '//etc/apt/apt.conf.d/00CDMountPoint'
W: skipped the configuration file '//etc/apt/apt.conf.d/00CDMountPoint'
[ upgrading package management tools ]

Building the package cache... 
Initializing package resolver and worker... 
Scheduling requested actions... 
Resolving possible unmet dependencies... 

The following packages are no longer needed and thus will be auto-removed:

cpp-4.6 default-jre-headless g++-4.6 gcc-4.6 gcj-4.6-base gcj-4.6-jre-headless gcj-4.6-jre-lib gcj-4.7-jre-headless gcj-jre-headless gcompris-sound-en gnome-icon-theme java-common libarchive1 libbluray-bdj libgcj12 libportaudio2 libroar-compat2 libroar2 libstdc++6-4.6-dev menu oss-compat pulseaudio-esound-compat ttf-freefont xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-i128 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-openchrome xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-voodoo 

Action summary:
  39 automatically installed packages are no longer needed and thus will be auto-removed

Need to get 0B/0B of archives. After unpacking 131MiB will be freed.
Performing requested actions:
E: unable to create the directory '/': Is a directory
E: unable to create the archive downloads directory
E: failed to prepare downloads
E: unable to do requested actions
E: error performing the command 'dist-upgrade'



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cupt depends on:
ii  libboost-program-options1.49.0  1.49.0-3
ii  libc0.1                         2.13-32
ii  libcupt2-0                      2.5.5
ii  libgcc1                         1:4.7.0-11
ii  libstdc++6                      4.7.0-11

cupt recommends no packages.

Versions of packages cupt suggests:
ii  libreadline6    6.2-8
ii  sensible-utils  0.0.7

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Cupt developers <cupt-devel@lists.alioth.debian.org>:
Bug#675760; Package cupt. (Sun, 03 Jun 2012 09:33:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Eugene V. Lyubimkin" <jackyf@debian.org>:
Extra info received and forwarded to list. Copy sent to Cupt developers <cupt-devel@lists.alioth.debian.org>. (Sun, 03 Jun 2012 09:33:17 GMT) Full text and rfc822 format available.

Message #10 received at 675760@bugs.debian.org (full text, mbox):

From: "Eugene V. Lyubimkin" <jackyf@debian.org>
To: goneri <goneri@rulezlan.org>, 675760@bugs.debian.org
Cc: kfreebsd-9@packages.debian.org
Subject: Re: [Cupt-devel] Bug#675760: E: unable to create the directory '/'
Date: Sun, 3 Jun 2012 12:32:37 +0300
clone 675760 -1
reassign -1 kfreebsd-image-9-amd64
retitle -1 kfreebsd: mkdir(2) sets errno to EISDIR
block 675760 by -1
affects -1 + cupt
retitle 675760 (on kfreebsd) E: unable to create the directory '/'
severity 675760 important
quit

Hello reporter and KFreeBSD maintainers,

On 2012-06-03 10:00, goneri wrote:
[...]
> E: unable to create the directory '/': Is a directory

Thank you for reporting this issue.

Yes, this problem is definitely KFreeBSD-specific. Cupt calls mkdir('/')
and expects EEXIST but get EISDIR [1]. This is not allowed by POSIX [2]
so I believe this is a bug in kfreebsd kernels.

I also guess I will have to implement a workaround for this but before
let's see what KFreeBSD maintainers say.

[1]
| (squeeze)jackyf@asdfasdf:~$ mkdir /
| mkdir: cannot create directory `/': Is a directory
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++ GNU/Linux developer, Debian Developer




Bug 675760 cloned as bug 675768 Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:22 GMT) Full text and rfc822 format available.

Bug reassigned from package 'cupt' to 'kfreebsd-image-9-amd64'. Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:22 GMT) Full text and rfc822 format available.

No longer marked as found in versions cupt/2.5.5. Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:23 GMT) Full text and rfc822 format available.

Changed Bug title to 'kfreebsd: mkdir(2) sets errno to EISDIR' from 'E: unable to create the directory '/'' Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:24 GMT) Full text and rfc822 format available.

Added indication that bug 675768 blocks 675760 Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:25 GMT) Full text and rfc822 format available.

Added indication that 675768 affects cupt Request was from "Eugene V. Lyubimkin" <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 09:33:26 GMT) Full text and rfc822 format available.

Set Bug forwarded-to-address to 'http://www.freebsd.org/cgi/query-pr.cgi?pr=59739'. Request was from Eugene V. Lyubimkin <jackyf@debian.org> to control@bugs.debian.org. (Sun, 03 Jun 2012 11:21:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 01:20:56 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.