Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 22:20:34 -0800
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        tom@FreeBSD.org
Cc:        freebsd-ports@FreeBSD.org, obrien@FreeBSD.org
Subject:   Re: ports/31012: security/aide doesn't compile 
Message-ID:  <200111160621.fAG6LEY39540@cwsys.cwsent.com>
In-Reply-To: Your message of "Wed, 14 Nov 2001 12:20:06 PST." <200111142020.fAEKK6L58822@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_-12910557880
Content-Type: text/plain; charset=us-ascii

In message <200111142020.fAEKK6L58822@freefall.freebsd.org>, 
tom@FreeBSD.org wr
ites:
> Synopsis: security/aide doesn't compile
> 
> Responsible-Changed-From-To: freebsd-ports->cy
> Responsible-Changed-By: tom
> Responsible-Changed-When: Wed Nov 14 12:19:43 PST 2001
> Responsible-Changed-Why: 
> Over to MAINTAINER
> 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31012

Tom, I have a workaround for you.  Please put the enclosed 
patch-files.c into the files directory of the bison port.  Rebuild and 
reinstall the bison port, then build the aide port.

The new bison creates an #ifdef against a cpp macro which is generated 
from the pathname of the header file that is created by bison.  The 
macro name contains slashes and dots which causes the C compiler some 
gas because of its illegal syntax.  The bison patch changes any 
characters in the generated macro name which could cause the C compiler 
any gas to underscores.

I will discuss with the bison port maintainer whether changes need to 
be made to the aide port to compensate for the new bison or whether the 
bison port needs to be patched.


Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team      Email:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD
Ministry of Management Services
Province of BC



--==_Exmh_-12910557880
Content-Type: text/plain ; name="patch-files.c"; charset=us-ascii
Content-Description: patch-files.c
Content-Disposition: attachment; filename="patch-files.c"

--- src/files.c.orig	Wed Aug 15 01:53:15 2001
+++ src/files.c	Mon Sep 24 19:58:50 2001
@@ -104,7 +104,9 @@
   strcat (macro_name, header_extension);
 
   for (ite = 0; macro_name[ite]; ite++)
-    if (macro_name[ite] == '.')
+    if (!((macro_name[ite] >= '0' && macro_name[ite] <= '9') ||
+        (macro_name[ite] >= 'A' && macro_name[ite] <= 'Z') ||
+        (macro_name[ite] >= 'a' && macro_name[ite] <= 'z')))
       macro_name[ite] = '_';
     else
       {

--==_Exmh_-12910557880--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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