From owner-freebsd-ports@FreeBSD.ORG Sat Mar 26 03:11:38 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E68F916A4CE; Sat, 26 Mar 2005 03:11:38 +0000 (GMT) Received: from ensc.cpsc.ucalgary.ca (ensc.cpsc.ucalgary.ca [136.159.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C9D243D1D; Sat, 26 Mar 2005 03:11:38 +0000 (GMT) (envelope-from gaoj@cpsc.ucalgary.ca) Received: from imgw1.cpsc.ucalgary.ca (imgw1 [136.159.5.9]) j2Q39Ovm011864; Fri, 25 Mar 2005 20:09:24 -0700 Received: from localhost (localhost [127.0.0.1])j2Q39Ogl016873; Fri, 25 Mar 2005 20:09:24 -0700 Received: from imgw1.cpsc.ucalgary.ca ([127.0.0.1]) by localhost (imgw1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16759-02-5; Fri, 25 Mar 2005 20:09:23 -0700 (MST) Received: from localhost.cpsc.ucalgary.ca (sana-sa [136.159.7.231]) j2Q38wle016839; Fri, 25 Mar 2005 20:08:59 -0700 Received: from localhost.cpsc.ucalgary.ca (localhost [127.0.0.1]) j2Q38w2b053745; Fri, 25 Mar 2005 20:08:58 -0700 (MST) (envelope-from gaoj@localhost.cpsc.ucalgary.ca) Received: (from gaoj@localhost)j2Q38w2D053744; Fri, 25 Mar 2005 20:08:58 -0700 (MST) (envelope-from gaoj) Date: Fri, 25 Mar 2005 20:08:58 -0700 (MST) From: Jie Gao Message-Id: <200503260308.j2Q38w2D053744@localhost.cpsc.ucalgary.ca> To: kde@freebsd.org X-Virus-Scanned: by amavisd-new at cpsc.ucalgary.ca X-Spam-Status: No, hits=-1.2 required=6.8 X-Spam-Level: cc: ports@freebsd.org Subject: Kpdf and -march=pentium4? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 03:11:39 -0000 Hi All, I noticed that while making kdegraphics from ports, if "-march=pentium4" is in the compiler flags, I will finally get a non-working kpdf. It compiles fine but when I try to open a pdf file, kdpf will core dupm. But a kpdf compiled without "-march=pentium4" will work just fine. For this reason, should we put something in kdegraphics3's Makefile to prevent a bad kdpf? E.g. a patch like this: ==========8<==========8<==========8<==========8<==========8<========== --- Makefile~ Sun Mar 20 12:23:32 2005 +++ Makefile Fri Mar 25 19:59:25 2005 @@ -73,4 +73,11 @@ -E -e '/^SUBDIRS/s/(kamera|kooka|kuickshow)//g' \ ${WRKSRC}/doc/Makefile.in +.if !empty(CFLAGS:M-march=pentium4) +post-configure: + @${ECHO_MSG} Remove unsafe compiler flags for kpdf + @${FIND} ${WRKSRC}/kpdf -name Makefile \ + -exec ${REINPLACE_CMD} 's/ -march=pentium4//g' '{}' \; +.endif + .include