Bug 137850 - [PATCH] devel/openocd: BUMP PORTREVISION
Summary: [PATCH] devel/openocd: BUMP PORTREVISION
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcelo Araujo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-16 18:40 UTC by Sylvio César Teixeira Amorim
Modified: 2009-08-17 00:21 UTC (History)
1 user (show)

See Also:


Attachments
openocd-0.1.0_1.patch (1.63 KB, patch)
2009-08-16 18:40 UTC, Sylvio César Teixeira Amorim
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvio César Teixeira Amorim 2009-08-16 18:40:05 UTC
- BUMP PORTREVISION

There is an update in libmicrohttpd port. In favor of the latest update of libmicrohttpd (ports/137812).
Please, here is an update in your port and I'd like to know your opinion about it.

You can see log in mine tinderbox:
http://www.scjamorim.org/Home/openocd-0.1.0_1.log

Port maintainer (tomek.cedro@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-16 18:40:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

araujo@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-16 18:40:20 UTC
Maintainer of devel/openocd,

Please note that PR ports/137850 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137850

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-16 18:40:22 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 CeDeROM 2009-08-16 21:06:01 UTC
Hello guys!

Thank You for the bump request! I have tried method proposed by
Sylvio, but it does not provide successful build of OpenOCD with
microhttpd functionality - below is the explanation:

1. Libmicrohttp version has now moved to 0.4.2 and I verify it builds
and installs fine with patch provided by Sylvio.

2. To use builtin server in OpenOCD, configuration option should be
enabled and so this line should be uncommented in the port Makefile:
HTTPD "Enable builtin httpd server" off

3. This line was still commented out even after applying the patch, so
the package has been built without httpd functionality.

4. Even after enabling httpd functionality, the new version of
libmicrohttpd unfortunately does not help to build the port correctly:

# ls /var/db/pkg|grep httpd
libmicrohttpd-0.4.2

# make
(...)
cc  -O2 -fno-strict-aliasing -pipe -I/usr/local/include
-L/usr/local/lib -Wall -Wstrict-prototypes    -o openocd
openocd-main.o openocd-openocd.o ../src/xsvf/libxsvf.a
../src/target/libtarget.a ../src/jtag/libjtag.a
../src/helper/libhelper.a ../src/server/libserver.a
../src/helper/libhelper.a ../src/flash/libflash.a
../src/target/libtarget.a ../src/pld/libpld.a -lftdi -lusb  -lusb
-lmicrohttpd -lftdi -lusb
../src/server/libserver.a(httpd.o)(.text+0x6f7): In function `handle_reques=
t':
: undefined reference to `loadFile'
gmake[3]: *** [openocd] Error 1
gmake[3]: Leaving directory `/usr/ports/devel/openocd/work/openocd-0.1.0/sr=
c'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/openocd/work/openocd-0.1.0/sr=
c'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/openocd/work/openocd-0.1.0'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/devel/openocd.
*** Error code 1

5. It looks like a bug in the source code, so the sources need to be
patched, however....

6. There was recently OpenOCD version 0.2.0 released to the public. It
was too early that I could modify the sources to fully supoprt
FreeBSD, but I am working on its port, it should be available in a few
days, maybe hours from now on. I will create current 0.2.0 port, and
then we can look at the httpd functionality already on the 0.2.0
release - then we can contribute supoprt for FreeBSD to the current
OpenOCD SVN trunk and make it fully functional on our platform :-)

Best regards,
Tomek


On Sun, Aug 16, 2009 at 7:40 PM, Edwin Groothuis<edwin@freebsd.org> wrote:
> Maintainer of devel/openocd,
>
> Please note that PR ports/137850 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
> =C2=A0 =C2=A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/137850
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
>

--=20
CeDeROM, http://www.tomek.cedro.info
Comment 5 Marcelo Araujo freebsd_committer freebsd_triage 2009-08-17 00:21:02 UTC
State Changed
From-To: feedback->closed

Maintainer disagree with this update, thanks both to work together 
around this PR.