Bug 189014 - x11-wm/compiz lacks compiz.desktop
Summary: x11-wm/compiz lacks compiz.desktop
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 12:10 UTC by Trond Endrestøl
Modified: 2014-05-01 12:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2014-04-26 12:10:00 UTC
Running make install in x11-wm/compiz fails with:

===>  Checking if x11-wm/compiz already installed
===>   Registrering installation for compiz-0.8.4_19 as automatic
pkg-statis: lstat(/usr/ports/workdirs/usr/ports/x11-wm/compiz/work/stage/usr/local/share/applications/compiz.desktop): No such file or directory
*** [fake-pkg] Error code 74

Fix: 

Short term fix is running:

touch ${WRKDIRPREFIX}${PORTSDIR}/x11-wm/compiz/work/stage/usr/local/share/applications/compiz.desktop

e.g.:

touch /usr/ports/workdirs/usr/ports/x11-wm/compiz/work/stage/usr/local/share/applications/compiz.desktop

Long term fix would be to fix pkg-plist or (re)create compiz.desktop.
How-To-Repeat: svn up /usr/ports
cd /usr/ports/x11-wm/compiz
make install
Comment 1 dfilter service freebsd_committer freebsd_triage 2014-05-01 12:08:33 UTC
Author: bar
Date: Thu May  1 11:08:29 2014
New Revision: 352745
URL: http://svnweb.freebsd.org/changeset/ports/352745
QAT: https://qat.redports.org/buildarchive/r352745/

Log:
  Fix pkg-plist when built without GNOME
  
  While here:
  - Fix a misspelled option in a test
  - Strip binaries
  
  PR:		ports/189014

Modified:
  head/x11-wm/compiz/Makefile
  head/x11-wm/compiz/pkg-plist

Modified: head/x11-wm/compiz/Makefile
==============================================================================
--- head/x11-wm/compiz/Makefile	Thu May  1 10:44:16 2014	(r352744)
+++ head/x11-wm/compiz/Makefile	Thu May  1 11:08:29 2014	(r352745)
@@ -2,7 +2,7 @@
 
 PORTNAME=	compiz
 PORTVERSION=	0.8.4
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://releases.compiz.org/${PORTVERSION}/
 
@@ -117,7 +117,7 @@ PLIST_SUB+=	GNOME="@comment "
 CONFIGURE_ARGS+=	--enable-dbus
 BUILD_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
 RUN_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
-.if ${PORT_OPTIONS:MGTK} && ${PORT_OPTIONS:MGNOME}
+.if ${PORT_OPTIONS:MGTK2} && ${PORT_OPTIONS:MGNOME}
 CONFIGURE_ARGS+=	--enable-dbus-glib
 BUILD_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
 RUN_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
@@ -132,5 +132,8 @@ post-patch:
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/compiz-manager ${STAGEDIR}${PREFIX}/bin/compiz-manager
+.if ${PORT_OPTIONS:MGNOME}
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/window-manager-settings/libcompiz.so
+.endif
 
 .include <bsd.port.mk>

Modified: head/x11-wm/compiz/pkg-plist
==============================================================================
--- head/x11-wm/compiz/pkg-plist	Thu May  1 10:44:16 2014	(r352744)
+++ head/x11-wm/compiz/pkg-plist	Thu May  1 11:08:29 2014	(r352745)
@@ -118,7 +118,7 @@ libdata/pkgconfig/libdecoration.pc
 %%GNOME%%window-manager-settings/libcompiz.a
 %%GNOME%%window-manager-settings/libcompiz.so
 %%GNOME%%@cwd %%RESETPREFIX%%
-share/applications/compiz.desktop
+%%GNOME%%share/applications/compiz.desktop
 share/locale/af/LC_MESSAGES/compiz.mo
 share/locale/ar/LC_MESSAGES/compiz.mo
 share/locale/bg/LC_MESSAGES/compiz.mo
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Barbara Guida freebsd_committer freebsd_triage 2014-05-01 12:10:38 UTC
State Changed
From-To: open->closed

It should be fixed. Thanks!