Deprecation campaign

Ruslan Mahmatkhanov cvs-src at yandex.ru
Thu Mar 17 18:12:58 UTC 2011


17.03.2011 20:56, Martin Wilke пишет:
> ===>   Installing for ucpp-1.3
> ===>    Generating temporary packing list
> ===>   Checking if devel/ucpp already installed
> install  -s -o root -g wheel -m 555
> /usr/home/miwi/dev/ports/devel/ucpp/work/ucpp-1.3/ucpp /usr/local/bin
> install: /usr/home/miwi/dev/ports/devel/ucpp/work/ucpp-1.3/ucpp: No such
> file or directory
> *** Error code 71
>
> Stop in /usr/home/miwi/dev/ports/devel/ucpp.

I tested it with Michel Talon patches. It now builds and work well.
Tried this patch (should be applied with -p0)

>
> On Thu, Mar 17, 2011 at 12:33 PM, Ruslan Mahmatkhanov<cvs-src at yandex.ru>wrote:
>
>> 17.03.2011 02:33, Michel Talon пишет:
>>
>>   Hello,
>>>
>>> i noted that ucpp is deprecated because it cannot be fetched
>>> from original site. This is an alternate c preprocessor
>>> supposed to be better than the gnu one, written by Thomas
>>> Pornin. I happen to know the guy (*), so i searched if
>>> the soft had been moved, and indeed it can be found here:
>>> http://code.google.com/p/ucpp/
>>> I hope you may reconsider your decision.
>>>
>>> With my best regards
>>>
>>> (*) i think he now runs a crypto firm in the Boston area.
>>>
>>
>> I've tried to adopt the port to new distfile..
>> It builds but doesn't produce ucpp binary.
>> Maybe you or anybody can look what's wrong.
>>
>> --
>> Regards,
>> Ruslan
>>
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
>

-- 
Regards,
Ruslan
-------------- next part --------------
diff -ruNa ucpp.orig/Makefile ucpp/Makefile
--- ucpp.orig/Makefile	2011-03-16 16:55:41.000000000 +0300
+++ ucpp/Makefile	2011-03-17 21:03:33.000000000 +0300
@@ -9,16 +9,16 @@
 PORTNAME=	ucpp
 PORTVERSION=	1.3
 CATEGORIES=	devel
-MASTER_SITES=	http://pornin.nerim.net/ucpp/
+MASTER_SITES=	GOOGLE_CODE
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A C preprocessor and lexer
 
-DEPRECATED=     Upstream disapear and distfile is no more available
-EXPIRATION_DATE=        2011-05-01
+LICENSE=	BSD
 
 MAN1=		ucpp.1
 PLIST_FILES=	bin/ucpp
+USE_GMAKE=	yes
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff -ruNa ucpp.orig/distinfo ucpp/distinfo
--- ucpp.orig/distinfo	2005-11-24 18:40:02.000000000 +0300
+++ ucpp/distinfo	2011-03-17 21:03:33.000000000 +0300
@@ -1,3 +1,2 @@
-MD5 (ucpp-1.3.tar.gz) = f6f508ab42dd3eb57c0411a25429c9e8
-SHA256 (ucpp-1.3.tar.gz) = 6057028d96d349acd3de39a83f88f5772c422f822beb7f139dca8eabcf058bfa
-SIZE (ucpp-1.3.tar.gz) = 91537
+SHA256 (ucpp-1.3.tar.gz) = d81bff52769325497d7663356ebebb358991e4c820b43aa60c40d65a29e9c376
+SIZE (ucpp-1.3.tar.gz) = 91626
diff -ruNa ucpp.orig/files/patch-Makefile ucpp/files/patch-Makefile
--- ucpp.orig/files/patch-Makefile	2003-07-29 00:59:02.000000000 +0400
+++ ucpp/files/patch-Makefile	2011-03-17 21:06:08.000000000 +0300
@@ -1,22 +1,31 @@
---- Makefile.orig	Wed Jan 15 02:07:44 2003
-+++ Makefile	Sun Jul 27 14:51:51 2003
+--- Makefile.orig	2008-10-01 21:15:41.000000000 +0400
++++ Makefile	2011-03-17 21:05:49.000000000 +0300
 @@ -56,8 +56,8 @@
  #FLAGS = -O -m -DMEM_CHECK
  
  # for gcc
 -CC = gcc
--FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
+-FLAGS = -O3 -W -Wall -ansi
 +CC ?= gcc
 +FLAGS = -ansi -DAUDIT -DMEM_DEBUG
+ #FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
  #FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -W -Wall -ansi -DMEM_CHECK
  #FLAGS = -O -pg -W -Wall -ansi -DMEM_CHECK
- #LDFLAGS = -pg
-@@ -80,7 +80,7 @@
+@@ -78,7 +78,7 @@
+ #LIBS = libefence.a
+ #LIBS = -lgc_dbg
+ 
+-#STAND_ALONE = -DSTAND_ALONE
++STAND_ALONE = -DSTAND_ALONE
+ 
+ ifdef STAND_ALONE
+ 	FINAL_STEP = $(CC) $(LDFLAGS) -o ucpp $(COBJ) $(LIBS)
+@@ -87,7 +87,7 @@
  # ----- nothing should be changed below this line -----
  
  COBJ = mem.o nhash.o cpp.o lexer.o assert.o macro.o eval.o
--CFLAGS = $(FLAGS) -DSTAND_ALONE
-+CFLAGS += $(FLAGS) -DSTAND_ALONE
+-CFLAGS = $(FLAGS) $(STAND_ALONE)
++CFLAGS += $(FLAGS) $(STAND_ALONE)
  
  all: ucpp
- 
+ 	@ar cq libucpp.a *.o
diff -ruNa ucpp.orig/files/patch-cpp.c ucpp/files/patch-cpp.c
--- ucpp.orig/files/patch-cpp.c	1970-01-01 03:00:00.000000000 +0300
+++ ucpp/files/patch-cpp.c	2011-03-17 21:08:34.000000000 +0300
@@ -0,0 +1,22 @@
+--- cpp.c.orig	2008-10-01 21:15:41.000000000 +0400
++++ cpp.c	2011-03-17 21:08:15.000000000 +0300
+@@ -65,8 +65,8 @@
+ FILE *emit_output;
+ 
+ #ifdef STAND_ALONE
+-static char *system_macros_def[] = { STD_MACROS, 0 };
+-static char *system_assertions_def[] = { STD_ASSERT, 0 };
++static char *system_macros_def[] = { "/usr/include", 0 };
++static char *system_assertions_def[] = { "", 0 };
+ #endif
+ 
+ char *current_filename = 0, *current_long_filename = 0;
+@@ -2364,7 +2364,7 @@
+ 	char *filename = 0;
+ 	int with_std_incpath = 1;
+ 	int print_version = 0, print_defs = 0, print_asserts = 0;
+-	int system_macros = 0, standard_assertions = 1;
++	int system_macros = 0, standard_assertions = 0;
+ 
+ 	init_lexer_state(ls);
+ 	ls->flags = DEFAULT_CPP_FLAGS;
diff -ruNa ucpp.orig/pkg-descr ucpp/pkg-descr
--- ucpp.orig/pkg-descr	2002-08-19 15:44:39.000000000 +0400
+++ ucpp/pkg-descr	2011-03-17 21:03:33.000000000 +0300
@@ -6,4 +6,4 @@
    - Possibility to use the code as a lexer (that outputs tokens
      directly) 
 
-WWW: http://pornin.nerim.net/ucpp/
+WWW: http://code.google.com/p/ucpp/


More information about the freebsd-ports mailing list