Juan RP
ddca33b4a9
XBPS_RELVER: embed the latest git rev hash.
2012-11-20 00:38:23 +01:00
Juan RP
a77727887d
Improvements for xbps_fetch_file and xbps_repository_sync_index.
...
xbps_fetch_file:
- A temp file is created with .part extension to improve resuming.
- Files are downloaded in cwd.
- Switch to futimens(2) and fsync(2).
xbps_repository_sync_index:
- Do not create local repodir in metadir if it already exists.
- Simplify the code thanks to new xbps_fetch_file().
2012-11-11 11:29:49 +01:00
Juan RP
b13df00ded
Use a common place to set XBPS_VERSION.
2012-10-03 10:10:20 +02:00
Juan RP
8c0484c00b
configure: revert unintentional change from 75eac1a1426040a833e.
...
(cherry picked from commit e380618c26b95ce8db18c8a7c0d622ff38be848b)
2012-09-29 19:11:45 +02:00
Juan RP
54b6cc7ec1
xbps-{bin,repo}: add -B flag to set default repo if xbps.conf not found.
...
(cherry picked from commit 75eac1a1426040a833e0b10e208f2e55fa359532)
2012-09-29 19:10:48 +02:00
Juan RP
6d6d31ccc0
Fix previous and make sure that we build PIE binaries.
...
(cherry picked from commit 1b9dd30d7b590e219cb51561f1e7371f4628575f)
2012-09-29 19:02:57 +02:00
Juan RP
886807687e
configure: enable PIE and RELRO by default if compiler supports it.
...
(cherry picked from commit d79e3a641de934cd7546b2e628a8c6ea175b6c37)
2012-09-29 19:02:24 +02:00
Juan RP
634b5f726a
configure: force --no-as-needed in CC tests.
2012-07-19 17:50:29 +02:00
Juan RP
eb02d30791
configure: explicitly link dynamic executables to the shared library.
2012-07-19 16:30:53 +02:00
Juan RP
ef5743dfe5
configure: added '--with-static' option (disabled by default).
2012-07-19 16:01:12 +02:00
Juan RP
9c05e4b0c9
configure: add -O2 by default to CFLAGS.
2012-07-19 15:51:43 +02:00
Juan RP
a94dd5dbfa
Revert "libxbps: implement xbps_file_exec() with posix_spawn()."
...
This reverts commit 5aa05f4c72
.
2012-05-30 17:26:25 +02:00
Juan RP
5aa05f4c72
libxbps: implement xbps_file_exec() with posix_spawn().
2012-05-30 14:45:47 +02:00
Juan RP
a04d5eb633
configure: added --testsdir to override defaults tests dir.
2012-03-12 15:28:54 +01:00
Juan RP
d4f623e7e7
Commit Kyua/ATF test suite for libxbps.
2012-03-12 15:23:04 +01:00
Juan RP
9147488b19
configure: add --exec-prefix and fix pkgconfig file paths.
2012-01-18 11:28:55 +01:00
Juan RP
9ee50276e4
configure: added --pkgconfigdir option.
2012-01-17 17:34:36 +01:00
Juan RP
834344a1af
Install a pkgconfig file for libxbps.
2012-01-17 17:26:18 +01:00
Juan RP
6ad7289d68
Detect clock_gettime(2) and use (if available) for the fetch cb.
2011-12-19 16:41:57 +01:00
Juan RP
b0ceeaa58e
New configuration file via confuse: xbps.conf.
2011-12-15 11:19:20 +01:00
Juan RP
4002356ef8
configure: don't check for -std=c99, it's redundant anyway.
2011-12-03 08:41:47 +01:00
Juan RP
1bca0f7a65
configure: remove -Wunused-macros and -fpic tests, clang does not like them.
2011-11-06 09:59:25 +01:00
Juan RP
5642ffa86e
New configuration scheme changes, round 1.
...
- Configuration file 'xbps-conf.plist' has been splitted off into
two files: conf.plist and repositories.plist. By default they
are stored in etc/xbps.
- Changed some members in xbps_handle struct, mostly to make it easy
to change its value in {cache,root}dir and conffile.
- Made xbps_init() release proplib objects as soon as we don't need
them, that way it uses 35% less of memory or in some cases even more.
There will be another commit that will implement to read new virtualpkg
settings by the user, as specified in:
http://code.google.com/p/xbps/issues/detail?id=12
2011-10-17 12:37:15 +02:00
Juan RP
6327100f1a
configure: link bins against libxbps...
2011-07-29 20:52:25 +02:00
Juan RP
2c53c6e0de
configure: detect external libfetch and portableproplib automatically.
...
The options --with-external-* have been removed, if the checks don't
detect required functions, included sources are used.
Enable --silent mode by default, now --verbose is required to disable
it.
2011-07-29 12:47:34 +02:00
Juan RP
0a2abb3f3d
xbps-repo(8): 'search' target is now case insensitive.
...
Along with this change, compat code has been added (from NetBSD)
for systems that don't have it. The compat code has been reorganized
to be in a common place and its prototypes in compat.h.
The configure scripts checks if strcasestr() is available, and
uses compat code if not found.
This fixes issue #2 on github.com/vanilla/xbps.
2011-07-09 10:50:44 +02:00
Juan RP
c8ee562d7c
configure: avoid using zlib's pkgconfig file, fixes issue 6.
...
Not all systems provide a zlib.pc file, so explicitly check for
InflateInit2() which is what we use in XBPS.
Thanks to str1ngs for finding this error on Ubuntu.
2011-07-04 13:09:37 +02:00
Juan RP
6fe23a1b80
configure: do not add --as-needed automatically.
2011-06-04 17:32:17 +02:00
Juan RP
a85a1a145a
configure: use static libxbps from topdir not from DESTDIR.
2011-06-04 13:53:16 +02:00
Juan RP
9673c4bd09
XBPS major changes in June 2011.
...
- A configuration file "xbps-conf.plist" replaces the (un)register target
in xbps-repo(8) and (un)set-prop in xbps-bin(8). For now, you can set
the repositories and prefered virtual packages.
- New package pattern matching code from NetBSD. Supports more ways of
matching patterns in packages.
- Multiple bugs fixed in virtual packages related matching code.
--HG--
rename : LICENSE => COPYING
2011-06-04 13:37:53 +02:00
Juan RP
35dc0aa5ad
configure: build with -pthread unconditionally, don't test for -pipe or -D_FORTIFY_SOURCE.
2011-02-27 15:44:44 +01:00
Juan RP
777a91f62a
configure: test correctly PIE and PIC flags, remove -O2 which errors out on pcc.
2011-02-24 16:22:09 +01:00
Juan RP
17be7bab81
configure: misc compiler flags fixes.
...
- Don't use -Wp, some compilers don't understand it. Simply use -D__BLAH___.
- Check for -Wl,--export-dynamic and if that fails try -rdynamic.
2011-02-24 15:33:53 +01:00
Juan RP
be5ff1d934
Don't build code with _GNU_SOURCE, use _XOPEN_SOURCE=500 instead.
...
_GNU_SOURCE is only now for xbps_xasprintf() if vasprintf is found,
and only for <stdio.h>, it's unset immediately once the header is included.
2011-01-25 13:00:23 +01:00
Juan RP
64cd7cf0a4
configure: use a var with the function name to test.
2011-01-25 12:42:34 +01:00
Juan RP
81fa8da4ce
Check for vasprintf() and add a replacement if it wasn't found.
2011-01-25 12:39:05 +01:00
Juan RP
fcbe7f113b
Don't build static bins with PIE, only for dynamic.
2011-01-19 16:52:55 +01:00
Juan RP
8dc6926664
configure: fixes for building with an installed static libxbps.
2011-01-19 14:45:58 +01:00
Juan RP
0fe503b7f4
configure: -Wformat-security and -Wformat-nonliteral are included in -Wformat=2.
2011-01-15 14:02:34 +01:00
Juan RP
84f04fb6c4
configure: build with -O2 and -pipe if supported.
2011-01-15 13:36:46 +01:00
Juan RP
3482e68491
configure: make symbol visibility dependent in the configure test, misc changes.
2011-01-15 12:21:38 +01:00
Juan RP
6051eb29ab
Added another bunch of compiler warnings and fix code.
2011-01-15 11:59:44 +01:00
Juan RP
d9001adbad
configure: added --silent option to hide compilation details.
2011-01-15 10:49:35 +01:00
Juan RP
4420bd9427
Really enable the compiler detected flags into its correct var.
2011-01-15 10:41:35 +01:00
Juan RP
33c1a33912
Make configure detect required libraries to link.
2011-01-14 00:30:49 +01:00
Juan RP
2206b27037
Added "--with-external-libfetch" to build against external libfetch.
2011-01-12 17:06:53 +01:00
Juan RP
cb8464bdc6
configure: respect CFLAGS/LDFLAGS passed via env.
2011-01-11 15:04:23 +01:00
Juan RP
cdecb7f793
configure: also check if compiler supports _FORTIFY_SOURCE=2.
2010-12-24 02:36:16 +01:00
Juan RP
8013448097
configure: fix a typo that broke strlcat test. Found by Min Sik Kim reported in issue 2.
2010-12-10 16:25:28 +01:00
Juan RP
992583311b
configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc.
2010-10-27 00:19:02 +02:00