AR libtor.aclang: error: no such file or directory:'/var/tmp/dist/libevent/lib/.libs/libevent.a'
I suspect that's due to @dgoulet's
c618c4f2. I am not sure whether we are
supposed to adapt things in Tor Browser land instead of whether the
change is an actual tor issue. If the former, please move the ticket to
our tor-browser-build repo.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I am not sure whether we are supposed to adapt things in Tor Browser land instead of whether the change is an actual tor issue
@dgoulet Is this an intentional breaking change? We can modify the Tor Browser build config if this is the new, expected, location, but we won't be sad if tor supports both locations for libevent, too.
It is simply the difference between the dist tarball and the git repository. In other words, autotool puts the .a in different places depending on those.
Woa wait... I was mistaken. The dist tarball does use .libs/libevent.a ... so can I ask what are you using for libevent here? I don't even see a lib/ in the git repo or the tarball?
Okay, we build libevent from the source git tag (autogen.sh, configure, make, and make install) so that it ends up with the usual directory structure where we set --prefix to the libevent dir (= the root dir) and have bin, include, and lib directories there. Then we zip the result up and use it in the tor build.
There we extract the libevent artifact and point libeventdir to the root of it. When compiling tor we pass --with-libevent-dir="$libeventdir". That's it (oh, and we compile libevent (among other flags) with --enable-static-libevent, in case that needs extra-mentioning).
Ok! So then I think we can also look in $libeventdir/libevent.a as well so both are supported to use the git/tarball or installed library. I'll come up with a fix.
Basically, because the git repository has no lib/ or that the libevent.a is not put in the root of the repo, we can't use --with-libevent-dir=/path/to/git/root.
It works in your setup because you have a lib/ so unless we change the configure.ac to be clever and try both locations (as in the .libs/ as well), we are stuck.
I will revert the fix and put it back to look for libevent.a directly so your setup works and for now we'll ask people to use a "make install" version of libevent to build properly or symlink the libevent.a...