My secondary issue was a product of not cleaning the source code before attempting to re-build opentracker. This is not a packaging issue. Simply applying the patch provided in my first comment to this PKGBUILD should result in a successful build (as of today at least)
Search Criteria
Package Details: opentracker-git r583.6c60309-1
Package Actions
| Package Base: | opentracker-git |
|---|---|
| Description: | Opentracker is a open and free bittorrent tracker project. It aims for minimal resource usage and is intended to run at your wlan router. |
| Upstream URL: | http://erdgeist.org/arts/software/opentracker/ |
| Category: | network |
| Licenses: | |
| Submitter: | TheCreeper |
| Maintainer: | TheCreeper |
| Last Packager: | TheCreeper |
| Votes: | 17 |
| First Submitted: | 2013-06-01 23:56 |
| Last Updated: | 2014-10-09 20:15 |
Latest Comments
Comment by ub1quit33
Comment by ub1quit33
The CC environment variable was not being read due to incorrect syntax. The patch below fixes that particular issue, but has merely exposed a new build failure. The new failure and the edits to the PKGBUILD are included below.
/usr/lib/libowfat.a(io_sendfile.o): In function `io_sendfile':
(.text+0x5a): warning: sendfile is not portable
/opt/diet/lib-x86_64/libc.a(sprintf.o): In function `sprintf':
(.text+0x83): warning: warning: Avoid *sprintf; use *snprintf. It is more secure.
opentracker.debug.o: In function `drop_privileges':
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:535: warning: warning: you used setegid without including <unistd.h>
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:535: warning: warning: you used setegid without including <unistd.h>
/opt/diet/lib-x86_64/libc.a(vsnprintf.o): In function `vsnprintf':
(.text+0x8d): warning: warning: the printf functions add several kilobytes of bloat.
/opt/diet/lib-x86_64/libc.a(stderr.o): In function `__fflush_stderr':
(.text+0x8): warning: warning: your code uses stdio (7+k bloat).
opentracker.debug.o: In function `scan_ip6_port':
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:354: undefined reference to `__ctype_b_loc'
opentracker.debug.o: In function `set_config_option':
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:347: undefined reference to `__ctype_b_loc'
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:351: undefined reference to `__strdup'
opentracker.debug.o: In function `parse_configfile':
/usr/local/src/opentracker-git/opentracker-git/src/opentracker-git/opentracker.c:389: undefined reference to `__ctype_b_loc'
collect2: error: ld returned 1 exit status
Makefile:71: recipe for target 'opentracker.debug' failed
--- PKGBUILD.orig 2014-10-09 13:15:38.000000000 -0700
+++ PKGBUILD 2015-03-17 10:04:27.006056301 -0700
@@ -85,8 +85,6 @@
make LIBOWFAT_HEADERS="/usr/include" \
LIBOWFAT_LIBRARY="/usr/lib" \
- #LIBOWFAT_HEADERS="../libowfat" \
- #LIBOWFAT_LIBRARY="../libowfat" \
FEATURES="-DWANT_SYSLOGS -DDEBUG_HTTPERROR" \
CC="/opt/diet/bin/diet gcc"
}
Comment by ub1quit33
This package currently fails to build. Is this possibly related to the recent changes made to meet PKGBUILD compliance?
/usr/lib/libowfat.a(byte_zero.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/libowfat.a(byte_diff.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/libowfat.a(scan_uint.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/libowfat.a(scan_ushort.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/libowfat.a(scan_ulonglong.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/libowfat.a(scan_fromhex.o):(.note+0x10): more undefined references to `__you_tried_to_link_a_dietlibc_object_against_glibc' follow
collect2: error: ld returned 1 exit status
Makefile:68: recipe for target 'opentracker' failed
Comment by fatalhalt
Hello,
libowfat conflicts with postfix, how can one modify this PKGBUILD to statically link and compile libowfat against opentracker executable?
Comment by TheCreeper
I think it meets the guidelines now. I may have missed something so please tell if I did.
Comment by vorbote
Not wuite fixed yet. Please read https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
Comment by TheCreeper
Should be fixed now.
Comment by alucryd
As mentioned below, this PKGBUILD is _wrong_. Please rewrite it using VCS in source array and check git instead of dling a master tarball, and use libowfat from AUR.
Comment by moebius_eye
Your package is wrong in a number of ways.
1)
libowfat is available via aur.
You should simply add it as a dependency.
If it wasn't, it isn't a good idea to compile it along with your package.
If you're going to go into the trouble of creating a script to compile a dependency,
it might as well be available to others as another PKGBUILD.
2)
Packages named like "package-git" should use the git repositories!
Also, I added architecture "i686", I think it's safe to say that this can be compiled
on any architecture that can compile the dependencies., though.
Comment by kritztopf
Here is an updated version of the PKGBUILD which utilizes a package function and adds dietlibc to makedepends:
http://ix.io/5MX
Comment by abique
Maybe hefur will do the job for you: https://aur.archlinux.org/packages.php?ID=60283
Comment by powerswitch
opentracker runs, but no network access possible...
"Can't open accesslist file: (null) (but will try to create it later, if necessary and possible).
PWD: (null)"
What did I do wrong?
Comment by mhspace
I flagged packages out-of-date because it don't contains systemd .service file.
The .service can be taken here https://aur.archlinux.org/packages.php?ID=24021
Comment by bluewind
export CC="/opt/diet/bin/diet gcc"
should help
Comment by FiX
Cannot build.
Here is the log: http://pastebin.com/raw.php?i=GpfeaVxx
Comment by sl1pkn07
oks. try remove dietlibc package and recompile libowfat (whit comment makedepends PKGBUILD). and try recompile opentracker
fix all
greetings
Comment by fauno
Comment by abique
I could not try it as dietlibc-cvs doesn't build on x86_64
Comment by fauno
abique, it works good with nobody and chrooting to /var/empty ;)
Comment by abique
Maybe a user opentracker could be created ?
Anonymous comment
Just FYI, it compiles fine on my main desktop, which is also running arch, so I created the package there and transferred it manually for install, but just a heads up that there must be some build dependencies that aren't listed here that reside outside of base-devel.
Anonymous comment
Getting the following error from building:
http://pastebin.com/jFKEgDar
I'm using a fresh copy of Archlinux with base and base-devel packages installed, nothing more. What could I be missing?
Comment by fauno
Modified your PKGBUILD a bit :)
https://projects.parabolagnulinux.org/abslibre.git/tree/social/opentracker
Comment by Pierre
This pacakge builds the latest cvs snapshot. How can this be outdated? ipv6 can simply be enabled by modifying the Makefile.
Anonymous comment
Same as opentracker but configured to allow any torrent. Also removed the statistics restriction to 127.0.0.1 because it is not handled properly.
Anonymous comment
package too old, please update and please provide ipv6 support