Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76079 - upper-lower-case bug in ebuilds for app-admin/realpath
Summary: upper-lower-case bug in ebuilds for app-admin/realpath
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 14:09 UTC by Boris Tschirschwitz
Modified: 2006-04-12 10:52 UTC (History)
2 users (show)

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 Boris Tschirschwitz 2004-12-29 14:09:31 UTC
When emerges tries to untar the following error occurs:

>>> emerge (1 of 1) app-admin/realpath-1.9.10 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/dwww_1.9.10.tar.gz
######################################################################## 100.0%
>>> md5 src_uri ;-) dwww_1.9.10.tar.gz
>>> Unpacking source...
>>> Unpacking dwww_1.9.10.tar.gz to /var/tmp/portage/realpath-1.9.10/work
tar: dwww-1.9.10/dwww: Cannot open: (null)
tar: Error exit delayed from previous errors

I believe the reason is that the file is called Dwww and not dwww, some HPFS case problem.

Reproducible: Always
Steps to Reproduce:
1. emerge it
Comment 1 Nick Dimiduk (RETIRED) gentoo-dev 2004-12-29 22:31:04 UTC
Does your keyword set include ppc-macos?  Please include the output of `emerge --info`.  You are correct in that the issue does have to do with HPSF not being case-sensitive.
Comment 2 Nick Dimiduk (RETIRED) gentoo-dev 2004-12-29 22:38:50 UTC
s/HPSF/HPFS
Comment 3 Boris Tschirschwitz 2004-12-29 23:17:49 UTC
yes, I do use the ppc-macos flag.

Here's my emerge --info

!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51-r8 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh)
=================================================================
System uname: 7.7.0 Power Macintosh powerpc
macos-20040726
Python:              dev-lang/python-2.3.3 [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.3
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   2.4.4
virtual/os-headers:  [Not Present]
ACCEPT_KEYWORDS="ppc ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-fast -mcpu=7450 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-fast -mcpu=7450 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distlocks"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aim altivec ansi aqua atlas auctex ba-completion blas bzlib c++ cdr cdrom cups curl curlwrappers dio dvd emacs extlib faac fftw ftp gif gmp gmtfull gmthigh gmtsuppl gmttria gnustep icq idea imagemagick imlib java jpeg kadu-modules layout-osx-like lzw-tiff macos mcal mime mng mpeg mpeg4 mysql mysqli ncurses nethack nocardbus nocd nojoystick nomultilib nosendmail objc offensive oggvorbis openal opengl pcre pdflib perl plotutils png posix quicktime radeon readline recode samba sbcl silc sockets spell sqlite ssl stencil-buffer svg szip tetex theora tiff truetype type1 usb wifi wmf xml2 xmlrpc xpm zlib"
Comment 4 Nick Dimiduk (RETIRED) gentoo-dev 2004-12-30 17:04:18 UTC
Out of curiosity, when's the last time you ran `emerge --sync`?  This is the kind of error I was seeing before I patched this bug for macos.  If you're using an old snapshot of the portage tree, the ppc keyword will allow the package to be emerged without the applied macos patch.

Try syncing and emerging again.  If you're using an updated tree, it should attempt to pull version 1.9.16.  Let me know how it goes.
Comment 5 Boris Tschirschwitz 2004-12-30 17:40:55 UTC
No, even after syncing and with either ppc or ppc-macos, I always get the same error as above.
And yes, it is version 1.9.16.
Comment 6 Boris Tschirschwitz 2005-01-10 11:44:30 UTC
Here's what happens:

When tar untars the distfile, it first creates a folder 'Dwww' then a little later it tries to write a file with name 'dwww' -- on HPFS that's the same name.

I guess the fix will be a little more involved, untarring the distfile part by part and changing the all references to one of the two (D/d)www

The cleanest would probably be if the realpath maintainers didn't use names that differ only by case.
Comment 7 Ciaran McCreesh 2005-01-10 11:53:51 UTC
...except:

   
Comment 8 Ciaran McCreesh 2005-01-10 11:53:51 UTC
...except:

   »···if use ppc-macos; then
   »···»···local dirname="dwww-${PV}"
   »···»···tar xzf ${DISTDIR}/${A} \
   »···»···»···${dirname}/Makefile \
   »···»···»···${dirname}/realpath.c \
   »···»···»···${dirname}/README \
   »···»···»···${dirname}/TODO \
   »···»···»···${dirname}/BUGS \
   »···»···»···${dirname}/man/realpath.1 || die "unpack failed."
 )>»···else
   »···»···unpack ${A}
   »···fi

Shouldn't be touching dwww on macos...
Comment 9 Nick Dimiduk (RETIRED) gentoo-dev 2005-01-10 18:17:59 UTC
I'm not sure what to say here.  You have the ppc-macos keyword and yet it's skiping right over the conditional.  Maybe the use function is mucked up on your install, but that would cause all sorts of other problems and would fix itself after a sync.

I can always repackage the sources but I'd prefer not to deviate from the upstream distribution.

We also might contact the maintainer (a Debian rep, I think) and ask that they rename either the file or the directory in future releases.

Anyone else have any ideas here?
Comment 10 Kito (RETIRED) gentoo-dev 2005-07-15 20:04:35 UTC
Conditional is now userland_Darwin. I could never reproduce this anyway....reopen if problem persists 
after an emerge sync