Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qt5: who can test a ebuild of a VERY small package for me?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Fri Jul 03, 2015 3:02 pm    Post subject: Qt5: who can test a ebuild of a VERY small package for me? Reply with quote

Hello,

I've written a small Qt-Library which works with both Qt4 and Qt5.
I also have written an ebuild which checks out from GitHub and installs the library.

Since I cannot/don't want to install Qt5 on Gentoo (yet), it would be nice if somebody could test the ebuild if it works for Qt5. You'll need to pass USE=qt5 and it should fetch the Qt5 branch (the same code but with an adapted CMakeList.txt), build and install it correctly.

It belongs to category dev-libs and the ebuild can be found here.

FYI: the library provides access to the GitHub release API and is in very early development.
For Qt5 it depends - beside Qt - only on app-text/discount and dev-util/cmake (for Qt4 additionally on dev-libs/qjson).

Many thanks
Heiko
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Sun Jul 05, 2015 7:28 am    Post subject: Reply with quote

Thanks for the overwhelming help :(

If somebody has a magic hand to produce just and only crap, than it's me...
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Sun Jul 05, 2015 3:09 pm    Post subject: Reply with quote

I have QT5 up and am using Plasma 5. I'll try to test it out for you later tonight. :)
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Sun Jul 05, 2015 3:15 pm    Post subject: Reply with quote

That would be nice :)
Back to top
View user's profile Send private message
Shibotto
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2015
Posts: 109
Location: Italy

PostPosted: Mon Jul 06, 2015 9:15 am    Post subject: Reply with quote

I tried 0.4 and this is the output on my system (I already have discount):

Code:

# USE="-qt4 qt5" emerge -av qgithubreleaseapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-libs/qgithubreleaseapi-0.4::x-portage  USE="qt5 -doc -qt4 -static-libs" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/qgithubreleaseapi-0.4::x-portage
>>> Unpacking source...
 * Fetching http://github.com/velnias75/QGitHubReleaseAPI.git ...
git fetch http://github.com/velnias75/QGitHubReleaseAPI.git +HEAD:refs/git-r3/HEAD
fatal: Needed a single revision
git update-ref --no-deref refs/git-r3/dev-libs/qgithubreleaseapi/0/__main__ refs/tags/V0.4-qt5
fatal: refs/tags/V0.4-qt5: not a valid SHA1
 * ERROR: dev-libs/qgithubreleaseapi-0.4::x-portage failed (unpack phase):
 *   Referencing refs/tags/V0.4-qt5 failed (wrong ref?).
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_unpack
 *   environment, line 3207:  Called git-r3_src_unpack
 *   environment, line 2332:  Called git-r3_src_fetch
 *   environment, line 2326:  Called git-r3_fetch
 *   environment, line 2243:  Called die
 * The specific snippet of code:
 *                   die "Referencing ${remote_ref} failed (wrong ref?).";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/qgithubreleaseapi-0.4::x-portage'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/qgithubreleaseapi-0.4::x-portage'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/work'
 * S: '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/work/qgithubreleaseapi-0.4'

>>> Failed to emerge dev-libs/qgithubreleaseapi-0.4, Log file:

>>>  '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/temp/build.log'

 * Messages for package dev-libs/qgithubreleaseapi-0.4:

 * ERROR: dev-libs/qgithubreleaseapi-0.4::x-portage failed (unpack phase):
 *   Referencing refs/tags/V0.4-qt5 failed (wrong ref?).
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_unpack
 *   environment, line 3207:  Called git-r3_src_unpack
 *   environment, line 2332:  Called git-r3_src_fetch
 *   environment, line 2326:  Called git-r3_fetch
 *   environment, line 2243:  Called die
 * The specific snippet of code:
 *                   die "Referencing ${remote_ref} failed (wrong ref?).";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/qgithubreleaseapi-0.4::x-portage'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/qgithubreleaseapi-0.4::x-portage'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/work'
 * S: '/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/work/qgithubreleaseapi-0.4'
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Mon Jul 06, 2015 9:30 am    Post subject: Reply with quote

Can you try the the 9999 ebuild?
Back to top
View user's profile Send private message
Shibotto
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2015
Posts: 109
Location: Italy

PostPosted: Mon Jul 06, 2015 10:11 am    Post subject: Reply with quote

Seems to compile fine?

Code:

# USE="-qt4 qt5" emerge -pv qgithubreleaseapi && equery files qgithubreleaseapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] dev-libs/qgithubreleaseapi-9999::x-portage  USE="qt5 -doc -qt4 -static-libs" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
 * Searching for qgithubreleaseapi ...
 * Contents of dev-libs/qgithubreleaseapi-9999:
/usr
/usr/**Unknown**
/usr/**Unknown**/mkspecs
/usr/**Unknown**/mkspecs/features
/usr/**Unknown**/mkspecs/features/qgithubreleaseapi.prf
/usr/include
/usr/include/qgithubreleaseapi
/usr/include/qgithubreleaseapi/export.h
/usr/include/qgithubreleaseapi/qgithubreleaseapi.h
/usr/lib
/usr/lib/libqgithubreleaseapi.so -> libqgithubreleaseapi.so.0.0.0
/usr/lib/libqgithubreleaseapi.so.0
/usr/lib/libqgithubreleaseapi.so.0.0.0 -> libqgithubreleaseapi.so.0
/usr/lib/pkgconfig
/usr/lib/pkgconfig/qgithubreleaseapi.pc
/usr/share
/usr/share/doc
/usr/share/doc/qgithubreleaseapi-9999
/usr/share/doc/qgithubreleaseapi-9999/README.md.bz2


and

Code:

$ ldd /usr/lib/libqgithubreleaseapi.so.0
        linux-vdso.so.1 (0x00007ffeec55e000)
        libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x00007f1520a61000)
        libQt5Network.so.5 => /usr/lib64/libQt5Network.so.5 (0x00007f1521238000)
        libmarkdown.so.2 => /usr/lib64/libmarkdown.so.2 (0x00007f1520850000)
        libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x00007f152038f000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/libstdc++.so.6 (0x00007f152008b000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/libgcc_s.so.1 (0x00007f151fe75000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f151fadd000)
        libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f151f8a8000)
        libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f151f64f000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f151f439000)
        libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f151f0ed000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f151edec000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f151ebd1000)
        libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f151e96a000)
        libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f151e5be000)
        libicui18n.so.55 => /usr/lib64/libicui18n.so.55 (0x00007f151e163000)
        libicuuc.so.55 => /usr/lib64/libicuuc.so.55 (0x00007f151ddd6000)
        libpcre16.so.0 => /usr/lib64/libpcre16.so.0 (0x00007f151db74000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f151d970000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f151d63a000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f151d432000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1521196000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f151d171000)
        libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007f151cf52000)
        libnvidia-tls.so.340.76 => /usr/lib64/libnvidia-tls.so.340.76 (0x00007f151cd4f000)
        libnvidia-glcore.so.340.76 => /usr/lib64/libnvidia-glcore.so.340.76 (0x00007f151a13b000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f1519e00000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f1519bee000)
        libicudata.so.55 => /usr/lib64/libicudata.so.55 (0x00007f1518137000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f1517f27000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f1517d07000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f1517b03000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f15178fd000)


I'm fairly new to Gentoo, is that **Unknown** in equery normal?
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Mon Jul 06, 2015 10:17 am    Post subject: Reply with quote

This **Unknown** is not from Gentoo, but from Qt5 and indicates an error in the CMakeList.txt:-/
So please unmerge it, since it is quite unusable now.

Can some developer can take a look on it? On Debian systems it works fine.
It seems that cmake calls qmake from Qt4.
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Jul 06, 2015 3:00 pm    Post subject: Reply with quote

It built fine here and technically without any errors from portage. I do have +qt5 and +qt4 in 'make.conf' and with this first run I didn't override that. So it appears both have been enabled as far as use flags but if I interpret correctly only qt4 is used. I'm not sure if that is what you want or not.

Code:


# emerge -av1 qgithubreleaseapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-text/discount-2.1.6-r1::gentoo  USE="-minimal" 82 KiB
[ebuild  N     ] dev-libs/qgithubreleaseapi-0.4::myoverlay  USE="qt4 qt5 -doc -static-libs" 0 KiB

Total: 2 packages (2 new), Size of downloads: 82 KiB

Would you like to merge these packages? [Yes/No]


Code:

>>> Installing (2 of 2) dev-libs/qgithubreleaseapi-0.4::myoverlay
 * checking 9 files for package collisions
>>> Merging dev-libs/qgithubreleaseapi-0.4 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/qgithubreleaseapi-0.4/
>>> /usr/share/doc/qgithubreleaseapi-0.4/README.md.bz2
--- /usr/share/qt4/
--- /usr/share/qt4/mkspecs/
--- /usr/share/qt4/mkspecs/features/
>>> /usr/share/qt4/mkspecs/features/qgithubreleaseapi.prf
--- /usr/include/
>>> /usr/include/qgithubreleaseapi/
>>> /usr/include/qgithubreleaseapi/export.h
>>> /usr/include/qgithubreleaseapi/qgithubreleaseapi.h
--- /usr/lib/
>>> /usr/lib/libqgithubreleaseapi.so.0
--- /usr/lib/debug/
--- /usr/lib/debug/usr/
--- /usr/lib/debug/usr/lib/
>>> /usr/lib/debug/usr/lib/libqgithubreleaseapi.so.0.debug
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/qgithubreleaseapi.pc
>>> /usr/lib/libqgithubreleaseapi.so.0.0.0 -> libqgithubreleaseapi.so.0
>>> /usr/lib/libqgithubreleaseapi.so -> libqgithubreleaseapi.so.0.0.0
>>> dev-libs/qgithubreleaseapi-0.4 merged.
>>> Regenerating /etc/ld.so.cache...

 * Messages for package app-text/discount-2.1.6-r1:

 * Some discount binaries with overly-generic names have been
 * prefixed. Please see
 * https://github.com/Orc/discount/issues/81 for discussion.
 *   Renamed 'makepage' to 'discount-makepage'.
 *   Renamed 'mkd2html' to 'discount-mkd2html'.
 *   Renamed 'theme' to 'discount-theme'.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


Code:

# emerge -pv  qgithubreleaseapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/qgithubreleaseapi-0.4::myoverlay  USE="qt4 qt5 -doc -static-libs" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


------------------------------------------------------

Here it is with 'qt5 -qt4' in package.use

-------------------------------------------------------

Code:

# emerge -av1 qgithubreleaseapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/qgithubreleaseapi-0.4::myoverlay  USE="qt5 -doc -qt4* -static-libs" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes



Code:

>>> Install qgithubreleaseapi-0.4 into /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/ category dev-libs
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/work/qgithubreleaseapi-0.4_build"
make -j5 install
[ 10%] [ 20%] Automatic moc for target qgithubreleaseapi_static
Automatic moc for target qgithubreleaseapi
[ 20%] Built target qgithubreleaseapi_static_automoc
[ 20%] Built target qgithubreleaseapi_automoc
[ 60%] [100%] Built target qgithubreleaseapi
Built target qgithubreleaseapi_static
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/lib/libqgithubreleaseapi.so.0
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/lib/libqgithubreleaseapi.so.0.0.0
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/lib/libqgithubreleaseapi.so
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/lib/libqgithubreleaseapi_static.a
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/include/qgithubreleaseapi/qgithubreleaseapi.h
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/include/qgithubreleaseapi/export.h
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/lib/pkgconfig/qgithubreleaseapi.pc
-- Installing: /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/usr/**Unknown**/mkspecs/features/qgithubreleaseapi.prf
>>> Completed installing qgithubreleaseapi-0.4 into /var/tmp/portage/dev-libs/qgithubreleaseapi-0.4/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib/libqgithubreleaseapi.so.0
ecompressdir: bzip2 -9 /usr/share/doc
./
./usr/
./usr/lib/
./usr/lib/libqgithubreleaseapi.so.0.0.0
./usr/lib/libqgithubreleaseapi.so
./usr/lib/pkgconfig/
./usr/lib/pkgconfig/qgithubreleaseapi.pc
./usr/lib/debug/
./usr/lib/debug/usr/
./usr/lib/debug/usr/lib/
./usr/lib/debug/usr/lib/libqgithubreleaseapi.so.0.debug
./usr/lib/libqgithubreleaseapi.so.0
./usr/include/
./usr/include/qgithubreleaseapi/
./usr/include/qgithubreleaseapi/qgithubreleaseapi.h
./usr/include/qgithubreleaseapi/export.h
./usr/**Unknown**/
./usr/**Unknown**/mkspecs/
./usr/**Unknown**/mkspecs/features/
./usr/**Unknown**/mkspecs/features/qgithubreleaseapi.prf
./usr/share/
./usr/share/doc/
./usr/share/doc/qgithubreleaseapi-0.4/
./usr/share/doc/qgithubreleaseapi-0.4/README.md.bz2
>>> Done.

>>> Installing (1 of 1) dev-libs/qgithubreleaseapi-0.4::myoverlay
 * checking 9 files for package collisions
>>> Merging dev-libs/qgithubreleaseapi-0.4 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/qgithubreleaseapi-0.4/
>>> /usr/share/doc/qgithubreleaseapi-0.4/README.md.bz2
>>> /usr/**Unknown**/
>>> /usr/**Unknown**/mkspecs/
>>> /usr/**Unknown**/mkspecs/features/
>>> /usr/**Unknown**/mkspecs/features/qgithubreleaseapi.prf
--- /usr/include/
--- /usr/include/qgithubreleaseapi/
>>> /usr/include/qgithubreleaseapi/export.h
>>> /usr/include/qgithubreleaseapi/qgithubreleaseapi.h
--- /usr/lib/
>>> /usr/lib/libqgithubreleaseapi.so.0
--- /usr/lib/debug/
--- /usr/lib/debug/usr/
--- /usr/lib/debug/usr/lib/
>>> /usr/lib/debug/usr/lib/libqgithubreleaseapi.so.0.debug
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/qgithubreleaseapi.pc
>>> /usr/lib/libqgithubreleaseapi.so -> libqgithubreleaseapi.so.0.0.0
>>> /usr/lib/libqgithubreleaseapi.so.0.0.0 -> libqgithubreleaseapi.so.0
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
<<<          obj /usr/share/qt4/mkspecs/features/qgithubreleaseapi.prf
--- replaced obj /usr/share/doc/qgithubreleaseapi-0.4/README.md.bz2
--- replaced dir /usr/share/doc/qgithubreleaseapi-0.4
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced obj /usr/lib/pkgconfig/qgithubreleaseapi.pc
--- replaced dir /usr/lib/pkgconfig
--- replaced sym /usr/lib/libqgithubreleaseapi.so.0.0.0
--- replaced obj /usr/lib/libqgithubreleaseapi.so.0
--- replaced sym /usr/lib/libqgithubreleaseapi.so
--- replaced obj /usr/lib/debug/usr/lib/libqgithubreleaseapi.so.0.debug
--- replaced dir /usr/lib/debug/usr/lib
--- replaced dir /usr/lib/debug/usr
--- replaced dir /usr/lib/debug
--- cfgpro   dir /usr/lib
--- replaced obj /usr/include/qgithubreleaseapi/qgithubreleaseapi.h
--- replaced obj /usr/include/qgithubreleaseapi/export.h
--- replaced dir /usr/include/qgithubreleaseapi
--- replaced dir /usr/include
--- replaced dir /usr
--- !empty   dir /usr/share/qt4/mkspecs/features
--- !empty   dir /usr/share/qt4/mkspecs
--- !empty   dir /usr/share/qt4
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-libs/qgithubreleaseapi-0.4 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


I note the "/usr/**Unknown**/" which appear suspect?

Code:

usr # ls -l
total 8
drwxr-xr-x 1 root  root  40188 Jul  6 10:44 bin
drwxr-xr-x 1 root  root     12 Jun  7 23:08 @DATADIRNAME@
drwxr-xr-x 1 games root      6 Jan 10 19:30 games
drwxr-xr-x 1 root  root  32332 Jul  6 10:45 include
lrwxrwxrwx 1 root  root      5 Dec  3  2014 lib -> lib64
drwxr-xr-x 1 root  root    998 Feb 26 05:09 lib32
drwxr-xr-x 1 root  root 111646 Jul  6 10:55 lib64
drwxr-xr-x 1 root  root   1040 Jul  4 18:22 libexec
drwxr-xr-x 1 root  root     68 Feb 16 21:07 local
drwxr-xr-x 1 root  root   3392 Jul  2 10:02 portage
drwxr-xr-x 1 root  root   3910 Jul  4 20:17 sbin
drwxr-xr-x 1 root  root   3710 Jul  4 21:15 share
drwxr-xr-x 1 root  root    430 Jul  4 21:10 src
lrwxrwxrwx 1 root  root      8 Dec  3  2014 tmp -> /var/tmp
drwxr-xr-x 1 root  root     14 Jul  6 10:55 **Unknown**
drwxr-xr-x 1 root  root     50 Dec  3  2014 x86_64-pc-linux-gnu

 usr # cd \*\*Unknown\*\*/
 **Unknown** # ls -l
total 0
drwxr-xr-x 1 root root 16 Jul  6 10:55 mkspecs



edit: I see the reply above regarding **unknown**. I will go ahead and unmerge. Good luck with your work!
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Mon Jul 06, 2015 3:06 pm    Post subject: Reply with quote

As long as Qt4 is installed the **Unknown** will appear :-/
Here I would need help of a developer who has both installed too.
It is because cmake selects the wrong qmake (of Qt4). I cannot do anything but are depend on help :-(
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Jul 06, 2015 3:06 pm    Post subject: Reply with quote

FYI some strangeness in unmerging:

Code:

# emerge --unmerge qgithubreleaseapi
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 dev-libs/qgithubreleaseapi
    selected: 0.4
   protected: none
     omitted: none

All selected packages: =dev-libs/qgithubreleaseapi-0.4

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) dev-libs/qgithubreleaseapi-0.4...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

 * GNU info directory index is up-to-date.
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Jul 06, 2015 3:15 pm    Post subject: Reply with quote

Velnias75 wrote:
As long as Qt4 is installed the **Unknown** will appear :-/
Here I would need help of a developer who has both installed too.
It is because cmake selects the wrong qmake (of Qt4). I cannot do anything but are depend on help :-(

Ah, good luck with it. I'm not a developer but you may find some hints in how other packages in the tree have handled this.

In my package.use I have these entries to force qt5:

Code:

media-video/smplayer qt5 -qt4
dev-util/cmake qt5 -qt4
media-video/vlc qt5 -qt4


I'm not sure if they are still needed or not but at one time were. These ebuilds might show you a trick or two. :)
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Mon Jul 06, 2015 3:16 pm    Post subject: Reply with quote

I suspect that **Unknown** folders...

Try to delete them from some filemanager, because * is a wildcard which needs to get quoted in the shell.

Oh, Qt4 and Qt5 installed together seems to be the hell for cmake. I thought it is the better alternative to qmake, but slowly I doubt it.
It is the first Qt project I did with cmake :/
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Mon Jul 06, 2015 3:20 pm    Post subject: Reply with quote

The USE flags aren't the problem, it is that the wrong qmake is chosen to find out the RIGHT directory instead of **Unknown**.

I run Gentoo in a VM and I don't want to emerge Qt5 (yet), so I hope some developer who has both, will look on it.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jul 06, 2015 9:36 pm    Post subject: Reply with quote

Velnias75 wrote:
As long as Qt4 is installed the **Unknown** will appear :-/
Here I would need help of a developer who has both installed too.
It is because cmake selects the wrong qmake (of Qt4). I cannot do anything but are depend on help :-(

If I were you, I'd ask on IRC: chat.freenode.net in #gentoo-dev-help -- you'll be talking to developers directly, in an environment where they're only there to help you, or at least meant to be.
Quote:
I run Gentoo in a VM and I don't want to emerge Qt5 (yet), so I hope some developer who has both, will look on it.

I see. Since it's VM-based, not real hardware, surely it's easy enough to spin up another VM.. atm it sounds a bit like you want someone else to do the work for you, whereas you'd quickly find the issues yourself, and be motivated to correct them.
Back to top
View user's profile Send private message
hasufell
Retired Dev
Retired Dev


Joined: 29 Oct 2011
Posts: 429

PostPosted: Mon Jul 06, 2015 10:43 pm    Post subject: Reply with quote

I am not sure what you expect of this code snippet
Code:

find_package(Qt4)

(taken from https://github.com/velnias75/QGitHubReleaseAPI/blob/master/CMakeLists.txt#L13)

It surely cannot work with Qt5. The fact that it does on debian is just another reason to not use debian.

See http://doc.qt.io/qt-5/cmake-manual.html
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Tue Jul 07, 2015 2:14 am    Post subject: Reply with quote

@hasufell: in the Qt5 branch is a Qt5 cmake file. It works well on Debian.

@steveL: of course I want somebody else to do all my work done by others :-/
Not one line of code come from me, fell down the tree in fornt of me, Launchpad (!) not me, yesterday did 20 builds until it found out that it fPIE and fPIC biting each other and finally it was Google who searched for solutions, not me.

Simply I cannot install Qt5 and Qt4 together on Gentoo. I currently have only a USB-Stick which offers modem speed to almost all sites.

So, please others, do all for me :-/

Where can a transcendet unnamed being close that thread? I want it not to do myself.
Back to top
View user's profile Send private message
hasufell
Retired Dev
Retired Dev


Joined: 29 Oct 2011
Posts: 429

PostPosted: Tue Jul 07, 2015 10:10 am    Post subject: Reply with quote

I can't even build the project, because it throws a lot of fatal errors. Both with and without clang.

https://gist.github.com/hasufell/d8eb69b7c794895f3f40
Back to top
View user's profile Send private message
Velnias75
n00b
n00b


Joined: 30 Nov 2014
Posts: 17
Location: Germany

PostPosted: Tue Jul 07, 2015 10:42 am    Post subject: Reply with quote

@hasufell: I didn't know which nonsense your cmake did :o
But
  • it is not YET checked for working with clang
  • the cmake generated export.h seems to be corrupt or whatever
  • again it works all like charm on Debian, even with qt5, but just due to the fact, that within pbuilder there is no disturbing Qt4


The library itself is generally both compiling and working, the only help I urgently need it to get an (for the moment gcc based) ebuild for Qt5 especially with with a Qt4 installed at the same time. https://github.com/velnias75/QGitHubReleaseAPI/issues/2

Since I have no hope to be ever able to write a piece of software that will be not considered as worst crap, I also would like to have this thread closed and I promise never to ask for any help here.

@hasufell you know more details on the background from our threads on GitHub.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum