From owner-freebsd-ports@FreeBSD.ORG Sun Jan 23 08:25:51 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F193E1065672 for ; Sun, 23 Jan 2011 08:25:51 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2F08FC0A for ; Sun, 23 Jan 2011 08:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=8fDbPlISQm1FSzmneySAv3INCqA8abkEIJQjRLQirAg=; b=Bzt/gIlr6fCA1PW8AT9NAumNhPNI4ulJIX8F/OuFCYRtyvy3477Bp0W3lnDymxOFoGqGWYG3ffXz0XUZbZJwew6Qs61jVSA2CAxt68q3O7UA2BFRrT+jGQorKNdyQtIYh1iJkh+iKbq9VT0Y3TcMz+CnfARJ4P8ZtAMW1KIHMgdSYTNEn2v4cZTHjtW69A7xJoK5MTbrkVEKAkNqcanNb1ugmW5v8J6VFqrrE0gBUFV+7E1CcK5FWxN80H+oZLq78AhlfmKeahAFeLXbR6jw15X90GkBfH2Z771HHWL8uedy7kmPM6ymN/aBqSucROIYWD1LoO6fplh47mjzRVzCBQ==; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1PgvGg-00034x-11; Sun, 23 Jan 2011 11:25:50 +0300 Date: Sun, 23 Jan 2011 11:25:47 +0300 From: Eygene Ryabinkin To: Thomas Dettbarn Message-ID: References: <4D3BD7E3.5040802@dettus.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iAL9S67WQOXgEPD9" Content-Disposition: inline In-Reply-To: <4D3BD7E3.5040802@dettus.net> Sender: rea@codelabs.ru Cc: freebsd-ports@freebsd.org Subject: Re: how do i suggest a program for your ports collection? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 08:25:52 -0000 --iAL9S67WQOXgEPD9 Content-Type: multipart/mixed; boundary="i3lJ51RuaGWuFYNw" Content-Disposition: inline --i3lJ51RuaGWuFYNw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thomas, good day. Sun, Jan 23, 2011 at 08:25:23AM +0100, Thomas Dettbarn wrote: > is there some formal way of suggesting a program for your ports > collection? Yes, it is described in http://www.freebsd.org/doc/en/books/porters-handbook/book.html#PORTING-SU= BMITTING > The thing is, i wrote this hex editor:=20 > http://www.freshmeat.net/projects/dhex which i am rather proud of. > and now i would like to spread it. You should create the port by yourself and become the maintainer or you should find some other person who will do it (and become the maintainer of the FreeBSD port for your software). > however, i am an openbsd user. so i don't know how to exactly make a=20 > port for freebsd. There is a Porter's Handbook, http://www.freebsd.org/doc/en/books/porters-handbook/book.html but if you don't want to port the stuff (or have not enough time), I should say that having used DHEX for a couple of minutes I should say that it is a good tool for my ocassional hex-related work, so I can port and maintain it or I can help you to port it. And may I also suggest the attached patch to the DHEX Makefile: it will allow people to set their own values of CC, CFLAGS, CPPFLAGS and LDFLAGS. For example, FreeBSD has the stock settings for the CFLAGS and currently we can choose the compilers to be at least gcc or clang. The stuff is described in http://www.freebsd.org/doc/en/books/porters-handbook/book.html#DADS-CC and http://www.freebsd.org/doc/en/books/porters-handbook/book.html#DADS-CFLAGS Hope that sheds some light on the topic. And the additional nit: compiling dhex on the FreeBSD 9.x shows some signedness warnings: {{{ output.c: In function 'printmainmenu': output.c:410: warning: pointer targets in initialization differ in signedne= ss output.c:411: warning: pointer targets in initialization differ in signedne= ss output.c:412: warning: pointer targets in initialization differ in signedne= ss output.c:413: warning: pointer targets in initialization differ in signedne= ss output.c:414: warning: pointer targets in initialization differ in signedne= ss output.c:415: warning: pointer targets in initialization differ in signedne= ss output.c:416: warning: pointer targets in initialization differ in signedne= ss output.c:417: warning: pointer targets in initialization differ in signedne= ss output.c:418: warning: pointer targets in initialization differ in signedne= ss output.c:419: warning: pointer targets in initialization differ in signedne= ss output.c:422: warning: pointer targets in initialization differ in signedne= ss output.c:423: warning: pointer targets in initialization differ in signedne= ss output.c:424: warning: pointer targets in initialization differ in signedne= ss output.c:425: warning: pointer targets in initialization differ in signedne= ss output.c:426: warning: pointer targets in initialization differ in signedne= ss output.c:427: warning: pointer targets in initialization differ in signedne= ss output.c:428: warning: pointer targets in initialization differ in signedne= ss output.c:429: warning: pointer targets in initialization differ in signedne= ss output.c:430: warning: pointer targets in initialization differ in signedne= ss output.c:431: warning: pointer targets in initialization differ in signedne= ss main.c: In function 'main': main.c:450: warning: pointer targets in passing argument 3 of 'gotomask' di= ffer in signedness main.c:459: warning: pointer targets in passing argument 4 of 'searchmask' = differ in signedness main.c:509: warning: pointer targets in passing argument 3 of 'searchfor' d= iffer in signedness configfile.c: In function 'readconfigfile': configfile.c:183: warning: pointer targets in passing argument 2 of 'getcol= ors' differ in signedness configfile.c:184: warning: pointer targets in passing argument 2 of 'config= keytab' differ in signedness }}} I am not sure if they are harmful or harmless, but I usually it worth to consider compiler's warnings. Don't know if you had seen them on the systems you were testing/using DHEX, so reproducing them there. --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --i3lJ51RuaGWuFYNw Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="dhex-Makefile.diff" Content-Transfer-Encoding: quoted-printable --- Makefile.orig 2011-01-23 11:09:21.676581518 +0300 +++ Makefile 2011-01-23 11:18:17.417579047 +0300 @@ -1,11 +1,12 @@ -CC=3D gcc -LDFLAGS=3D -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/l= ib/ncurses -CPPFLAGS=3D -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/= usr/local/include/ncurses -CFLAGS=3D -O3 -Wall -std=3Dc99=20 +CC?=3D gcc +LDFLAGS?=3D -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/= lib/ncurses +CPPFLAGS?=3D -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I= /usr/local/include/ncurses +CFLAGS?=3D -O3 +CFLAGS+=3D -Wall -std=3Dc99 #CFLAGS+=3D -ffunction-sections -fdata-sections #LDFLAGS+=3D --gc-sections=20 LIBS=3D -lncurses -DESTDIR=3D /usr/local/bin +DESTDIR?=3D /usr/local/bin =20 OFILES=3Dbuffers.o input.o output.o machine_type.o main.o menu.o ui.o hexc= alc.o search.o gpl.o configfile.o markers.o =20 --i3lJ51RuaGWuFYNw-- --iAL9S67WQOXgEPD9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EAREIAAYFAk075gsACgkQFq+eroFS7Ps+HQD+MzBokpdOpkTr7remjd1Qj9pz nkpn3cfckGWwi4ZlmgUA/if3z5zxKjiwI/rOxZC+CI0stR8ttME0NjN0+EL1gMII =6GuY -----END PGP SIGNATURE----- --iAL9S67WQOXgEPD9--