Bug 175032 - x11-clocks/mlclock: Fix buils with clang
Summary: x11-clocks/mlclock: Fix buils with clang
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 18:10 UTC by tkato432
Modified: 2013-02-10 08:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1016 bytes, patch)
2013-01-05 18:10 UTC, tkato432
no flags Details | Diff
x11-clocks_mlclock.diff (1.01 KB, patch)
2013-02-08 17:57 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-01-05 18:10:08 UTC
- Fix buils with clang
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2013-01-18 06:13:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 13:09:03 UTC
Responsible Changed
From-To: araujo->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 13:09:24 UTC
State Changed
From-To: open->feedback

build still fail with clang. 
http://miwibox.org/tb/index.php?action=describe_port&id=443
Comment 4 tkato432 2013-02-08 17:57:04 UTC
Here is the corrected patch.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2013-02-10 07:55:02 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2013-02-10 07:55:11 UTC
Author: miwi
Date: Sun Feb 10 07:55:02 2013
New Revision: 312000
URL: http://svnweb.freebsd.org/changeset/ports/312000

Log:
  - Fix build with clang
  
  PR:		175032
  Submitted by:	Ports Fury

Modified:
  head/x11-clocks/mlclock/Makefile   (contents, props changed)

Modified: head/x11-clocks/mlclock/Makefile
==============================================================================
--- head/x11-clocks/mlclock/Makefile	Sun Feb 10 07:54:26 2013	(r311999)
+++ head/x11-clocks/mlclock/Makefile	Sun Feb 10 07:55:02 2013	(r312000)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   mlclock
-# Date created:        December 05 1997
-# Whom:                Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
-#
+# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
 # $FreeBSD$
-#
 
 PORTNAME=	mlclock
 PORTVERSION=	1.1
@@ -15,11 +11,17 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Clock for mlvwm window manager
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
+
 USE_XORG=	x11 xau xdmcp
 
 PLIST_FILES=	bin/mlclock %%DATADIR%%/mlclockrc %%DATADIR%%/mlclockrc-kanji
 PLIST_DIRS=	%%DATADIR%%
 
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^void main|int main| ; \
+		 s|log|logical|' ${WRKSRC}/mlclock.c
+
 do-build:
 	cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include \
 		-DRCFILE=\".mlclockrc\" mlclock.c -o mlclock \
_______________________________________________
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"