On Sun, 2011-07-24 at 12:18 +0100, Ximin Luo wrote:
> On 24/07/11 12:10, Marco Calamari wrote:
> > On Sun, 2011-07-24 at 11:35 +0100, Ximin Luo wrote:
> >> On 24/07/11 11:28, Marco Calamari wrote:
> >
> > ...
> >
> >>>>> line 78 in build-freenet-daemon.sh:
> >>>>> - change "git submodule update" to "git submodule update --init"
> >>>>>
> >>>>> lemme know if it works and i'll push the fix.
> >>>
> >>> Need to download all dependencies you list, but the last two
> >>> (experimental) was downloaded by hand.
> >>> Add this unlisted dependency libservice-wrapper-j
> >>>
> >>
> >> really? freenet-daemon builds-depends on service-wrapper, which depends on
> >> libservice-wrapper-{java,jni} - you shouldn't need to download the latter
> >> two
> >> explicitly, apt-get should do this automatically.
> >
> > Remember, I started from an Ubuntu 11.04 with no (not yet) any
> > development system (no git, nothing). That was was.
> > apt-get told me
>
> what did apt-get tell you? i can't help you if you keep giving me incomplete
> information like this.
Mhhhh... let me restart and present me
I'm an old time programmers that still use cvs, not svn, not git
Never seen a Freenet debian package before.
As a long runner of freenet I was interested to use
a debianized freenet.
So your mail point me there
https://github.com/freenet/debian-staging
with no further instruction. from there I clicked
download and get a tarball with a small README
Started from there
Build-Depends: cdbs, debhelper (>= 7), javahelper, quilt, adduser (>=
3.11),
git-core, default-jdk, ant, ant-optional, ant-contrib, jflex, junit4,
libcommons-collections3-java, libcommons-compress-java, libdb-je-java,
libecj-java, libgwt-dev-java, libservice-wrapper-java, service-wrapper
Apt-getting listed dependencies showed that
last two was not in the repository, so I loaded it by hand; to do this
I need to load also the jni dependency I tell about.
If something different need to be done to build the freenet daemon,
it is probably useful not only have the script stop, but also
have some explanation about the right path to follow.
This of course if putting newbie on the right path is worthwhile
in this context.
I need no more help; my daemon is running with minor problems and I'll
use it for a while, reverting back to the hand-installed one if
major problems will happen.
Thanks a lot for your work. Marco
Thanks a lot
> >
> >>> Doing only the suggested correction gave this error
> >>>
> >>> fatal: Not a git repository (or any of the parent directories): .git
> >>> fatal: Not a git repository (or any of the parent directories): .git
> >>> build freenet-daemon
> >>> - clean previous build products...
> >>> - update submodules...
> >>> fatal: Not a git repository (or any of the parent directories): .git
> >>>
> >>> To complete the process and start an apparently working daemon
> >>>
> >>> I made a big test matrix: here the result
> >>> 1) untar a fresh copy at the user main dir level
> >>> 2) remove any .git directory
> >>
> >> untar a fresh copy of what? you shouldn't need to untar anything if you
> >> clone
> >> debian-staging...
> >
> > Untar a fresh copy of freenet-debian-staging-aa554d0.tar.gz
> > Didn't work untarring it in a purposely-made directory, so I need
> > to do it in my home
> >
>
> you need to run it from a cloned repo, not an extracted tarball. i'll update
> the script to forbid this.
>
> not sure why you thought it would be a good idea to download a tarball after
> being informed that the build script uses the "git" command...
>
> >>> 3) do a git init
> >>> 4) do a git pull git://github.com/freenet/debian-staging.git
> >>> 5) make the correction you suggest
> >>> 6) run the corrected script from the parent directory
> >>>
> >>
> >> what parent directory is this? build-freenet-daemon.sh is meant to be run
> >> from
> >> its own directory, i.e. the top repository directory of debian-staging.
> >
> > Not understandable by me, sorry. Nothing similar to "debian staging"
> > here
> >
>
> use "git clone", like the steps below:
>
> >> the steps I tried:
> >>
> >> $ git clone git://github.com/freenet/debian-staging.git
> >> $ cd debian-staging
> >> $ ./build-freenet-daemon.sh
> >>
> >> this should work if you have all build-dependencies installed
> >> (Build-Depends:
> >> in debian/control)
> >>
> >>> Lot of unusual messages come from initializing freenet, bot on log and
> >>> from user interface.
> >>>
> >>> I'll prepare another post if useful; in the meantime what is the
> >>> status of non-sun Java compatibilities? Being my present daemon
> >>> compiled with
> >>>
> >>
> >> works fine on openJDK, personally i recommend using that (as it's the
> >> official
> >> JDK of debian.)
> >
> > Naive question; why running fred is telling me that jvm is sun 1_6_0_22?
> >
>
> no idea. don't worry about it.
>
> > Thanks again. Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20110724/3d7d0aca/attachment.pgp>