Re: mail/mail-notification 5.4 fails to compile

2013-08-05 Thread Marcin Wisnicki
It's not a workaround - it is a real fix as suggested by gconf
documentation and it's used by linux distros (see debian[1] and
gentoo[2]).

[1] 
http://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gconf/debian/gconf2.postinst?revision=31302&view=markup
[2] 
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?diff_format=s&revision=1.31&view=markup

On Mon, Aug 5, 2013 at 9:40 PM, Torfinn Ingolfsen  wrote:
> On Sun, Aug 4, 2013 at 8:42 PM, Marcin Wisnicki
>  wrote:
>> I guess bsd.gnome.mk should be smart enough to `killall -HUP gconfd-2`
>> at package post-install when port uses gconf (has GCONF_SCHEMAS).
>> Please file a PR against gnome ports.
>
> Are you sure that this way (killall -HUP ...) is the correct fix?
> It seems like a workaround (instead of a real fix) to me, based on the
> discussion in the two bugs I listed in my previous message.
> Also, pkill -HUP gconfd-2 didn't work for me, I had to kill the
> gconfd-2 process totally.
> HTH
> --
> Regards,
> Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-05 Thread Torfinn Ingolfsen
On Sun, Aug 4, 2013 at 8:42 PM, Marcin Wisnicki
 wrote:
> I guess bsd.gnome.mk should be smart enough to `killall -HUP gconfd-2`
> at package post-install when port uses gconf (has GCONF_SCHEMAS).
> Please file a PR against gnome ports.

Are you sure that this way (killall -HUP ...) is the correct fix?
It seems like a workaround (instead of a real fix) to me, based on the
discussion in the two bugs I listed in my previous message.
Also, pkill -HUP gconfd-2 didn't work for me, I had to kill the
gconfd-2 process totally.
HTH
-- 
Regards,
Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-05 Thread Torfinn Ingolfsen
On Sun, Aug 4, 2013 at 9:17 PM, Marcin Wisnicki
 wrote:
> BTW there are no build errors on build cluster. Is there anything
> non-standard about your build environment ?


No, not that I'm aware of at least.
This is a standard install of FreeBSD 8.4-release, upgraded to
8.4-stable via source and make world, ports tree fetched via portsnap.
No options set in /etc/make.conf.
The only thing I can think of, is that I did choose non-default
options for the mail-notification port (disabling things I don't need)
as shown in the build output in my first message.

-- 
Regards,
Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-04 Thread Marcin Wisnicki
BTW there are no build errors on build cluster. Is there anything
non-standard about your build environment ?

On Sun, Aug 4, 2013 at 8:42 PM, Marcin Wisnicki
 wrote:
> I guess bsd.gnome.mk should be smart enough to `killall -HUP gconfd-2`
> at package post-install when port uses gconf (has GCONF_SCHEMAS).
> Please file a PR against gnome ports.
>
> On Sun, Aug 4, 2013 at 8:08 PM, Torfinn Ingolfsen  wrote:
>> Hi,
>>
>> On Sat, Aug 3, 2013 at 7:32 PM, Marcin Wisnicki
>>  wrote:
>>> You will need this patch:
>>> http://patch-tracker.debian.org/patch/series/view/mail-notification/5.4.dfsg.1-8/disable-werror.patch
>>> from which you have to strip first directory in file name.
>>
>> Thanks, testing now:
>>
>> root@kg-core1# pwd
>> /usr/ports/mail/mail-notification/work/mail-notification-5.4
>>
>> root@kg-core1# patch -p1 < /home/tingo/work/disable-werror.patch
>> Hmm...  Looks like a unified diff to me...
>> The text leading up to this was:
>> --
>> |Description: Check for maintainer mode correctly
>> |Author: Stephen Kitt 
>> |
>> |Maintainer mode was being activated in all cases, which is not
>> |desirable; in particular on buildds it enables -Werror which causes
>> |the build to fail now.
>> |
>> |--- mail-notification-5.4.dfsg.1.orig/jb
>> |+++ mail-notification-5.4.dfsg.1/jb
>> --
>> Patching file jb using Plan A...
>> Hunk #1 succeeded at 37.
>> done
>>
>> Patched without trouble.
>>
>> root@kg-core1# cd ../..
>>
>> output from build:
>> ===>  Configuring for mail-notification-5.4_10
>> cd /usr/ports/mail/mail-notification/work/mail-notification-5.4 &&
>> jb_cppflags="-I/usr/local/include" jb_ldflags=" -L/usr/local/lib
>> -Wl,-rpath=/usr/lib:/usr/local/lib" ./jb configure cc="cc" cflags="-O2
>> -pipe -fno-strict-aliasing" cppflags="-I/usr/local/include" ldflags="
>> -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib"
>> prefix="/usr/local" hotmail=no yahoo=no evolution=no mozilla=no
>> [...]
>>
>> building program mail-notification
>>
>> Mail Notification 5.4 was built successfully.
>> Type "sudo ./jb install" to install Mail Notification 5.4.
>>
>> output from install:
>> Mail Notification 5.4 was installed successfully.
>> ===>   Running ldconfig
>> /sbin/ldconfig -m /usr/local/lib
>> ===>   Registering installation for mail-notification-5.4_10
>>
>> But upon starting I get this:
>> tingo@kg-core1$ mail-notification -p
>>
>> ** (mail-notification:37126): WARNING **: cannot find default value of
>> configuration key "/apps/mail-notification/commands/new-mail/enabled"
>>
>> ** (mail-notification:37126): WARNING **: cannot find default value of
>> configuration key "/apps/mail-notification/commands/new-mail/command"
>>
>> (lots of lines snipped for brevity)
>> It seems this is a known bug:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=522363
>> https://bugzilla.redhat.com/show_bug.cgi?id=682584
>>
>> Testing with gconftool-2:
>> tingo@kg-core1$ gconftool-2 --get
>> /apps/mail-notification/commands/new-mail/enabled
>> No value set for `/apps/mail-notification/commands/new-mail/enabled'
>>
>> root@kg-core1# pkill  gconfd-2
>> tingo@kg-core1$ gconftool-2 --get
>> /apps/mail-notification/commands/new-mail/enabled
>> false
>>
>> and after that starting mail-notification works.
>> HTH
>> --
>> Regards,
>> Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-04 Thread Marcin Wisnicki
I guess bsd.gnome.mk should be smart enough to `killall -HUP gconfd-2`
at package post-install when port uses gconf (has GCONF_SCHEMAS).
Please file a PR against gnome ports.

On Sun, Aug 4, 2013 at 8:08 PM, Torfinn Ingolfsen  wrote:
> Hi,
>
> On Sat, Aug 3, 2013 at 7:32 PM, Marcin Wisnicki
>  wrote:
>> You will need this patch:
>> http://patch-tracker.debian.org/patch/series/view/mail-notification/5.4.dfsg.1-8/disable-werror.patch
>> from which you have to strip first directory in file name.
>
> Thanks, testing now:
>
> root@kg-core1# pwd
> /usr/ports/mail/mail-notification/work/mail-notification-5.4
>
> root@kg-core1# patch -p1 < /home/tingo/work/disable-werror.patch
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --
> |Description: Check for maintainer mode correctly
> |Author: Stephen Kitt 
> |
> |Maintainer mode was being activated in all cases, which is not
> |desirable; in particular on buildds it enables -Werror which causes
> |the build to fail now.
> |
> |--- mail-notification-5.4.dfsg.1.orig/jb
> |+++ mail-notification-5.4.dfsg.1/jb
> --
> Patching file jb using Plan A...
> Hunk #1 succeeded at 37.
> done
>
> Patched without trouble.
>
> root@kg-core1# cd ../..
>
> output from build:
> ===>  Configuring for mail-notification-5.4_10
> cd /usr/ports/mail/mail-notification/work/mail-notification-5.4 &&
> jb_cppflags="-I/usr/local/include" jb_ldflags=" -L/usr/local/lib
> -Wl,-rpath=/usr/lib:/usr/local/lib" ./jb configure cc="cc" cflags="-O2
> -pipe -fno-strict-aliasing" cppflags="-I/usr/local/include" ldflags="
> -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib"
> prefix="/usr/local" hotmail=no yahoo=no evolution=no mozilla=no
> [...]
>
> building program mail-notification
>
> Mail Notification 5.4 was built successfully.
> Type "sudo ./jb install" to install Mail Notification 5.4.
>
> output from install:
> Mail Notification 5.4 was installed successfully.
> ===>   Running ldconfig
> /sbin/ldconfig -m /usr/local/lib
> ===>   Registering installation for mail-notification-5.4_10
>
> But upon starting I get this:
> tingo@kg-core1$ mail-notification -p
>
> ** (mail-notification:37126): WARNING **: cannot find default value of
> configuration key "/apps/mail-notification/commands/new-mail/enabled"
>
> ** (mail-notification:37126): WARNING **: cannot find default value of
> configuration key "/apps/mail-notification/commands/new-mail/command"
>
> (lots of lines snipped for brevity)
> It seems this is a known bug:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=522363
> https://bugzilla.redhat.com/show_bug.cgi?id=682584
>
> Testing with gconftool-2:
> tingo@kg-core1$ gconftool-2 --get
> /apps/mail-notification/commands/new-mail/enabled
> No value set for `/apps/mail-notification/commands/new-mail/enabled'
>
> root@kg-core1# pkill  gconfd-2
> tingo@kg-core1$ gconftool-2 --get
> /apps/mail-notification/commands/new-mail/enabled
> false
>
> and after that starting mail-notification works.
> HTH
> --
> Regards,
> Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-04 Thread Torfinn Ingolfsen
Hi,

On Sat, Aug 3, 2013 at 7:32 PM, Marcin Wisnicki
 wrote:
> You will need this patch:
> http://patch-tracker.debian.org/patch/series/view/mail-notification/5.4.dfsg.1-8/disable-werror.patch
> from which you have to strip first directory in file name.

Thanks, testing now:

root@kg-core1# pwd
/usr/ports/mail/mail-notification/work/mail-notification-5.4

root@kg-core1# patch -p1 < /home/tingo/work/disable-werror.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|Description: Check for maintainer mode correctly
|Author: Stephen Kitt 
|
|Maintainer mode was being activated in all cases, which is not
|desirable; in particular on buildds it enables -Werror which causes
|the build to fail now.
|
|--- mail-notification-5.4.dfsg.1.orig/jb
|+++ mail-notification-5.4.dfsg.1/jb
--
Patching file jb using Plan A...
Hunk #1 succeeded at 37.
done

Patched without trouble.

root@kg-core1# cd ../..

output from build:
===>  Configuring for mail-notification-5.4_10
cd /usr/ports/mail/mail-notification/work/mail-notification-5.4 &&
jb_cppflags="-I/usr/local/include" jb_ldflags=" -L/usr/local/lib
-Wl,-rpath=/usr/lib:/usr/local/lib" ./jb configure cc="cc" cflags="-O2
-pipe -fno-strict-aliasing" cppflags="-I/usr/local/include" ldflags="
-L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib"
prefix="/usr/local" hotmail=no yahoo=no evolution=no mozilla=no
[...]

building program mail-notification

Mail Notification 5.4 was built successfully.
Type "sudo ./jb install" to install Mail Notification 5.4.

output from install:
Mail Notification 5.4 was installed successfully.
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for mail-notification-5.4_10

But upon starting I get this:
tingo@kg-core1$ mail-notification -p

** (mail-notification:37126): WARNING **: cannot find default value of
configuration key "/apps/mail-notification/commands/new-mail/enabled"

** (mail-notification:37126): WARNING **: cannot find default value of
configuration key "/apps/mail-notification/commands/new-mail/command"

(lots of lines snipped for brevity)
It seems this is a known bug:

https://bugzilla.redhat.com/show_bug.cgi?id=522363
https://bugzilla.redhat.com/show_bug.cgi?id=682584

Testing with gconftool-2:
tingo@kg-core1$ gconftool-2 --get
/apps/mail-notification/commands/new-mail/enabled
No value set for `/apps/mail-notification/commands/new-mail/enabled'

root@kg-core1# pkill  gconfd-2
tingo@kg-core1$ gconftool-2 --get
/apps/mail-notification/commands/new-mail/enabled
false

and after that starting mail-notification works.
HTH
-- 
Regards,
Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: mail/mail-notification 5.4 fails to compile

2013-08-03 Thread Marcin Wisnicki
You will need this patch:
http://patch-tracker.debian.org/patch/series/view/mail-notification/5.4.dfsg.1-8/disable-werror.patch
from which you have to strip first directory in file name.

Unfortunately I don't have the time to test it right now or in the near future.

On Sat, Aug 3, 2013 at 3:29 PM, Torfinn Ingolfsen  wrote:
> mail-mailnotification 5.4 fails to compile:
>
> ===>  Configuring for mail-notification-5.4_10
> cd /usr/ports/mail/mail-notification/work/mail-notification-5.4 &&
> jb_cppflags="-I/usr/local/include" jb_ldflags=" -L/usr/local/lib
> -Wl,-rpath=/usr/lib:/usr/local/lib" ./jb configure cc="cc" cflags="-O2
> -pipe -fno-strict-aliasing" cppflags="-I/usr/local/include" ldflags="
> -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib"
> prefix="/usr/local" hotmail=no yahoo=no evolution=no mozilla=no
> building jb...
> cc1: warnings being treated as errors
> jbsrc/lib/src/core/jb-main.c: In function 'jb_main':
> jbsrc/lib/src/core/jb-main.c:164: warning: 'g_type_init' is deprecated
> (declared at /usr/local/include/glib-2.0/gobject/gtype.h:669)
> cc1: warnings being treated as errors
> jbsrc/lib/src/core/jb-util.c: In function 'print_warning_or_error':
> jbsrc/lib/src/core/jb-util.c:225: warning: function might be possible
> candidate for 'printf' format attribute
> ERROR: cannot build jb
> *** Error code 1
>
> Stop in /usr/ports/mail/mail-notification.
> *** Error code 1
>
> Stop in /usr/ports/mail/mail-notification.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall20130803-82900-28tjk2 env make
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
> ! mail/mail-notification(unknown build error)
>
> This is on:
>
> tingo@kg-core1$ uname -a
> FreeBSD kg-core1.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #0 r253646: Thu
> Jul 25 10:12:31 UTC 2013
> r...@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
>
> HTH
> --
> Regards
> Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


mail/mail-notification 5.4 fails to compile

2013-08-03 Thread Torfinn Ingolfsen
mail-mailnotification 5.4 fails to compile:

===>  Configuring for mail-notification-5.4_10
cd /usr/ports/mail/mail-notification/work/mail-notification-5.4 &&
jb_cppflags="-I/usr/local/include" jb_ldflags=" -L/usr/local/lib
-Wl,-rpath=/usr/lib:/usr/local/lib" ./jb configure cc="cc" cflags="-O2
-pipe -fno-strict-aliasing" cppflags="-I/usr/local/include" ldflags="
-L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib"
prefix="/usr/local" hotmail=no yahoo=no evolution=no mozilla=no
building jb...
cc1: warnings being treated as errors
jbsrc/lib/src/core/jb-main.c: In function 'jb_main':
jbsrc/lib/src/core/jb-main.c:164: warning: 'g_type_init' is deprecated
(declared at /usr/local/include/glib-2.0/gobject/gtype.h:669)
cc1: warnings being treated as errors
jbsrc/lib/src/core/jb-util.c: In function 'print_warning_or_error':
jbsrc/lib/src/core/jb-util.c:225: warning: function might be possible
candidate for 'printf' format attribute
ERROR: cannot build jb
*** Error code 1

Stop in /usr/ports/mail/mail-notification.
*** Error code 1

Stop in /usr/ports/mail/mail-notification.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall20130803-82900-28tjk2 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! mail/mail-notification(unknown build error)

This is on:

tingo@kg-core1$ uname -a
FreeBSD kg-core1.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #0 r253646: Thu
Jul 25 10:12:31 UTC 2013
r...@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

HTH
-- 
Regards
Torfinn Ingolfsen
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"