Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76986 - qscintilla should not install in $QTDIR
Summary: qscintilla should not install in $QTDIR
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Carsten Lohrke (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 22:01 UTC by Kurt Hindenburg
Modified: 2005-02-25 08:51 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 Kurt Hindenburg 2005-01-06 22:01:54 UTC
qscintilla 1.61 installs into $QTDIR directory.  It should not do this.  I have $QTDIR set to KDE's qt-copy and I don't want outside code in there.  It should be installed in /usr/ like all the other packages.

src_install() {
   dodoc ChangeLog LICENSE NEWS README
   dodir ${QTDIR}/{include,translations,lib}
   cd ${S}/qt
   cp qextscintilla*.h ${D}/$QTDIR/include
   cp qscintilla*.qm ${D}/$QTDIR/translations
   cp libqscintilla.a* ${D}/$QTDIR/lib
   cp -d libqscintilla.so.* ${D}/$QTDIR/lib
   if use doc ; then
      dohtml ${S}/doc/html/*
      insinto /usr/share/doc/${PF}/Scintilla
      doins ${S}/doc/Scintilla/*
   fi
}


Reproducible: Always
Steps to Reproduce:
1. emerge qscintilla
2.
3.

Actual Results:  
Installs into $QTDIR

Expected Results:  
Install into /usr/

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /mnt/part6/KDEDIRS/HEAD/share/config /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache clean distlocks sandbox sfperms titles
userpriv"
GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo
ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/part6/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm arts artswrappersuid audiofile avi berkdb bigger-fonts
bitmap-fonts cdparanoia cdr crypt cups doc encode esd fam flac foomaticdb
fortran gdbm gif gstreamer gtk2 imagemagick imlib jack joystick jpeg kde lcms
libwww mad maildir mailwrapper mikmod mmx mono mpeg ncurses nls nomotif
oggvorbis oss pam pdflib perl png python qt quicktime readline ruby ruby18 sdl
slang spell sqlite sse ssl svg svga tcpd tiff truetype truetype-fonts
type1-fonts xml2 xrandr zlib video_cards_savage linguas_fr"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-20 08:29:12 UTC
Hello Kurt, please test the new submitted ebuilds. I changed the version numbering from Scintalla to the QScintilla ones, so you have to look for qscintilla-1.{4,5}. The corresponding PyQ ebuilds are 3.13-r1 and 3.14

There's one thing I "can't" change for now. All applications hardcode the translation path to $QTDIR/translations, so I create symlinks.
Comment 2 Kurt Hindenburg 2005-02-24 08:13:02 UTC
The version number are quite confusing.  I couldn't figure out what to put in /etc/portage/package.unmask in order to emerge 1.5-r1.

% emerge ./qscintilla-1.5-r1.ebuild

>>> emerge (1 of 1) dev-python/qscintilla-1.5-r1 to /
>>> md5 src_uri ;-) qscintilla-1.62-gpl-1.5.tar.gz
>>> Unpacking source...
>>> Unpacking qscintilla-1.62-gpl-1.5.tar.gz to /mnt/part6/portage-tmp/portage/qscintilla-1.5-r1/work
/usr/portage/dev-python/qscintilla/qscintilla-1.5-r1.ebuild: line 35: /home/kvh/CVS/KDE/CVS-kde/qt-copy/bin/qmake: Permission denied
 * Applying qscintilla-1.5-sandbox.patch ...

 * Failed Patch: qscintilla-1.5-sandbox.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /mnt/part6/portage-tmp/portage/qscintilla-1.5-r1/temp/qscintilla-1.5-sandbox.patch-16464.out


% cat /mnt/part6/portage-tmp/portage/qscintilla-1.5-r1/temp/qscintilla-1.5-sandbox.patch-16464.out
***** qscintilla-1.5-sandbox.patch *****

========================================

PATCH COMMAND:  patch -p0 -g0 < /usr/portage/dev-python/qscintilla/files/qscintilla-1.5-sandbox.patch

========================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.orig      2005-01-23 03:57:03.000000000 +0100
|+++ Makefile   2005-01-23 03:57:35.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
========================================

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/dev-python/qscintilla/files/qscintilla-1.5-sandbox.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.orig      2005-01-23 03:57:03.000000000 +0100
|+++ Makefile   2005-01-23 03:57:35.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
========================================

PATCH COMMAND:  patch -p2 -g0 < /usr/portage/dev-python/qscintilla/files/qscintilla-1.5-sandbox.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.orig      2005-01-23 03:57:03.000000000 +0100
|+++ Makefile   2005-01-23 03:57:35.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
========================================

PATCH COMMAND:  patch -p3 -g0 < /usr/portage/dev-python/qscintilla/files/qscintilla-1.5-sandbox.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.orig      2005-01-23 03:57:03.000000000 +0100
|+++ Makefile   2005-01-23 03:57:35.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
========================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/dev-python/qscintilla/files/qscintilla-1.5-sandbox.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.orig      2005-01-23 03:57:03.000000000 +0100
|+++ Makefile   2005-01-23 03:57:35.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-24 08:47:54 UTC
>The version number are quite confusing.  

Agreed, but I wanted to got rid of scintilla versioning scheme. In about a month I can mark this version stable and mask or remove 1.54 and up. Unfortunately Portage doesn't support transparent changing of the versioning scheme.

>I couldn't figure out what to put in /etc/portage/package.unmask in order to emerge 1.5-r1.

package.unmask is for hard masked stuff, not for ~arch (testing) keyworded ebuilds.

echo "~dev-python/qscintilla-1.5" >> /etc/portage/package.keywords
echo ">=dev-python/qscintilla-1.54" >> /etc/portage/package.mask

is what you need.  [i] man portage


% emerge ./qscintilla-1.5-r1.ebuild

Don't! emerge /path/to/ebuild is bad. Iirc the ebuild won't be stored in the world file this way. 

Do `emerge ~qscintilla-1.5`.  [i] man 5 ebuild


That the patch failed is because of having userpriv in FEATURES, while the user portage has not the rights to access qmake.
Comment 4 Kurt Hindenburg 2005-02-24 21:45:48 UTC
% echo "~dev-python/qscintilla-1.5" >> /etc/portage/package.keywords
% echo ">=dev-python/qscintilla-1.54" >> /etc/portage/package.mask
% emerge ~qscintilla-1.5

>>> emerge (1 of 1) dev-python/qscintilla-1.5-r1 to /
>>> md5 src_uri ;-) qscintilla-1.62-gpl-1.5.tar.gz
>>> Unpacking source...
>>> Unpacking qscintilla-1.62-gpl-1.5.tar.gz to /mnt/part6/portage-tmp/portage/qscintilla-1.5-r1/work
/usr/portage/dev-python/qscintilla/qscintilla-1.5-r1.ebuild: line 35: /home/kvh/CVS/KDE/CVS-kde/qt-copy/bin/qmake: Permission denied
 * Applying qscintilla-1.5-sandbox.patch ...

 * Failed Patch: qscintilla-1.5-sandbox.patch!


I removed 'userpriv' from FEATURES and it now works.

>>> Merging dev-python/qscintilla-1.5-r1 to /
--- /usr/
--- /usr/lib/
>>> /usr/lib/libqscintilla.a
>>> /usr/lib/libqscintilla.so.5.2.0
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/qscintilla-1.5-r1/
>>> /usr/share/doc/qscintilla-1.5-r1/html/
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaCommandSet-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerHTML-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaDocument-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerLua-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerBash-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaAPIs-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintilla.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerSQL.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaAPIs.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerIDL.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerPerl-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerPython.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaPrinter.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/functions_func.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/hierarchy.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerSQL-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/doxygen.css
>>> /usr/share/doc/qscintilla-1.5-r1/html/doxygen.png
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerPerl.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/functions.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaCommandSet.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaCommand.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/index.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaPrinter-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerRuby-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaBase-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerLua.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerCPP.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerCPP-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerJavaScript-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerJavaScript.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/functions_eval.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerIDL-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerCSharp.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/functions_enum.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerHTML.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerPython-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintilla-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaDocument.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaMacro-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaCommand-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexer.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerCSharp-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerJava-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerJava.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/annotated.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaBase.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerRuby.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexerBash.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaLexer-members.html
>>> /usr/share/doc/qscintilla-1.5-r1/html/classQextScintillaMacro.html
>>> /usr/share/doc/qscintilla-1.5-r1/README.gz
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaHistory.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/Design.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/SciWord.jpg
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/SciBreak.jpg
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/SciCoding.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaDoc.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/SciTEIco.png
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaToDo.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/index.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaUsage.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/Lexer.txt
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/Steps.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/License.txt
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/SciRest.jpg
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaRelated.html
>>> /usr/share/doc/qscintilla-1.5-r1/Scintilla/ScintillaDownload.html
>>> /usr/share/doc/qscintilla-1.5-r1/NEWS.gz
>>> /usr/share/doc/qscintilla-1.5-r1/README.MacOS.gz
>>> /usr/share/doc/qscintilla-1.5-r1/LICENSE.gz
>>> /usr/share/doc/qscintilla-1.5-r1/ChangeLog.gz
>>> /usr/share/qscintilla/
>>> /usr/share/qscintilla/translations/
>>> /usr/share/qscintilla/translations/qscintilla_de.qm
>>> /usr/share/qscintilla/translations/qscintilla_fr.qm
>>> /usr/share/qscintilla/translations/qscintilla_ru.qm
--- /usr/include/
>>> /usr/include/qextscintilladocument.h
>>> /usr/include/qextscintillalexerbash.h
>>> /usr/include/qextscintillalexerjavascript.h
>>> /usr/include/qextscintillalexerhtml.h
>>> /usr/include/qextscintillalexerjava.h
>>> /usr/include/qextscintillalexer.h
>>> /usr/include/qextscintillaprinter.h
>>> /usr/include/qextscintillalexerperl.h
>>> /usr/include/qextscintillamacro.h
>>> /usr/include/qextscintillalexerruby.h
>>> /usr/include/qextscintilla.h
>>> /usr/include/qextscintillacommand.h
>>> /usr/include/qextscintillaglobal.h
>>> /usr/include/qextscintillacommandset.h
>>> /usr/include/qextscintillabase.h
>>> /usr/include/qextscintillaapis.h
>>> /usr/include/qextscintillalexercpp.h
>>> /usr/include/qextscintillalexeridl.h
>>> /usr/include/qextscintillalexerpython.h
>>> /usr/include/qextscintillalexerlua.h
>>> /usr/include/qextscintillalexersql.h
>>> /usr/include/qextscintillalexercsharp.h
--- /home/
--- /home/kvh/
--- /home/kvh/CVS/
--- /home/kvh/CVS/KDE/
--- /home/kvh/CVS/KDE/CVS-kde/
--- /home/kvh/CVS/KDE/CVS-kde/qt-copy/
--- /home/kvh/CVS/KDE/CVS-kde/qt-copy/translations/
>>> /home/kvh/CVS/KDE/CVS-kde/qt-copy/translations/qscintilla_de.qm -> /usr/share/qscintilla/translations/qscintilla_de.qm
>>> /home/kvh/CVS/KDE/CVS-kde/qt-copy/translations/qscintilla_fr.qm -> /usr/share/qscintilla/translations/qscintilla_fr.qm
>>> /home/kvh/CVS/KDE/CVS-kde/qt-copy/translations/qscintilla_ru.qm -> /usr/share/qscintilla/translations/qscintilla_ru.qm
>>> /usr/lib/libqscintilla.so.5 -> libqscintilla.so.5.2.0
>>> /usr/lib/libqscintilla.so.5.2 -> libqscintilla.so.5.2.0
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-25 08:51:40 UTC
ok.