Bug 163717 - [maintainer update] patch to make devel/ocaml-react work with ocamlfind
Summary: [maintainer update] patch to make devel/ocaml-react work with ocamlfind
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: Michael Scheidell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 14:40 UTC by jaapb
Modified: 2012-01-07 18:20 UTC (History)
0 users

See Also:


Attachments
file.diff (239 bytes, patch)
2011-12-30 14:40 UTC, jaapb
no flags Details | Diff
pr_163717_devel_ocaml-react.txt (1.65 KB, text/plain)
2012-01-04 13:24 UTC, Michael Scheidell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaapb 2011-12-30 14:40:12 UTC
I've forgotten to send in a file with my original submission of this port (sorry!) - this means that ports that depend on ocaml-react will not be able to find it. (this affects at least devel/ocaml-lwt).

Fix: Save the attached file as files/patch-src_META of the port directory and the problem should be solved.

Patch attached with submission follows:
How-To-Repeat: Try to compile devel/ocaml-lwt (the version submitted in ports/163276); this should not work.
Comment 1 Michael Scheidell freebsd_committer freebsd_triage 2011-12-31 20:42:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->scheidell

I'll take it.
Comment 2 Michael Scheidell 2012-01-04 13:24:48 UTC
Sorry this took so long

Had two issues.
#1, if WITHOUT_X11 is defined in /etc/make.conf or make env, ocaml-react try to reinstall ocaml, even if it was installed 
with its -notk cousin:

===>   ocaml-react-0.9.2_1 depends on package: ocaml>=3.11 - not found
===>    Verifying install for ocaml>=3.11 in /usr/ports/lang/ocaml
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for ocaml-notk-3.12.1

with slight patch to Makefile, this is fixed (is this ok?)


===>   ocaml-react-0.9.2_1 depends on package: ocaml-notk>=3.11 - found
/bin/mkdir -p /usr/local/lib/ocaml/site-lib
===>  Patching for ocaml-react-0.9.2_1
===>   ocaml-react-0.9.2_1 depends on package: ocaml-notk>=3.11 - found
===>  Applying FreeBSD patches for ocaml-react-0.9.2_1

Issue #2: if I do NOT patch pkg-plist, these files are left over after port:

=== Checking filesystem state after all packages deleted
351 	================================================================
352 	list of extra files and directories in / (not present on clean system but present after everything was deinstalled)
353 	6150776 16 drwxr-xr-x 3 root wheel 7680 Jan 3 01:43 usr/local/lib/ocaml
354 	6209671 4 drwxr-xr-x 2 root wheel 512 Jan 3 01:42 usr/local/lib/ocaml/site-lib

if I ~DO~ patch it, build script shows me this warning: (which I think we can safely ignore:

=== Checking filesystem state
333 	list of files present before this port was installed but missing after it was deinstalled)
334 	./usr/local/lib/ocaml/site-lib missing

Jaap:  are my patches ok?

Gabor:  if Jaap agrees, is it ok to commit? given this (warning)?

=== Checking filesystem state
333 	list of files present before this port was installed but missing after it was deinstalled)
334 	./usr/local/lib/ocaml/site-lib missing

These files WERE NOT PRESENT before the port installed;

portinstall -pP lang/ocaml
scanner.secnap.net# ls -l /usr/local/lib/ocaml/site-lib
ls: /usr/local/lib/ocaml/site-lib: No such file or directory


-- 
Michael Scheidell, CTO
SECNAP Network Security Corporation
(561) 999-5000 scheidell@secnap.net
http://www.secnap.com/

______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.spammertrap.com/
______________________________________________________________________  
  
Comment 3 Michael Scheidell freebsd_committer freebsd_triage 2012-01-07 17:17:09 UTC
State Changed
From-To: open->feedback

Waiting on maintainers approval on modified patch
Comment 4 Michael Scheidell freebsd_committer freebsd_triage 2012-01-07 17:57:00 UTC
State Changed
From-To: feedback->closed

Committed with changes, Thanks
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-01-07 18:17:19 UTC
scheidell    2012-01-07 18:17:09 UTC

  FreeBSD ports repository

  Modified files:
    devel/ocaml-react    Makefile pkg-plist 
  Added files:
    devel/ocaml-react/files patch-src_META 
  Log:
  - patch to make devel/ocaml-react work with ocamlfind [1]
  - Add check for X11 so ocaml-nox11 is used as dependency if WITHOUT_X11 is defined [2]
  
  PR:             ports/163717 [1]
  Submitted by:   jaapb@kerguelen.org (maintainer) [1]
  Reviewed by:    scheidell [2]
  Approved by:    jaapb@kerguelen.org (maintainer), gabor (mentor)
  
  Revision  Changes    Path
  1.3       +6 -0      ports/devel/ocaml-react/Makefile
  1.1       +7 -0      ports/devel/ocaml-react/files/patch-src_META (new)
  1.3       +1 -0      ports/devel/ocaml-react/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"