From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 30 21:50:14 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E115106574E for ; Wed, 30 Jun 2010 21:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 07EA18FC14 for ; Wed, 30 Jun 2010 21:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5ULo8GQ063323 for ; Wed, 30 Jun 2010 21:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5ULo8lr063322; Wed, 30 Jun 2010 21:50:08 GMT (envelope-from gnats) Resent-Date: Wed, 30 Jun 2010 21:50:08 GMT Resent-Message-Id: <201006302150.o5ULo8lr063322@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aragon Gouveia Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DB88106564A for ; Wed, 30 Jun 2010 21:45:38 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id 7C57E8FC1B for ; Wed, 30 Jun 2010 21:45:37 +0000 (UTC) Received: from phat.za.net (196-209-149-36.dynamic.isadsl.co.za [196.209.149.36]) by mail.geek.sh (Postfix) with ESMTPA id 3CC463FBFF for ; Wed, 30 Jun 2010 23:45:34 +0200 (SAST) Received: by phat.za.net (sSMTP sendmail emulation); Wed, 30 Jun 2010 23:45:33 +0200 Message-Id: <20100630214534.3CC463FBFF@mail.geek.sh> Date: Wed, 30 Jun 2010 23:45:33 +0200 From: "Aragon Gouveia" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/148268: [patch] x11-wm/scrotwm version upgrade 0.9.22 to 0.9.24 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aragon Gouveia List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 21:50:14 -0000 >Number: 148268 >Category: ports >Synopsis: [patch] x11-wm/scrotwm version upgrade 0.9.22 to 0.9.24 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jun 30 21:50:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Aragon Gouveia >Release: FreeBSD 8.0-STABLE amd64 >Organization: >Environment: System: FreeBSD igor.geek.sh 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Jun 13 23:39:32 SAST 2010 toor@igor.geek.sh:/usr/obj/usr/src/sys/IGOR amd64 >Description: ScrotWM version upgrade to latest 0.9.24 release. Patch attached. Thanks. >How-To-Repeat: >Fix: --- scrotwm-0.9.24.diff begins here --- diff -uNr scrotwm/Makefile scrotwm.new/Makefile --- scrotwm/Makefile 2010-05-16 21:11:08.000000000 +0200 +++ scrotwm.new/Makefile 2010-06-30 23:31:34.000000000 +0200 @@ -6,7 +6,7 @@ # PORTNAME= scrotwm -PORTVERSION= 0.9.22 +PORTVERSION= 0.9.24 CATEGORIES= x11-wm MASTER_SITES= http://scrotwm.org/snapshot/ \ http://www.peereboom.us/scrotwm/snapshot/ @@ -15,9 +15,8 @@ MAINTAINER= aragon@phat.za.net COMMENT= A small, dynamic tiling window manager for X11 -OPTIONS= DMENU "Depend on x11/dmenu" On \ - DMENU_BOTTOM "dmenu at screen bottom (instead of top)" Off \ - CLOCKFORMAT "Configurable strftime(3) clock format" Off +OPTIONS= DMENU "Depend on x11/dmenu" Off \ + DMENU_BOTTOM "dmenu at screen bottom (instead of top)" Off .include @@ -33,9 +32,6 @@ .if defined(WITH_DMENU_BOTTOM) EXTRA_PATCHES+= ${FILESDIR}/spawn_menu_atbottom.patch .endif -.if defined(WITH_CLOCKFORMAT) -EXTRA_PATCHES+= ${FILESDIR}/clock_format.patch -.endif do-build: ${CC} ${CFLAGS} -I${X11BASE}/include \ @@ -54,15 +50,4 @@ post-patch: @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/scrotwm.* -post-install: -.if defined(WITH_CLOCKFORMAT) - @${ECHO_MSG} - @${ECHO_MSG} "CLOCK FORMAT" - @${ECHO_MSG} - @${ECHO_MSG} "To set the clock's format, add a clock_format directive" - @${ECHO_MSG} "to your configuration file and set it to a format string" - @${ECHO_MSG} "following strftime(3) convention." - @${ECHO_MSG} -.endif - .include diff -uNr scrotwm/distinfo scrotwm.new/distinfo --- scrotwm/distinfo 2010-05-16 21:11:08.000000000 +0200 +++ scrotwm.new/distinfo 2010-06-30 23:27:16.000000000 +0200 @@ -1,3 +1,3 @@ -MD5 (scrotwm-0.9.22.tgz) = bc66c66d300b3176c119bfdae43b6a42 -SHA256 (scrotwm-0.9.22.tgz) = a3952d6a27f0c08dac05cb28226d70e611a8051cdc2735f04e7d64f122fb2943 -SIZE (scrotwm-0.9.22.tgz) = 54396 +MD5 (scrotwm-0.9.24.tgz) = e7e0022b3166774351db3a29bf5f0909 +SHA256 (scrotwm-0.9.24.tgz) = f592619f6053a47e28eace059647fed7ec4ac9848b00163637e6eb58a4bac6af +SIZE (scrotwm-0.9.24.tgz) = 54940 diff -uNr scrotwm/files/clock_format.patch scrotwm.new/files/clock_format.patch --- scrotwm/files/clock_format.patch 2010-04-05 22:57:26.000000000 +0200 +++ scrotwm.new/files/clock_format.patch 1970-01-01 02:00:00.000000000 +0200 @@ -1,79 +0,0 @@ ---- scrotwm.c.orig 2009-10-24 16:21:19.000000000 +0200 -+++ scrotwm.c 2009-10-24 16:58:55.000000000 +0200 -@@ -193,6 +193,7 @@ - int bar_height = 0; - int stack_enabled = 1; - int clock_enabled = 1; -+char *clock_format = NULL; - int title_name_enabled = 0; - int title_class_enabled = 0; - pid_t bar_pid; -@@ -839,7 +840,7 @@ - else { - time(&tmt); - localtime_r(&tmt, &tm); -- strftime(s, sizeof s, "%a %b %d %R %Z %Y ", &tm); -+ strftime(s, sizeof s, clock_format, &tm); - } - - for (i = 0; i < ScreenCount(display); i++) { -@@ -851,7 +852,7 @@ - if (stack_enabled) - stack = r->ws->cur_layout->name; - -- snprintf(loc, sizeof loc, "%d:%d %s %s %s %s", -+ snprintf(loc, sizeof loc, "%d:%d %s %s %s %s", - x++, r->ws->idx + 1, stack, s, bar_ext, - bar_vertext); - bar_print(r, loc); -@@ -3293,10 +3294,11 @@ - #define SWM_CONF_FILE "scrotwm.conf" - - enum { SWM_S_BAR_DELAY, SWM_S_BAR_ENABLED, SWM_S_STACK_ENABLED, -- SWM_S_CLOCK_ENABLED, SWM_S_CYCLE_EMPTY, SWM_S_CYCLE_VISIBLE, -- SWM_S_SS_ENABLED, SWM_S_TERM_WIDTH, SWM_S_TITLE_CLASS_ENABLED, -- SWM_S_TITLE_NAME_ENABLED, SWM_S_BAR_FONT, SWM_S_BAR_ACTION, -- SWM_S_SPAWN_TERM, SWM_S_SS_APP, SWM_S_DIALOG_RATIO }; -+ SWM_S_CLOCK_ENABLED, SWM_S_CLOCK_FORMAT, SWM_S_CYCLE_EMPTY, -+ SWM_S_CYCLE_VISIBLE, SWM_S_SS_ENABLED, SWM_S_TERM_WIDTH, -+ SWM_S_TITLE_CLASS_ENABLED, SWM_S_TITLE_NAME_ENABLED, -+ SWM_S_BAR_FONT, SWM_S_BAR_ACTION, SWM_S_SPAWN_TERM, -+ SWM_S_SS_APP, SWM_S_DIALOG_RATIO }; - - int - setconfvalue(char *selector, char *value, int flags) -@@ -3314,6 +3316,12 @@ - case SWM_S_CLOCK_ENABLED: - clock_enabled = atoi(value); - break; -+ case SWM_S_CLOCK_FORMAT: -+ if (clock_format != NULL) -+ free(clock_format); -+ if ((clock_format = strdup(value)) == NULL) -+ err(1, "setconfvalue: clock_format"); -+ break; - case SWM_S_CYCLE_EMPTY: - cycle_empty = atoi(value); - break; -@@ -3407,6 +3415,7 @@ - { "bind", setconfbinding, 0 }, - { "stack_enabled", setconfvalue, SWM_S_STACK_ENABLED }, - { "clock_enabled", setconfvalue, SWM_S_CLOCK_ENABLED }, -+ { "clock_format", setconfvalue, SWM_S_CLOCK_FORMAT }, - { "color_focus", setconfcolor, SWM_S_COLOR_FOCUS }, - { "color_unfocus", setconfcolor, SWM_S_COLOR_UNFOCUS }, - { "cycle_empty", setconfvalue, SWM_S_CYCLE_EMPTY }, -@@ -4468,6 +4477,13 @@ - if (cfile) - conf_load(cfile); - -+ if (clock_format == NULL) { -+ if ((clock_format = strdup("%a %b %d %R %Z %Y")) -+ == NULL) { -+ errx(1, "strdup"); -+ } -+ } -+ - /* setup all bars */ - for (i = 0; i < ScreenCount(display); i++) - TAILQ_FOREACH(r, &screens[i].rl, entry) { --- scrotwm-0.9.24.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: