Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2014 17:48:15 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        Koop Mast <kwm@rainbow-runner.nl>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: portmaster ports update 20140416
Message-ID:  <20140425174815.296cff33@kalimero.tijl.coosemans.org>
In-Reply-To: <CAJ5UdcMkZZ9HuW7MAXCkwx-kuNBwcJCC2kB0nkeCBdxApH=0gQ@mail.gmail.com>
References:  <CAJ5UdcO1=pEHownza5VGH7wd06e3QhGr-yxuUPJvVXBvH1HbLg@mail.gmail.com> <20140424184938.023e4a13@kalimero.tijl.coosemans.org> <CAJ5UdcO=7vyXnFOWvRYM6ADopAbBsePkNi9qZhGchhQUHC-7bg@mail.gmail.com> <20140424192852.32dc7d23@kalimero.tijl.coosemans.org> <CAJ5UdcPRhyH%2BtTciMf_XWpK%2BSKsVSB-YN%2BddQDq%2Bfx%2BuBRDXXA@mail.gmail.com> <20140424200526.59b88ae2@kalimero.tijl.coosemans.org> <CAJ5UdcO5qfbje0XHQAWWnRtAicnR2xnuqhzMhWHhS41v_mGQ4g@mail.gmail.com> <20140424223648.3df350b3@kalimero.tijl.coosemans.org> <CAJ5UdcO%2B3gQ6fwuZepAavMyk-86DfcYEL2x2x=v=HbevDJx5kg@mail.gmail.com> <20140424232140.08a9acff@kalimero.tijl.coosemans.org> <CAJ5UdcPi1eq_BGZwm4iDWgkE6ZtSUe1jMF6DPoC0UTBYb-dO%2Bw@mail.gmail.com> <20140425000339.44c933b6@kalimero.tijl.coosemans.org> <CAJ5UdcM%2B4Eb-gEFG_w10VxHBEgnVuVtXy%2BYwkZdyLLkPvFmZ%2Bw@mail.gmail.com> <20140425142046.15efbeb7@kalimero.tijl.coosemans.org> <CAJ5UdcMkZZ9HuW7MAXCkwx-kuNBwcJCC2kB0nkeCBdxApH=0gQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--MP_/nG_gRh2tFuB=ml/cd7v3Glp
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Fri, 25 Apr 2014 10:37:36 -0500 Antonio Olivares wrote:
> root@E-213-3W:/usr/ports/graphics/colord/work/stage # cat
> /usr/ports/graphics/colord/work/.PLIST.mktmp
> @exec echo "===> Creating users and/or groups."
> @exec if ! /usr/sbin/pw groupshow colord >/dev/null 2>&1; then  echo
> "Creating group 'colord' with gid '970'.";  /usr/sbin/pw groupadd
> colord -g 970; else echo "Using existing group 'colord'."; fi
> @exec if ! /usr/sbin/pw usershow colord >/dev/null 2>&1; then  echo
> "Creating user 'colord' with uid '970'.";  /usr/sbin/pw useradd colord
> -u 970 -g 970  -c "colord color management daemon" -d /nonexistent -s
> /usr/sbin/nologin;  else echo "Using existing user 'colord'."; fi
> @owner root
> @group wheel
> bin/cd-create-profile
> bin/cd-fix-profile
> bin/cd-iccdump
> bin/colormgr
> etc/colord.conf
> etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
> include/colord-1/colord-private.h
> include/colord-1/colord-session/cd-session.h
> include/colord-1/colord.h
> include/colord-1/colord/cd-buffer.h
> include/colord-1/colord/cd-client-sync.h
> include/colord-1/colord/cd-client.h
> include/colord-1/colord/cd-color.h
> include/colord-1/colord/cd-deprecated.h
> include/colord-1/colord/cd-device-sync.h
> include/colord-1/colord/cd-device.h
> include/colord-1/colord/cd-dom.h
> include/colord-1/colord/cd-enum.h
> include/colord-1/colord/cd-icc.h
> include/colord-1/colord/cd-interp-akima.h
> include/colord-1/colord/cd-interp-linear.h
> include/colord-1/colord/cd-interp.h
> include/colord-1/colord/cd-it8-utils.h
> include/colord-1/colord/cd-it8.h
> include/colord-1/colord/cd-math.h
> include/colord-1/colord/cd-profile-sync.h
> include/colord-1/colord/cd-profile.h
> include/colord-1/colord/cd-quirk.h
> include/colord-1/colord/cd-sensor-sync.h
> include/colord-1/colord/cd-sensor.h
> include/colord-1/colord/cd-transform.h
> include/colord-1/colord/cd-version.h
> lib/colord-sensors/libcolord_sensor_argyll.a
> lib/colord-sensors/libcolord_sensor_argyll.la
> lib/colord-sensors/libcolord_sensor_argyll.so
> lib/colord-sensors/libcolord_sensor_dummy.a
> lib/colord-sensors/libcolord_sensor_dummy.la
> lib/colord-sensors/libcolord_sensor_dummy.so
> lib/girepository-1.0/Colord-1.0.typelib
> lib/libcolord.a
> lib/libcolord.la
> lib/libcolord.so
> lib/libcolord.so.1
> lib/libcolordprivate.a
> lib/libcolordprivate.la
> lib/libcolordprivate.so
> lib/libcolordprivate.so.1
> libdata/pkgconfig/colord.pc
> libexec/colord
> libexec/colord-session
> @comment man/man1/cd-create-profile.1.gz
> @comment man/man1/cd-fix-profile.1.gz
> @comment man/man1/colord.conf.1.gz
> @comment man/man1/colormgr.1.gz
> share/color/icc/colord/AdobeRGB1998.icc
> share/color/icc/colord/AppleRGB.icc
> share/color/icc/colord/BestRGB.icc
> share/color/icc/colord/BetaRGB.icc
> share/color/icc/colord/Bluish.icc
> share/color/icc/colord/BruceRGB.icc
> share/color/icc/colord/CIE-RGB.icc
> share/color/icc/colord/ColorMatchRGB.icc
> share/color/icc/colord/Crayons.icc
> share/color/icc/colord/DonRGB4.icc
> share/color/icc/colord/ECI-RGBv1.icc
> share/color/icc/colord/ECI-RGBv2.icc
> share/color/icc/colord/EktaSpacePS5.icc
> share/color/icc/colord/Gamma5000K.icc
> share/color/icc/colord/Gamma5500K.icc
> share/color/icc/colord/Gamma6500K.icc
> share/color/icc/colord/NTSC-RGB.icc
> share/color/icc/colord/PAL-RGB.icc
> share/color/icc/colord/ProPhotoRGB.icc
> share/color/icc/colord/SMPTE-C-RGB.icc
> share/color/icc/colord/SwappedRedAndGreen.icc
> share/color/icc/colord/WideGamutRGB.icc
> share/color/icc/colord/sRGB.icc
> share/color/icc/colord/x11-colors.icc
> share/colord/icons/color-munki-photo-ambient.svg
> share/colord/icons/color-munki-photo-attach.svg
> share/colord/icons/color-munki-photo-calibrate.svg
> share/colord/icons/color-munki-photo-projector.svg
> share/colord/icons/color-munki-photo-screen.svg
> share/colord/icons/color-munki-smile-attach.svg
> share/colord/icons/colorhug-attach.svg
> share/colord/icons/dtp94-attach.svg
> share/colord/icons/hcfr-attach.svg
> share/colord/icons/huey-attach.svg
> share/colord/icons/i1-display3-attach.svg
> share/colord/icons/i1-monitor-attach.svg
> share/colord/icons/i1-pro-attach.svg
> share/colord/icons/spyder2-attach.svg
> share/colord/icons/spyder3-attach.svg
> share/colord/icons/spyder4-attach.svg
> share/colord/ti1/display-long.ti1
> share/colord/ti1/display-normal.ti1
> share/colord/ti1/display-short.ti1
> share/colord/ti1/printer-long.ti1
> share/colord/ti1/printer-normal.ti1
> share/colord/ti1/printer-short.ti1
> share/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
> share/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
> share/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
> share/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml
> share/dbus-1/interfaces/org.freedesktop.ColorManager.xml
> share/dbus-1/services/org.freedesktop.ColorHelper.service
> share/dbus-1/system-services/org.freedesktop.ColorManager.service
> share/gir-1.0/Colord-1.0.gir
> share/locale/as/LC_MESSAGES/colord.mo
> share/locale/bg/LC_MESSAGES/colord.mo
> share/locale/bg_BG/LC_MESSAGES/colord.mo
> share/locale/bn_IN/LC_MESSAGES/colord.mo
> share/locale/ca/LC_MESSAGES/colord.mo
> share/locale/cs/LC_MESSAGES/colord.mo
> share/locale/da/LC_MESSAGES/colord.mo
> share/locale/de/LC_MESSAGES/colord.mo
> share/locale/el/LC_MESSAGES/colord.mo
> share/locale/en_GB/LC_MESSAGES/colord.mo
> share/locale/eo/LC_MESSAGES/colord.mo
> share/locale/es/LC_MESSAGES/colord.mo
> share/locale/eu/LC_MESSAGES/colord.mo
> share/locale/fa/LC_MESSAGES/colord.mo
> share/locale/fi/LC_MESSAGES/colord.mo
> share/locale/fr/LC_MESSAGES/colord.mo
> share/locale/ga/LC_MESSAGES/colord.mo
> share/locale/gl/LC_MESSAGES/colord.mo
> share/locale/gu/LC_MESSAGES/colord.mo
> share/locale/he/LC_MESSAGES/colord.mo
> share/locale/hi/LC_MESSAGES/colord.mo
> share/locale/hr/LC_MESSAGES/colord.mo
> share/locale/hu/LC_MESSAGES/colord.mo
> share/locale/ia/LC_MESSAGES/colord.mo
> share/locale/id/LC_MESSAGES/colord.mo
> share/locale/it/LC_MESSAGES/colord.mo
> share/locale/it_IT/LC_MESSAGES/colord.mo
> share/locale/ja/LC_MESSAGES/colord.mo
> share/locale/ka/LC_MESSAGES/colord.mo
> share/locale/kk/LC_MESSAGES/colord.mo
> share/locale/kn/LC_MESSAGES/colord.mo
> share/locale/ko/LC_MESSAGES/colord.mo
> share/locale/lt/LC_MESSAGES/colord.mo
> share/locale/lv/LC_MESSAGES/colord.mo
> share/locale/ml/LC_MESSAGES/colord.mo
> share/locale/mr/LC_MESSAGES/colord.mo
> share/locale/ms/LC_MESSAGES/colord.mo
> share/locale/nb/LC_MESSAGES/colord.mo
> share/locale/nl/LC_MESSAGES/colord.mo
> share/locale/or/LC_MESSAGES/colord.mo
> share/locale/pa/LC_MESSAGES/colord.mo
> share/locale/pl/LC_MESSAGES/colord.mo
> share/locale/pt/LC_MESSAGES/colord.mo
> share/locale/pt_BR/LC_MESSAGES/colord.mo
> share/locale/ro/LC_MESSAGES/colord.mo
> share/locale/ru/LC_MESSAGES/colord.mo
> share/locale/sk/LC_MESSAGES/colord.mo
> share/locale/sl/LC_MESSAGES/colord.mo
> share/locale/sq/LC_MESSAGES/colord.mo
> share/locale/sr/LC_MESSAGES/colord.mo
> share/locale/sr@latin/LC_MESSAGES/colord.mo
> share/locale/sv/LC_MESSAGES/colord.mo
> share/locale/ta/LC_MESSAGES/colord.mo
> share/locale/te/LC_MESSAGES/colord.mo
> share/locale/th/LC_MESSAGES/colord.mo
> share/locale/tr/LC_MESSAGES/colord.mo
> share/locale/uk/LC_MESSAGES/colord.mo
> share/locale/zh_CN/LC_MESSAGES/colord.mo
> share/locale/zh_HK/LC_MESSAGES/colord.mo
> share/locale/zh_TW/LC_MESSAGES/colord.mo
> share/polkit-1/actions/org.freedesktop.color.policy
> @unexec rmdir "%D/share/locale/zh_HK/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/zh_HK" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/te/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/te" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/sr@latin/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/sr@latin" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/mr/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/mr" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/kk/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/kk" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/it_IT/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/it_IT" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/ia/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/ia" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/bn_IN/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/bn_IN" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/bg_BG/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/bg_BG" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/as/LC_MESSAGES" 2>/dev/null || true
> @unexec rmdir "%D/share/locale/as" 2>/dev/null || true
> @dirrm share/colord/ti1
> @dirrm share/colord/icons
> @dirrm share/colord
> @dirrm share/color/icc/colord
> @dirrm share/color/icc
> @dirrm share/color
> @dirrm lib/colord-sensors
> @dirrm include/colord-1/colord-session
> @dirrm include/colord-1/colord
> @dirrm include/colord-1
> @cwd /
> @unexec rmdir "%D/var/db/colord/icc" 2>/dev/null || true
> @unexec rmdir "%D/var/db/colord" 2>/dev/null || true
> @cwd

This @cwd here is the problem.  Please try the patch I sent earlier.
(I've attached it in case you lost it.)

# cd /usr/ports
# patch -E < /path/to/colord.patch
# cd graphics/colord

Double-check that the @cwd lines in the pkg-plist file are gone now.

Then do:

# make clean install

--MP_/nG_gRh2tFuB=ml/cd7v3Glp
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=colord.patch

Index: graphics/colord/Makefile
===================================================================
--- graphics/colord/Makefile	(revision 352018)
+++ graphics/colord/Makefile	(working copy)
@@ -4,7 +4,7 @@
 
 PORTNAME=	colord
 PORTVERSION=	1.0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.freedesktop.org/software/colord/releases/
 
@@ -71,7 +71,4 @@ post-patch:
 		s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure
 .endif
 
-post-install:
-	@${MKDIR} ${STAGEDIR}/var/db/colord/icc
-
 .include <bsd.port.mk>
Index: graphics/colord/pkg-install
===================================================================
--- graphics/colord/pkg-install	(revision 352018)
+++ graphics/colord/pkg-install	(working copy)
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-case $2 in
-POST-INSTALL)
-	/bin/mkdir -p /var/db/colord/icc
-	/bin/chmod 0755 /var/db/colord
-	/usr/sbin/chown colord:colord /var/db/colord
-	/usr/sbin/chown colord:colord /var/db/colord/icc
-	exit 0
-	;;
-esac
Index: graphics/colord/pkg-plist
===================================================================
--- graphics/colord/pkg-plist	(revision 352018)
+++ graphics/colord/pkg-plist	(working copy)
@@ -197,7 +197,7 @@ share/polkit-1/actions/org.freedesktop.c
 @dirrm include/colord-1/colord-session
 @dirrm include/colord-1/colord
 @dirrm include/colord-1
-@cwd /
-@dirrmtry var/db/colord/icc
-@dirrmtry var/db/colord
-@cwd
+@exec install -d -o colord -g colord -m 0755 /var/db/colord
+@exec install -d -o colord -g colord -m 0755 /var/db/colord/icc
+@unexec rm -d /var/db/colord/icc 2>/dev/null || :
+@unexec rm -d /var/db/colord 2>/dev/null || :

--MP_/nG_gRh2tFuB=ml/cd7v3Glp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140425174815.296cff33>