From owner-freebsd-ports@FreeBSD.ORG Wed Nov 19 10:23:37 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFB68D39; Wed, 19 Nov 2014 10:23:37 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67EB9F76; Wed, 19 Nov 2014 10:23:37 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id n15so229903lbi.4 for ; Wed, 19 Nov 2014 02:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Tla/jyKlvwdu2O3OeItQiMzlPNkMCAZJ+nxmc+jOiKA=; b=rADMXctzEORkYQUVrPs5xkr4KT2XrEc9brMYw24M9+cMD3hpcflGm4ZSRujfEEyl95 PFG/H3SolO6WtZRjBeAwN9OffmhIMflEYFu336xl8bkkMZydabuCWzNnI70c9zU+4Jfi ZJJxw+X7C1L451+NZuT6cYLF7fhxFe+KJ1aoLdjMZvvDZ9Zf6assLYSCiquAGHcQcPrK Sc2QDbIehK+Ck04LyYnPg6x9vXPx3LDZSr/rx03c7UTl3qZ3nHcwaemrUIowip9gxAx1 +hl/zQYxYEdDR+gIQluG2TaPq8WU8P3dnAiFkeuqFHUCM5vYEGl3eeCvoePJ90mIy5i2 vlVg== X-Received: by 10.152.88.8 with SMTP id bc8mr4557950lab.64.1416392615291; Wed, 19 Nov 2014 02:23:35 -0800 (PST) Received: from jurica04.local ([85.114.51.10]) by mx.google.com with ESMTPSA id q1sm333626lal.6.2014.11.19.02.23.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 02:23:34 -0800 (PST) Message-ID: <546C6FA5.4080905@gmail.com> Date: Wed, 19 Nov 2014 11:23:33 +0100 From: Jurica Borozan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Steven Kreuzer Subject: Re: FreeBSD Port: cfengine36-3.6.1_3,1 References: <546A2DDB.3010900@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Cy Schubert X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 10:23:38 -0000 Hi Steven, I tested proposed solution which is partially ok. XML processing is there but segmentation fault/core dump is still present due to a problem in backup-ing processed files. Even more: I tested non-xml functionality to investigate this "backup" issue and it is there too. On linux there is no problem with this issue. I would say this port is not ready for use until further investigated - backup of processed files is important. Thanks and regards jurica Please find bellow my reply to Cy yesterday: I played with CFE source (3.6.2) code yesterday and enabled libxml2 via configure (--with-libxml2=/usr/local will do). Unfortunately, xml processing with throws segmentation fault on file write (non xml processing is ok though). LATEST: After further investigation, it seems to be an internal cfengine bug on handling backups of processed files. I spotted strange behaviour on (pkged and source made) cfengine: pkg puts it in /usr/local/sbin but cfengine complains if not in /var/cfengine/bin. If it is copied (or sym linked) into /var/cfengine/bin then on first run it turns executables from /usr/local/sbin to symbolic links. Maybe generationg with --prefix=/var/cfengine would be better choice ? I know from linux it is "happy" to be in /var since it has some "stuff" hard-coded to this directory. On 19.11.14 00:00, Steven Kreuzer wrote: > Hi Jurica- > > On Mon, Nov 17, 2014 at 12:18 PM, Jurica Borozan > wrote: >> Hi, >> >> I am trying to run cfengine 3.6.1 and 3.5.8 but it will not work with >> XML files: "error: Cannot edit XML files without LIBXML2" > > It looks like the current version of the port doesn't have the option > to pull in libxml2 to enable this feature. > Can you try out this patch and let me know if it solves your issue? > https://people.freebsd.org/~skreuzer/patches/cfengine36-libxml.patch > > The following commands will download the patch into your home > directory, apply the changes to the port and build and install a > version of > cfengine with xml support > > $ cd ~ > $ fetch https://people.freebsd.org/~skreuzer/patches/cfengine36-libxml.patch > $ cd /usr/ports > $ patch < ~/cfengine36-libxml.patch > $ cd /usr/ports/sysutils/cfengine36 > $ sudo make WITH="LIBXML2" install > > Let me know if you have any problems. > > Thanks >