Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Nov 2014 21:39:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193134] [NEW PORT] net-mgmt/seafile: Framework for writing networked applications
Message-ID:  <bug-193134-13-HscRC9AJKm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193134-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193134-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193134

--- Comment #27 from Jingfeng Yan <yan_jingfeng@yahoo.com> ---
(In reply to John Marino from comment #25)
> now that everything is cleaned up per request, the actual code has come o=
ut.
> e.g.
>=20
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/fileserver \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/fileserver
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seaf-fsck \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seaf-fsck
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seafserv-gc \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seafserv-gc
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seaf-fuse \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seaf-fuse
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seaf-migrate \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seaf-migrate
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seaf-server \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seaf-server
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seaf-server-init \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seaf-server-init
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seafile-controller \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seafile-controller
> X	${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/seafserv-tool \
> X		${STAGEDIR}${WWWDIR}/seafile/bin/seafserv-tool
>=20
>=20
> I see you are installing programs that are already in $STAGEDIR, apparent=
ly
> for the purpose having two names for the same program.  Normally sym links
> used for this.
>=20
> try this:
> (cd ${STAGEDIR}${PREFIX}/bin/seafile && \
>     ${LN} -s ../fileserver && \
>     ${LN} -s ../seaf-fsck && \
>     ..etc)
>=20
> You could also use .for/.endfor loops but I think the above is more clear
>=20
> This assumes having installing the same program in 2 places is really
> desired.  Is it?  Why are these being put in seafile/bin ?

The ccnet and seafile build have both cli-, and server binaries, and other
libs, etc.  Only server binaries are copied to ${WWWDIR}/seafile/bin.  When=
 I
start porting them, I am using symbolic links.  However, it gave me a lot of
strange errors.  After some debugging, I found that if I use symblic link, =
it
will find it real path.  Then, using the real path to determine the seafile
installation path by go up directory several levels.  In the /proc file or
system, it records the server processes running from the real path.  If I
understand correctly, loader resolves from symbolic links to real path (If =
this
is not true, we can come out other solution).=20=20

Overall, somehow when I start symblic link
"${WWWDIR}/seafile/bin/seafserv-tool", it will directly show I am running
${prefix}/bin/seafserv-tool.  seafile-tool then can not figure out where is
seafile location by going up.

When I look at the released seafile server pkg, they don't do installation,=
 and
run from where it is extract.  All the bin, and lib are under somewhere sim=
ilar
to ${WWWDIR}/seafile.  In other works, even if you have libz, ... in Linux
system, all the libs are duplicated.=20=20

Although I don't prefer to the above solution, I failed when not copying all
bins.  So, I decided duplicate as  small as possible, and copy bins only.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193134-13-HscRC9AJKm>