Bug 98753

Summary: New port: sysutils/rdup A backup utility intended to replace sysutils/hdup in the future
Product: Ports & Packages Reporter: G端nther" Van der Eecken <ports>
Component: Individual Port(s)Assignee: Aaron Dalton <aaron>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
rdup none

Description G端nther" Van der Eecken 2006-06-09 15:40:12 UTC
	
Rdup is a utility inspired by rsync and the plan9 way of doing backups
Comment 1 Aaron Dalton freebsd_committer freebsd_triage 2006-06-12 23:00:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->aaron

I'll take it.
Comment 2 Aaron Dalton freebsd_committer freebsd_triage 2006-06-12 23:18:02 UTC
When testing the port under FreeBSD-4.11, GCC 2.95 I get the following 
error.  Does this port have a minimum GCC requirement?  Please advise.

Cheers!
-- 
Aaron Dalton
aaron@FreeBSD.org
FreeBSD Ports Committer

==BUILD LOG==
===>   Returning to build of rdup-0.2.13
===>  Configuring for rdup-0.2.13
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for AIX... no
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... (cached) none needed
checking whether gmake sets $(MAKE)... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.10.3)
checking for lgetxattr in -lattr... no
checking for ANSI C header files... configure: WARNING: No xattr 
support. Not enabling -a
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking for attr/xattr.h... no
checking for getdelim... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/statvfs.h usability... no
checking sys/statvfs.h presence... no
checking for sys/statvfs.h... no
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking for cstream... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rdup.h
config.status: creating doc/rorrim.sh.8
config.status: creating doc/restore.sh.8
config.status: creating doc/monthday.sh.8
config.status: creating doc/mirror.sh.8
config.status: creating doc/rdup.8
config.status: creating doc/dump.sh.8
config.status: creating doc/dump-here.sh.8
config.status: creating doc/hist.sh.1
config.status: creating doc/yesterday.sh.1
config.status: creating doc/crypt.sh.1
config.status: creating doc/gzip.sh.1
config.status: creating sh-restore/rorrim.sh
config.status: creating sh-restore/monthday.sh
config.status: creating sh-restore/restore.sh
config.status: creating sh-tools/crypt.sh
config.status: creating sh-tools/dump-here.sh
config.status: creating sh-tools/dump.sh
config.status: creating sh-tools/gzip.sh
config.status: creating sh-tools/hist.sh
config.status: creating sh-tools/mirror.sh
config.status: creating sh-tools/yesterday.sh
config.status: creating config.h
===>  Building for rdup-0.2.13
cc -Wall -W -Werror -O -pipe  -DHAVE_CONFIG_H -Os -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -c 
crawler.c
cc -Wall -W -Werror -O -pipe  -DHAVE_CONFIG_H -Os -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -c rdup.c
cc -Wall -W -Werror -O -pipe  -DHAVE_CONFIG_H -Os -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -c gfunc.c
cc1: warnings being treated as errors
gfunc.c: In function `entry_print_data':
gfunc.c:148: warning: unknown conversion type character `z' in format
gfunc.c:151: warning: unknown conversion type character `z' in format
gfunc.c:154: warning: unknown conversion type character `z' in format
gfunc.c:168: warning: unknown conversion type character `z' in format
gmake: *** Error code 2

Stop in /usr/ports/sysutils/rdup.
*** [gfunc.o] Error 1
A problem building things on 4.11
Comment 3 Aaron Dalton freebsd_committer freebsd_triage 2006-06-12 23:18:20 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 4 G端nther" Van der Eecken 2006-06-14 15:07:11 UTC
Indeed. The code causing this are some fprintf lines. I can solve this 
very easily by using USE_GCC= 3.2+, but I prefer to patch if the GCC has 
a version less or equal then 2.95.

I want to use something like this:
.if ${GCCVERSION} <= 029500
   patch some lines in the source
.endif

According to this PR, http://www.freebsd.org/cgi/query-pr.cgi?pr=58317, 
it should exist, but no GCCVERSION hooks in bsd.port.mk. There are some 
checks in bsd.gcc.mk, but to my knowledge they aren't available for use 
in a Makefile.

Perl and make have a hook to test their version, I believe gcc should 
have one too.

I need some feedback on what to do. Thx.


Aaron Dalton schreef:
> When testing the port under FreeBSD-4.11, GCC 2.95 I get the following 
> error.  Does this port have a minimum GCC requirement?  Please advise.
>
> Cheers!
Comment 5 Aaron Dalton freebsd_committer freebsd_triage 2006-07-26 21:10:50 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks like what you'll want to do is something like:

GCCVERSION!=    ${CC} --version | ${HEAD} -1|${AWK} '{print $$3}'

and then test based on that.  I apologize for the lengthy delay.

Cheers!
- --
Aaron Dalton
aaron@FreeBSD.org
FreeBSD Ports Committer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEx8xKvlYKTYgR0qQRAlh3AKCxd4o81TeRH79nhvuDXL87S93aWgCgykGi
5qFG0UoNia/qh6LSbG0jjTM=
=sL77
-----END PGP SIGNATURE-----
Comment 6 Aaron Dalton freebsd_committer freebsd_triage 2006-12-23 20:58:00 UTC
State Changed
From-To: feedback->closed

Submitter timeout