Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442048 - x11-misc/tinymount-0.2.6 USE=-libnotify - Project ERROR: libnotify is not found
Summary: x11-misc/tinymount-0.2.6 USE=-libnotify - Project ERROR: libnotify is not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Limansky
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-06 15:26 UTC by Jeroen Roovers (RETIRED)
Modified: 2012-11-06 21:02 UTC (History)
4 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 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-06 15:26:05 UTC
cvs/gentoo-x86/x11-misc/tinymount $ USE=-libnotify ebuild tinymount-0.2.6.ebuild clean install
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
 * tinymount-0.2.6.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking tinymount-0.2.6.tar.bz2 to /home/jer/portage/x11-misc/tinymount-0.2.6/work
>>> Source unpacked in /home/jer/portage/x11-misc/tinymount-0.2.6/work
>>> Preparing source in /home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6 ...
 * Looking in src/translations for new locales ...
 * Done
>>> Source prepared.
>>> Configuring source in /home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6 ...
 * Running qmake ...
 *  - fixed CONFIG in src/src.pro                                                                                            [ ok ]
>>> Source configured.
>>> Compiling source in /home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6 ...
make -j10 
cd src/ && /usr/bin/qmake /home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6/src/src.pro QTDIR=/usr/lib64 QMAKE=/usr/bin/qmake QMAKE_CC=x86_64-pc-linux-gnu-gcc QMAKE_CXX=x86_64-pc-linux-gnu-g++ QMAKE_LINK=x86_64-pc-linux-gnu-g++ QMAKE_CFLAGS=-march=k8-sse3\ -msahf\ --param\ l1-cache-size=64\ --param\ l1-cache-line-size=64\ --param\ l2-cache-size=512\ -mtune=k8\ -O2\ -ggdb\ -pipe\ -Wall QMAKE_CFLAGS_RELEASE= QMAKE_CFLAGS_DEBUG= QMAKE_CXXFLAGS=-march=k8-sse3\ -msahf\ --param\ l1-cache-size=64\ --param\ l1-cache-line-size=64\ --param\ l2-cache-size=512\ -mtune=k8\ -O2\ -ggdb\ -pipe\ -Wall QMAKE_CXXFLAGS_RELEASE= QMAKE_CXXFLAGS_DEBUG= QMAKE_LFLAGS=-Wl,-O1\ -Wl,--hash-style=gnu\ -Wl,--as-needed QMAKE_LFLAGS_RELEASE= QMAKE_LFLAGS_DEBUG= QMAKE_LIBDIR_QT=/usr/lib64/qt4 QMAKE_LIBDIR_X11=/usr/lib64 QMAKE_LIBDIR_OPENGL=/usr/lib64 QMAKE_STRIP= PREFIX=/usr -o Makefile
Project ERROR: libnotify is not found
make: *** [src/Makefile] Error 2
 * ERROR: x11-misc/tinymount-0.2.6 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-misc/tinymount-0.2.6'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/tinymount-0.2.6'`.
 * The complete build log is located at '/keeps/gentoo/emergelogs/wieneke/x11-misc:tinymount-0.2.6:20121106-152352.log'.
 * For convenience, a symlink to the build log is located at '/home/jer/portage/x11-misc/tinymount-0.2.6/temp/build.log'.
 * The ebuild environment file is located at '/home/jer/portage/x11-misc/tinymount-0.2.6/temp/environment'.
 * Working directory: '/home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6'
 * S: '/home/jer/portage/x11-misc/tinymount-0.2.6/work/tinymount-0.2.6'
Comment 1 Mike Limansky 2012-11-06 17:33:41 UTC
Looks like the reason that the CONFIG+=with_libnotify is hardcoded in pro file. The patch is:

diff --git a/src/src.pro b/src/src.pro
index 6a676cd..6b8c2f1 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -63,8 +63,6 @@ RESOURCES += tinymount.qrc
 
 TRANSLATIONS = translations/tinymount_ru.ts
 
-CONFIG += with_libnotify
-
 with_libnotify {
     DEFINES += WITH_LIBNOTIFY
     CONFIG += link_pkgconfig
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-11-06 19:23:24 UTC
(In reply to comment #1)
> Looks like the reason that the CONFIG+=with_libnotify is hardcoded in pro
> file. The patch is:
> 
> diff --git a/src/src.pro b/src/src.pro
> index 6a676cd..6b8c2f1 100644
> --- a/src/src.pro
> +++ b/src/src.pro
> @@ -63,8 +63,6 @@ RESOURCES += tinymount.qrc
>  
>  TRANSLATIONS = translations/tinymount_ru.ts
>  
> -CONFIG += with_libnotify
> -
>  with_libnotify {
>      DEFINES += WITH_LIBNOTIFY
>      CONFIG += link_pkgconfig

Does this really fix the problem? It seems like it removes the libnotify support altogether?
Comment 3 Mike Limansky 2012-11-06 19:49:04 UTC
(In reply to comment #2)

> Does this really fix the problem? It seems like it removes the libnotify
> support altogether?

It should, because of the line is src_configure:

    use libnotify && params="${params} CONFIG+=with_libnotify"

I think as alternative solution, we can use CONFIG-=lib_notify if the USE is not set.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2012-11-06 20:10:07 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> > Does this really fix the problem? It seems like it removes the libnotify
> > support altogether?
> 
> It should, because of the line is src_configure:
> 
>     use libnotify && params="${params} CONFIG+=with_libnotify"

Ah that seems about right then.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-11-06 21:02:58 UTC
+*tinymount-0.2.6-r1 (06 Nov 2012)
+
+  06 Nov 2012; Markos Chandras <hwoarang@gentoo.org>
+  +files/tinymount-0.2.6-libnotify.patch, +tinymount-0.2.6-r1.ebuild:
+  Revbump. Drop -Werror. Bug #442048. Don't build libnotify support
+  unconditionally. Bug #441986
+