Bug 53215 - webapp-config fails to install folders with whitespace in their name
|
Bug#:
53215
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: CLOSED
|
Severity: major
|
Priority: P2
|
|
Resolution: TEST-REQUEST
|
Assigned To: web-apps@gentoo.org
|
Reported By: wrobel@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: webapp-config fails to install folders with whitespace in their name
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-06-07 06:24 0000
|
I tried to build an ebuild for SiteBar (www.sitebar.org). The installation
process fails because of one folder that has a space character in its name.
* Installing sitebar 3.2.5 ...
* Creating required directories
* /var/www/localhost/htdocs/sitebar/. already exists as a real directory;
* skipping /var/www/localhost/htdocs/sitebar/.
Reproducible: Always
Steps to Reproduce:
1. emerge sitebar
(The sitebar ebuild does not yet exist on gentoo, so you cannot really do
this.)
Actual Results:
* Installing sitebar 3.2.5 ...
* Creating required directories
* /var/www/localhost/htdocs/sitebar/. already exists as a real directory;
* skipping /var/www/localhost/htdocs/sitebar/.
...
>>> dir (root-owned) skins/Classic
>>> dir (root-owned) skins/Mozilla
>>> dir (root-owned) Modern <- !!! This should not happen
>>> dir (root-owned) skins/Cornflower
...
Expected Results:
The folder is called "Mozilla Modern" and should not have been splitted in
half.
Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.4.26_pre6-gentoo)
=================================================================
System uname: 2.4.26_pre6-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx X Xaw3d apache2 berkdb crypt curl doc emacs flash gd gdbm gif gpm gtk
gtk2 imap ipv6 java jpeg ldap libwww lzw-tiff maildir mcal mozilla mpeg mysql
ncurses nls pam pdflib perl png pwdb python readline sasl slp spell ssl tetex
tiff truetype x86 xml xml2 zlib"
Hi,
Could you attach your ebuild for sitebar to this bug please? That'll make it a lot easier for me to fix this bug for you.
Many thanks,
Stu
I'm having the same problem with an ebuild I'm trying to write (for phpPgAds).
A directory called "backwards compatibility" in its htdocs is getting installed
as "backwards", which then causes a nasty failure, leaving an incomplete (and
unrecorded) installation.
Shortly I will attach the ebuild and the output resulting from it.
Thank you. Give me a day to two to post a fix.
Best regards,
Stu
Hi,
I've just added webapp-config v1.10 to Portage. I tested v1.10 against your phppgads ebuild, and it appeared to cope with spaces in filenames now.
Please test, and let me know how you get on.
Best regards,
Stu
Hi,
Hopefully that's fixed now, and it's on the mirrors.
Best regards,
Stu
The installation succeeded, but I think there is still a slight problem. After
seeing some errors flash by, I cleaned and reinstalled this way:
webapp-config -I -d banners -h localhost phpPgAds 2.0 2> webapp.err >
webapp.out
And webapp.err looks like this:
bracknell phpPgAds # cat webapp.err
date: /var/www/localhost/htdocs/banners/misc/backwards: No such file or
directory
date: /var/www/localhost/htdocs/banners/misc/backwards: No such file or
directory
date: /var/www/localhost/htdocs/banners/misc/backwards: No such file or
directory
So there is still some code that is splitting filenames by spaces. That's bash
for you!
cheers, js
Hi Sven,
I'd missed those two. Thanks for spotting them. I've added your patch to -r1.
Best regards,
Stu
webapp-config 1.10-r1 is now out, and contains a fix for this bug. Please
test.
Best regards,
Stu