Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2011 11:25:47 +0300
From:      Eygene Ryabinkin <rea@freebsd.org>
To:        Thomas Dettbarn <dettus@dettus.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: how do i suggest a program for your ports collection?
Message-ID:  <HAK/7xvcufO0E8G/8GTEuZGSzBY@QsmfhJNucgI88DfvPJdT1/nyboE>
In-Reply-To: <4D3BD7E3.5040802@dettus.net>
References:  <4D3BD7E3.5040802@dettus.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HAK/7xvcufO0E8G/8GTEuZGSzBY>