New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patching fails on FreeBSD #414
Comments
opam is doing
Maybe |
Hi Thomas, According to You can use:
Hopefully it will be fixed soon! :) Best, On 25-01-13 17:47, Thomas Gazagnaire wrote:
|
Note sure about that, but if maybe if you stick to posix you can replace the |
I've added @sanmai-NL can you test with the latest trunk ? I don't have any BSD box to test whether this works or nor. |
It does not work, or so it seems: opam install ocsigenserverThe following actions will be performed:
=-=-= ocamlfind.1.3.3 =-=-= =-=-= cryptokit.1.6 =-=-= =-=-= pcre-ocaml.6.2.5 =-=-= =-=-= react.0.9.4 =-=-= =-=-= sqlite3-ocaml.2.0.3 =-=-= =-=-= ssl.0.4.6 =-=-= =-=-= lwt.2.4.3 =-=-= =-=-= ocamlnet.3.6.0 =-=-= Due to some errors while processing ocamlnet.3.6.0, the following actions will NOT be proceeded:
==== ERROR [while installing ocamlnet.3.6.0] ==== |
Do you have the latest version of OPAM ? |
I have done update / upgrade again before, the result was something On 28-01-13 17:16, Thomas Gazagnaire wrote:
|
How did you install OPAM at the first place ? The fix is in the git repository. I'll try to make a 0.9.2 release at the end of the week. |
I just downloaded a tarball. |
So then you can try to use https://github.com/OCamlPro/opam/archive/master.tar.gz |
Using the git repo tarball, 'opam install ocsigenserver' hangs like this: After pressing Enter: No file found--skip this patch? [n] y Then it continues. But now a necessary patch isn't being applied, is it? This is the standard "patch" utility interface: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/patch.html Is there a POSIX compliance switch perhaps? As a last resort, is it possible to use platform-specific command line parameters to "patch"? Is there a way to display the full patch command that is used? Then I can debug the problem on this FreeBSD server myself. |
Hum ... if you give me the command to run to test whether a patch can apply at depth n, I can implement that, this way it would be quicker. |
If I could give you the command it would certainly be quicker, but that is not the case. According to the FreeBSD manpage that I referred to, the form of the command line parameters to "patch" is either "[origfile [patchfile]]", or no parameters and piping the patchfile via stdin. Also the -f option must be prior to the filenames or after the filenames and a " + ". I am not experienced with this so I can only offer you the documentation or to test it out in practice. |
ok I've got access to freeBSD machine and it seems that |
Thanks! On 29-01-13 16:54, Thomas Gazagnaire wrote:
|
I'm trying to add FreeBSD to the Jenkins build pool, except that the Jenkins port appears broken atm unfortunately. I'll work through it soon and hopefully the quality of OPAM ports should increase (/cc @pgj ) On 29 Jan 2013, at 15:55, Sander M notifications@github.com wrote:
|
FreeBSD 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0 r243333: Tue Nov 20 16:34:30 CET 2012 /usr/obj/usr/src/sys/MYKERNEL amd64
opam update
Synchronizing /root/.opam/repo/default with http://opam.ocamlpro.com.
Everything is up-to-date.
opam upgrade
Already up-to-date.
opam install ocsigenserver
The following actions will be performed:
4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] Y
=-=-= dbm.1.0 =-=-=
The archive for dbm.1.0 is in the local cache.
Extracting /root/.opam/archives/dbm.1.0+opam.tar.gz.
Applying hasgotfix.patch.
=-=-= ocamlnet.3.6.0 =-=-=
The archive for ocamlnet.3.6.0 is in the local cache.
Extracting /root/.opam/archives/ocamlnet.3.6.0+opam.tar.gz.
Applying ocamlnet-ocaml4.diff.
Due to some errors while processing { ocamlnet.3.6.0, dbm.1.0 }, the following actions will NOT be proceeded:
==== ERROR [while installing dbm.1.0] ====
Internal error:
Application of /root/.opam/system/build/dbm.1.0/hasgotfix.patch failed: can not determine the correct patch level.
==== ERROR [while installing ocamlnet.3.6.0] ====
Internal error:
Application of /root/.opam/system/build/ocamlnet.3.6.0/ocamlnet-ocaml4.diff failed: can not determine the correct patch level.
'opam install ocsigenserver' failed.
patch -v
Patch version 2.1
The text was updated successfully, but these errors were encountered: