Commit Graph

20519 Commits

Author SHA1 Message Date
Carsten Haitzler 69c0e8a09c misplaced ERR-- - maybe DBG?
SVN revision: 81945
2013-01-01 08:12:09 +00:00
Gustavo Sverzut Barbieri 014cd8065d efl/eio: use eina_file_copy()
SVN revision: 81944
2012-12-31 23:45:24 +00:00
Gustavo Sverzut Barbieri 43eb232d38 oops: remove printf
SVN revision: 81943
2012-12-31 23:42:25 +00:00
Gustavo Sverzut Barbieri 6ae6f925a4 efl: add eina_file_copy()
it's useful to copy file from one place to another and this will be
used in eio' s implementation.

NOTE: did not use mmap here as mmap faults may be cumbersome to handle
(Eina_File itself does that, but in a nasty way) and the
implementation would be severely different as there is no Eina_File
from FD, and there is no way to inject custom memory/fd into the
Eina_File's fault handling. The performance would not be that
different anyways and the splice() is already in there for systems
with good performance (read: Linux).



SVN revision: 81942
2012-12-31 23:17:18 +00:00
Gustavo Sverzut Barbieri 678727aae4 efl: missing api for xattr.
SVN revision: 81941
2012-12-31 21:05:58 +00:00
Gustavo Sverzut Barbieri 9161f83a3e efl: make xattr stuff work.
* fix eina_xattr_value_ls() and eina_xattr_value_fd_ls() to not loop
   infinitely.

 * NULL terminate the retrieved xattr values, at least they'll be
   easier to handle in our programs and less error prone.



SVN revision: 81940
2012-12-31 20:41:54 +00:00
Gustavo Sverzut Barbieri 80fd3a77c0 eio: use eina_lock abstraction.
SVN revision: 81939
2012-12-31 18:26:53 +00:00
Gustavo Sverzut Barbieri 8ba0561e49 efl: remove lstat and fchmod checks.
- fchmod() was isolated by HAVE_CHMOD, which was always present
   before... then fchmod() is also present as no errors were reported
   since its introduction.

 - fchmod() is POSIX for a while now.

 - lstat() is POSIX for a while now.

 - setxattr is supported by EFL_CHECK_FUNCS() as is used by eina.

 - splice() check added to EFL_CHECK_FUNCS()



SVN revision: 81938
2012-12-31 18:18:00 +00:00
Gustavo Sverzut Barbieri 66ebe6a3f8 efl: remove checks for EINA_HAVE_THREADS
SVN revision: 81937
2012-12-31 17:31:17 +00:00
Gustavo Sverzut Barbieri 09748cfb15 efl: beef thread documentation and error reporting.
eina_thread_join() is nasty and didn't report errors :-(

I'm using Eina_Error here, but it's global to the application and not
thread-local. Maybe we should make eina_error_get() and
eina_error_set() thread-local storage?



SVN revision: 81936
2012-12-31 17:26:33 +00:00
Gustavo Sverzut Barbieri 4668d04f04 efl: cleanup HAVE_THREADS and pthread usage outside of eina.
Eina now abstracts threads, so use that.

the touched files had the EFL_HAVE_THREADS as it's mandatory now.



SVN revision: 81935
2012-12-31 16:14:40 +00:00
Gustavo Sverzut Barbieri 12e0602452 efl: eio checks cleanup
some functions were being checked but their IFDEF not being handled,
others (getpwnam and getgrnam) were isolated in a code that is now
Windows, then no need to check them as well as these are POSIX.



SVN revision: 81934
2012-12-31 15:16:49 +00:00
Gustavo Sverzut Barbieri 8ffc6d6909 efl/eina: fix mempools when they are not static
although we force them to be fixed to static, we left the automake to
make it possible and they were wrong:
 - missed the proper directory prefix for .la files (were being generated at src/)
 - had typos due copy & paste, with chained being used in some places.



SVN revision: 81933
2012-12-31 14:42:35 +00:00
Gustavo Sverzut Barbieri 385d994709 efl: fix valgrind check.
wrong variable name, thanks Doug Newgard for spotting it.


SVN revision: 81932
2012-12-31 14:24:47 +00:00
Yakov Goldberg b1c2b58bcf efl: fix typo
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>

SVN revision: 81924
2012-12-31 07:26:58 +00:00
Cedric BAIL e985899c9c efl: and fix a potential memory leak.
SVN revision: 81922
2012-12-31 01:59:00 +00:00
Cedric BAIL db2a8c62f4 efl: fix issue when text didn't get properly replaced.
Thanks to hannes.janetzek@gmail.com !


SVN revision: 81921
2012-12-31 01:49:36 +00:00
Gustavo Sverzut Barbieri fe7f441158 efl: remove --print-gc-sections: too annoying.
okay, remove that print as it will always print sections removed from
PIC leftovers, etc.

keep the --gc-sections, it's useful to shrink binaries. Developers
willing to delete dead code can --print-gc-sections themselves.



SVN revision: 81920
2012-12-31 01:45:14 +00:00
Gustavo Sverzut Barbieri 4e6ce9277f efl/evas: add ecore-evas dependent examples.
nice feature of single tree efl is that evas examples can use ecore-evas :-)



SVN revision: 81919
2012-12-31 01:40:50 +00:00
Cedric BAIL 209347f148 efl: rename eina_inarray_add to eina_inarray_grow.
SVN revision: 81918
2012-12-31 01:27:58 +00:00
Gustavo Sverzut Barbieri 125d308f2c efl: unbreak last commit.
seems that automake will parse LDFLAGS for -module and if it's not
present it will complain about name not starting with 'lib'.

seems my last try was without NOCONFIGURE=1 and autogen continued to
the old ./configure, that printed lots of messages and the error went
unnoticed



SVN revision: 81917
2012-12-31 01:13:47 +00:00
Gustavo Sverzut Barbieri ec863dc17f efl: create macro to simplify libtool module declaration.
SVN revision: 81916
2012-12-31 00:54:48 +00:00
Gustavo Sverzut Barbieri df1b3d30c4 efl: refactor CFLAGS, LIBS, LIBADD and LDADD usage.
- remove EFL_LIBS and EFL_CFLAGS, use per-lib values that inherit
   from EFL (general)

 - add NAME_LDFLAGS and EFL_LDFLAGS for linker flags.

 - LDADD (binaries) now use NAME_LDFLAGS instead of NAME_LIBS, as they
   link to libname.la and that will pull in the libtool dependencies



SVN revision: 81915
2012-12-31 00:46:14 +00:00
Cedric BAIL 51f8fe26fc efl: forgotten evas commit.
SVN revision: 81914
2012-12-31 00:24:40 +00:00
Cedric BAIL 375be85b27 efl: add a way to allocate without memcpy data in an Eina_Inarray.
SVN revision: 81913
2012-12-31 00:05:02 +00:00
Cedric BAIL f8ea554926 efl: limit regression with async rendering.
NOTE: There is still an issue with text rendering, that
is still 4 times slower and impact all text object (text,
textblock and textgrid).


SVN revision: 81912
2012-12-30 23:39:11 +00:00
Gustavo Sverzut Barbieri 493f9a9ff9 efl: unify LDFLAGS for LTLIBRARIES
SVN revision: 81911
2012-12-30 22:15:29 +00:00
Gustavo Sverzut Barbieri cd3d6653af efl: move -lm to configure.ac variables.
EFL_ADD_LIBS() will add to requirements_libs_NAME and that will end
into NAME_LIBS.



SVN revision: 81910
2012-12-30 21:52:34 +00:00
Gustavo Sverzut Barbieri 8bbef8fe28 efl: refactor EFL_CHECK_LIB() and EFL_CHECK_FUNC()
- introduce EFL_CHECK_LIB_CODE() that does the try-link

 - introduce EFL_FIND_LIB_FOR_CODE() that will use
   EFL_CHECK_LIB_CODE() into multiple libraries

 - also fix dladdr() test (was missing .h in #include <stdlib>)



SVN revision: 81909
2012-12-30 21:10:52 +00:00
Gustavo Sverzut Barbieri 458b70bbe6 efl: minor AC_CHECK_LIB() cleanup.
SVN revision: 81908
2012-12-30 19:05:18 +00:00
Gustavo Sverzut Barbieri 1453b3848b efl: EFL_CHECK_LIBS() is strict, simplify it then.
as we abort (AC_MSG_ERROR) if not found, simplify the code.



SVN revision: 81907
2012-12-30 18:55:56 +00:00
Gustavo Sverzut Barbieri ec75e20486 efl: add compiler flags
* -fvisibility=hidden will hide symbols not marked with EAPI in the
    final binary (so/executable).

 * -ffunction-sections and -fdata-sections will split those into
    independent elf sections, then we can -Wl,--gc-sections for those
    that are unused. During development --Wl,--print-gc-sections will
    warn us of functions that are left unused and were collected.



SVN revision: 81906
2012-12-30 18:37:59 +00:00
Gustavo Sverzut Barbieri 64fa645e80 efl: uniform compiler flags.
note: dns.c were already emitting warnings regarding shadow, so I
removed the flag to quiet override-init. It will a bit louder, but
then we remember it would be better to rewrite this dns in proper EFL.



SVN revision: 81905
2012-12-30 18:28:26 +00:00
Gustavo Sverzut Barbieri 1f423eb8e7 efl/configure: simplify configure.ac
more macros to aid common tasks, make it easier to read.



SVN revision: 81904
2012-12-30 18:08:55 +00:00
Gustavo Sverzut Barbieri fb27484376 efl/configure: simplify lib declaration.
added couple of macros:

 - EFL_LIB_START(PKG): setup variables and replacements (AC_SUBST),
   prints started checks
 - EFL_LIB_END(PKG): prints ended checks

 - EFL_LIB_START_OPTIONAL(PKG, TEST): wraps EFL_LIB_START() with a
   conditional test. defines AC_DEFINE(HAVE_PKG).
 - EFL_LIB_END_OPTIONAL(PKG): wraps EFL_LIB_END() with a conditional
   test, defines AM_CONDITIONAL(HAVE_PKG).



SVN revision: 81903
2012-12-30 15:21:33 +00:00
Gustavo Sverzut Barbieri c60c72b60f efl: pic-only if platform supports.
in some cases libtool would build 2 versions, pic for shared and
no-pic for static. Make sure we just build one as pic is good enough.

NOTE: this is only used on supported platforms.



SVN revision: 81902
2012-12-30 13:32:47 +00:00
Gustavo Sverzut Barbieri 8ce53b64da efl: fix valgrind build.
weird enough to build with memcheck.h you just need valgrind's CFLAGS,
not its libraries as they are not supposed to be used like that,
throwing many bgPlain_ errors (vgPlain_tl_pre_clo_init,
vgPlain_free...) from libcoregrind-x86-linux.a



SVN revision: 81901
2012-12-30 13:30:13 +00:00
Gustavo Sverzut Barbieri b316f6a1a9 efl/libtool: disable-fast-install by default.
From Autobook: http://www.sourceware.org/autobook/autobook/autobook_85.html

   libtool will build executables suitable for copying into their
   respective installation destinations, obviating the need for
   relinking them on those hosts which would have required
   it. Whenever libtool links an executable which uses shared
   libraries, it also creates a wrapper script which ensures that the
   environment is correct for loading the correct libraries, See
   section 10.5 Executing Uninstalled Binaries. On those hosts which
   require it, the wrapper script will also relink the executable in
   the build tree if you attempt to run it from there before
   installation.

   Sometimes this behaviour is not what you want, particularly if you
   are developing the package and not installing between test
   compilations. By passing `--disable-fast-install', the default
   behaviour is reversed; executables will be built so that they can
   be run from the build tree without relinking, but during
   installation they may be relinked.

The user may still override this default, depending on platform
support, by specifying --enable-fast-install to configure.

NOTE: In my measurements it made no difference in install time either.



SVN revision: 81900
2012-12-30 12:29:39 +00:00
Cedric BAIL 35a5c733ff eo: let's make weak ref safer to manipulate.
SVN revision: 81899
2012-12-30 12:26:25 +00:00
Gustavo Sverzut Barbieri 33791572fc efl/libtool: disable-static by default.
Most systems will never ever need the static builds of EFL, and it
doubles the compilation time (4m36s x 2m48s on my laptop). Then
disable it by default.

The user may still override this default by specifying --enable-static
to configure.



SVN revision: 81898
2012-12-30 12:12:32 +00:00
Gustavo Sverzut Barbieri 16a9372e35 efl/evas_cserve2: don't use libexec
many distros deprecate libexec and it's better to keep our stuff
together inside /usr/lib/evas.

cserve2 binaries now lives in /usr/lib/evas/cserve2/bin



SVN revision: 81897
2012-12-30 11:42:04 +00:00
Gustavo Sverzut Barbieri b6473769d1 efl/efreet: install d-bus service.
SVN revision: 81896
2012-12-30 11:23:30 +00:00
Mike McCormack 6e1bbda3fc efl: Fix efreet package config
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 81893
2012-12-30 01:32:59 +00:00
Mike McCormack 453ca7126d efl: Update ignore list
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 81892
2012-12-30 01:14:04 +00:00
Gustavo Sverzut Barbieri 80e4fe5254 move efreet.
SVN revision: 81890
2012-12-29 23:06:03 +00:00
Gustavo Sverzut Barbieri 4bc0210bd3 efl: merge efreet.
seems to be fine, pass distcheck and friends. please report.

changes:
 - documentation hierarchy fixes
 - replaced __UNUSED__ with EINA_UNUSED
 - replaced PKG_DATA_DIR with PACKAGE_DATA_DIR"/efreet"



SVN revision: 81889
2012-12-29 23:04:40 +00:00
Lucas De Marchi 727ddbeaf0 efl: tell compiler to not yell about missing field initializers
SVN revision: 81884
2012-12-29 16:55:34 +00:00
Carsten Haitzler 343d0c8f8b more pc breakings. fix.
SVN revision: 81882
2012-12-29 16:43:07 +00:00
Carsten Haitzler 3d1eb4104d fie fi fo fum... someone's been breaking the pc files there mon...
:)



SVN revision: 81881
2012-12-29 16:28:31 +00:00
Carsten Haitzler b730378d18 RELEASE THE HOUNDS!... edbus missing m4 macro to detect va args list
type and that b0rxed edbus on 64bit. this fixes it. tnx to k-s for
pointing at it.



SVN revision: 81878
2012-12-29 16:03:28 +00:00