# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= libelf VERSION= 0.8.13 REVISION= 2 KEYWORDS= devel VARIANTS= std SDESC[std]= Public ELF file access library similar to Solaris HOMEPAGE= https://github.com/Distrotech/libelf CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= GITHUB/Distrotech:libelf:7e0b504 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[std]= set primary dev OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none LICENSE= LGPL20+:primary LICENSE_TERMS= primary:{{WRKDIR}}/TERMS LICENSE_FILE= LGPL20+:{{WRKSRC}}/COPYING.LIB LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/lib/libelf.h LICENSE_SCHEME= solo FPC_EQUIVALENT= devel/libelf MUST_CONFIGURE= gnu CONFIGURE_ARGS= --enable-shared --enable-extended-format --enable-sanity-checks --disable-compat --disable-nls post-install: # install our PIC library ${INSTALL_DATA} ${WRKSRC}/lib/libelf_pic.a \ ${STAGEDIR}${PREFIX}/lib/ post-build: # assemble PIC library (cd ${WRKSRC}/lib &&\ ${AR} -crv libelf_pic.a *.os &&\ ranlib libelf_pic.a) [FILE:244:descriptions/desc.primary] This is the public release of libelf, a free ELF object file access library. If you have problems with applications that use libelf and work with the commercial (SVR4, Solaris) version but not with this one, please contact [the libelf author]. [FILE:111:distinfo] 9204f12735e66fc7d037936f2dae146d00172c567d591ab27ca4cce22781dcd9 144324 Distrotech-libelf-7e0b504.tar.gz [FILE:16:manifests/plist.primary] lib/libelf.so.0 [FILE:130:manifests/plist.dev] include/libelf/ elf_repl.h gelf.h libelf.h nlist.h sys_elf.h lib/ libelf.a libelf.so libelf_pic.a lib/pkgconfig/libelf.pc [FILE:3622:patches/patch-configure] Description: Adapt the configure script to FreeBSD. - use the elf.h header; - shorten the library .so file name; - honor LDFLAGS when linking; - do not link against or depend on libc. Forwarded: not-needed Author: Kevin Van Maren , Maxim Sobolev , Peter Pentchev Ying-Chieh Liao Last-Update: 2009-11-20 --- configure.orig 2014-01-26 00:46:23 UTC +++ configure @@ -734,7 +734,7 @@ cat > conftest.$ac_ext << EOF #line 735 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes @@ -1114,6 +1114,7 @@ else cat > conftest.$ac_ext < #include #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -1146,7 +1147,7 @@ EOF fi -for ac_hdr in unistd.h stdint.h fcntl.h +for ac_hdr in unistd.h stdint.h fcntl.h elf.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -1483,8 +1484,9 @@ else cat > conftest.$ac_ext < #include -main() +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); @@ -1522,8 +1524,9 @@ else cat > conftest.$ac_ext < #include -main() +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); @@ -1561,8 +1564,9 @@ else cat > conftest.$ac_ext < #include -main() +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); @@ -1600,8 +1604,9 @@ else cat > conftest.$ac_ext < #include -main() +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); @@ -1640,8 +1645,9 @@ else cat > conftest.$ac_ext < #include -main() +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); @@ -2258,6 +2264,7 @@ else The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ +#include #include #include #include @@ -3281,7 +3288,7 @@ else fi case "$host" in - *-linux*|*-gnu*) + *-linux*|*-gnu*|*-dragonfly*|*-freebsd*|*-netbsd*|*-solaris*|*-midnight*) if test "$GCC" = yes; then @@ -3296,6 +3303,7 @@ else cat > conftest.$ac_ext < #include int main(int argc, char **argv) { @@ -3336,13 +3344,12 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6 PICFLAGS='-fPIC -DPIC' if test "$mr_enable_gnu_names" = yes then SHLIB_SFX='-$(VERSION).so' - else SHLIB_SFX='.so.$(VERSION)' + else SHLIB_SFX='.so.$(MAJOR)' fi SHLINK_SFX='.so' SONAME_SFX='.so.$(MAJOR)' - LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)' + LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME) $(LDFLAGS)' INSTALL_SHLIB='$(INSTALL_PROGRAM)' - DEPSHLIBS='-lc' else echo "configure: warning: shared libraries not supported for $host" 1>&2 mr_enable_shared=no [FILE:519:patches/patch-lib__sys_elf.h.in] Description: Provide the missing definitions for the ELF magic bytes. Forwarded: no Author: Vasil Dimov Last-Update: 2009-11-20 --- lib/sys_elf.h.in.orig 2014-01-26 00:46:23 UTC +++ lib/sys_elf.h.in @@ -80,6 +80,13 @@ Foundation, Inc., 51 Franklin Street, Fi */ #ifdef __LIBELF_HEADER_ELF_H +#ifndef ELFMAG +#define ELFMAG "\177ELF" +#endif /* ELFMAG */ +#ifndef SELFMAG +#define SELFMAG 4 +#endif /* SELFMAG */ + # ifndef ELF32_FSZ_ADDR # define ELF32_FSZ_ADDR 4 # define ELF32_FSZ_HALF 2