pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc-current build of x11/startup-notification fails
Date: Wed, 1 Feb 2012 08:00:28 +0100
From: =?ISO-8859-1?Q?Adrian_Kie=DF?= <adrian%immanuelk.net@localhost>
Message-ID:
<CADAQ8f0EqE05Ho+ac98Dm47yhU2BF4cZOXvD0K2k9VkqiOSTGw%mail.gmail.com@localhost>
| I'm trying too build /usr/pkgsrc/x11/startup-notification with
| pkgsrc-current on NetBSD 5.1/i386 and the configure script fails with:
| Can anybody reproduce this or help?
This is a well known problem, see PR's 44655 and 45239. I was sure I
either sent a PR, or appended to someone's PR, with a startup-notification010
package that can be used instead of startup-notification, but I can't find
that at the minute (there was also a mot to startup-notification/buildlink3.mk
so other packages keep on including that and just magically get the right
version installed).
Here is what you need to make things work, just save the current x11/
starup-notification/buildlink3.mk (or be prepared to recover it from
cvs should you need it) and then unpack this shar file in pkgsrc/x11
to create the startup-notification010 package, and modify
startup-notification's buildlink3.mk file.
I don't have a fix (yet) for vlc (PR 44655) but vlc10 builds OK for me
(neother of the others does, vlc with the x11-xcb problem as in the PR).
Note that the patches in startup-notification010 make it functionally
equivalent to startup-notification, just with regular X11 support, not
requiring xcb. That is, there is no loss to using this one.
I've been using this since early November, with no problems.
kre
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# startup-notification/buildlink3.mk
# startup-notification010/DESCR
# startup-notification010/Makefile
# startup-notification010/PLIST
# startup-notification010/distinfo
# startup-notification010/patches
# startup-notification010/patches/patch-aa
# startup-notification010/patches/patch-ab
#
echo x - startup-notification/buildlink3.mk
sed 's/^X//' >startup-notification/buildlink3.mk <<
'END-of-startup-notification/buildlink3.mk'
X# $NetBSD: buildlink3.mk,v 1.11 2009/11/08 18:59:56 jakllsch Exp $
X
XBUILDLINK_TREE+= startup-notification
X
X.if !defined(STARTUP_NOTIFICATION_BUILDLINK3_MK)
XSTARTUP_NOTIFICATION_BUILDLINK3_MK:=
X
XBUILDLINK_API_DEPENDS.startup-notification+= startup-notification>=0.5
XBUILDLINK_ABI_DEPENDS.startup-notification+= startup-notification>=0.8nb1
X
X.include "../../mk/bsd.fast.prefs.mk"
X.if ${X11_TYPE} == "modular"
XBUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
X.else
X.if ${OPSYS} == "NetBSD"
X.if !empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6789].*)
XBUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
X.else
XBUILDLINK_PKGSRCDIR.startup-notification?=
../../x11/startup-notification010
X.endif
X.else #!NetBSD
XBUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
X.endif
X.endif
X
X.include "../../x11/libSM/buildlink3.mk"
X.include "../../x11/libX11/buildlink3.mk"
X.include "../../x11/libxcb/buildlink3.mk"
X.include "../../x11/xcb-util/buildlink3.mk"
X.endif # STARTUP_NOTIFICATION_BUILDLINK3_MK
X
XBUILDLINK_TREE+= -startup-notification
END-of-startup-notification/buildlink3.mk
echo x - startup-notification010/DESCR
sed 's/^X//' >startup-notification010/DESCR <<
'END-of-startup-notification010/DESCR'
Xstartup-notification provides mechanisms allowing a desktop environment to
Xtrack application startup, to provide user feedback and other features.
X
XThis is an older version to allow compatability with native X11 in
XNetBSD 5 and earlier (pre xcb).
END-of-startup-notification010/DESCR
echo x - startup-notification010/Makefile
sed 's/^X//' >startup-notification010/Makefile <<
'END-of-startup-notification010/Makefile'
X# $NetBSD$
X
XDISTNAME= startup-notification-0.10
XCATEGORIES= x11
XMASTER_SITES=
http://www.freedesktop.org/software/startup-notification/releases/
XPKGREVISION= 1
X
XMAINTAINER= pkgsrc-users%NetBSD.org@localhost
XHOMEPAGE=
http://www.freedesktop.org/wiki/Software/startup-notification
XCOMMENT= X11 application startup notification library
XLICENSE= mit AND gnu-lgpl-v2.1
X
XPKG_INSTALLATION_TYPES= overwrite pkgviews
XPKG_DESTDIR_SUPPORT= user-destdir
X
XUSE_TOOLS+= pkg-config
XGNU_CONFIGURE= yes
XUSE_LIBTOOL= yes
X
XPKGCONFIG_OVERRIDE= libstartup-notification-1.0.pc.in
X
XDOCDIR= ${PREFIX}/share/doc/startup-notification
XINSTALLATION_DIRS+= ${DOCDIR}
X
Xpost-install:
X cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING ChangeLog NEWS \
X doc/startup-notification.txt ${DESTDIR}${DOCDIR}
X
XBUILDLINK_DEPMETHOD.libXt?= build
X
X.include "../../x11/libSM/buildlink3.mk"
X.include "../../x11/libX11/buildlink3.mk"
X.include "../../x11/libXt/buildlink3.mk"
X.include "../../x11/libxcb/buildlink3.mk"
X.include "../../x11/xcb-util/buildlink3.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-startup-notification010/Makefile
echo x - startup-notification010/PLIST
sed 's/^X//' >startup-notification010/PLIST <<
'END-of-startup-notification010/PLIST'
X@comment $NetBS$
Xinclude/startup-notification-1.0/libsn/sn-common.h
Xinclude/startup-notification-1.0/libsn/sn-launchee.h
Xinclude/startup-notification-1.0/libsn/sn-launcher.h
Xinclude/startup-notification-1.0/libsn/sn-monitor.h
Xinclude/startup-notification-1.0/libsn/sn-util.h
Xinclude/startup-notification-1.0/libsn/sn.h
Xlib/libstartup-notification-1.la
Xlib/pkgconfig/libstartup-notification-1.0.pc
Xshare/doc/startup-notification/AUTHORS
Xshare/doc/startup-notification/COPYING
Xshare/doc/startup-notification/ChangeLog
Xshare/doc/startup-notification/NEWS
Xshare/doc/startup-notification/startup-notification.txt
END-of-startup-notification010/PLIST
echo x - startup-notification010/distinfo
sed 's/^X//' >startup-notification010/distinfo <<
'END-of-startup-notification010/distinfo'
X$NetBSD$
X
XSHA1 (startup-notification-0.10.tar.gz) =
670c5e44f59e3844e2ca0c67730ba9ca5f5228fc
XRMD160 (startup-notification-0.10.tar.gz) =
de905634db3263d24b69ae42887111b7ff95b3ba
XSize (startup-notification-0.10.tar.gz) = 328787 bytes
XSHA1 (patch-aa) = 71748b823916667c59af680371d31b03f56a2177
XSHA1 (patch-ab) = ec8c08bb3ce2cf0db23d6949e95ccf88c149d1cc
END-of-startup-notification010/distinfo
echo c - startup-notification010/patches
mkdir -p startup-notification010/patches > /dev/null 2>&1
echo x - startup-notification010/patches/patch-aa
sed 's/^X//' >startup-notification010/patches/patch-aa <<
'END-of-startup-notification010/patches/patch-aa'
X$NetBSD$
X
X--- libsn/sn-monitor.c 2009-04-03 17:57:27.000000000 +0700
X+++ libsn/sn-monitor.c 2011-05-05 16:34:34.000000000 +0700
X@@ -66,7 +66,8 @@
X Time timestamp;
X
X char *binary_name;
X- char *icon_name;
X+ char *icon_name;
X+ char *application_id;
X
X unsigned int completed : 1;
X unsigned int canceled : 1;
X@@ -269,7 +270,8 @@
X sn_free (sequence->wmclass);
X sn_free (sequence->binary_name);
X sn_free (sequence->icon_name);
X-
X+ sn_free (sequence->application_id);
X+
X sn_display_unref (sequence->display);
X sn_free (sequence);
X }
X@@ -337,6 +339,12 @@
X return sequence->icon_name;
X }
X
X+const char*
X+sn_startup_sequence_get_application_id (SnStartupSequence *sequence)
X+{
X+ return sequence->application_id;
X+}
X+
X int
X sn_startup_sequence_get_screen (SnStartupSequence *sequence)
X {
X@@ -805,10 +813,18 @@
X changed = TRUE;
X }
X }
X+ else if (strcmp (names[i], "APPLICATION_ID") == 0)
X+ {
X+ if (sequence->application_id == NULL)
X+ {
X+ sequence->application_id = sn_internal_strdup (values[i]);
X+ changed = TRUE;
X+ }
X+ }
X else if (strcmp (names[i], "DESKTOP") == 0)
X {
X int workspace;
X-
X+
X workspace = sn_internal_string_to_ulong (values[i]);
X
X sequence->workspace = workspace;
END-of-startup-notification010/patches/patch-aa
echo x - startup-notification010/patches/patch-ab
sed 's/^X//' >startup-notification010/patches/patch-ab <<
'END-of-startup-notification010/patches/patch-ab'
X$NetBSD$
X
X--- libsn/sn-monitor.h 2009-04-03 17:11:34.000000000 +0700
X+++ libsn/sn-monitor.h 2010-03-26 20:35:05.000000000 +0700
X@@ -73,6 +73,7 @@
X const char* sn_startup_sequence_get_wmclass (SnStartupSequence
*sequence);
X const char* sn_startup_sequence_get_binary_name (SnStartupSequence
*sequence);
X const char* sn_startup_sequence_get_icon_name (SnStartupSequence
*sequence);
X+const char* sn_startup_sequence_get_application_id (SnStartupSequence
*sequence);
X int sn_startup_sequence_get_screen (SnStartupSequence
*sequence);
X
X void sn_startup_sequence_get_initiated_time (SnStartupSequence
*sequence,
END-of-startup-notification010/patches/patch-ab
exit
Home |
Main Index |
Thread Index |
Old Index