Commit Graph

62 Commits

Author SHA1 Message Date
espie
f0e0a9480c pass state around 2010-12-24 10:31:40 +00:00
espie
b87d7dd53f put stuff in separate modules 2010-12-07 08:46:28 +00:00
espie
3f9f91390c teach register-plist that pkgspec-version is equivalent to pkgspec-=version 2010-11-26 07:17:10 +00:00
espie
c401210b5d allow register-plist to do a quickie on print-plist 2010-11-07 00:01:40 +00:00
steven
8f06d3f7fd make die messages a bit more consistent 2010-11-01 13:40:36 +00:00
steven
63596c6ac2 give Program its own install sub as well 2010-11-01 13:26:41 +00:00
steven
72dd1c9832 zap unused variable 2010-11-01 13:05:57 +00:00
steven
89d04d4736 simplify sequence of events a bit in the install subroutine 2010-11-01 13:05:13 +00:00
steven
c5236210fe factor code to install .la file and associated files into its own sub 2010-11-01 12:48:15 +00:00
espie
a6fdaa4a74 do -d automatically, we don't really need that option 2010-11-01 12:24:47 +00:00
espie
8a26786deb new file/option: save dependencies and be able to reuse them.
makes for a "quick listing" of the most important ports first (e.g., groff).
document -R, even though it's not perfect yet.
flesh out all the recent parts and update the BUGS AND LIMITATIONS section.
2010-10-31 11:07:20 +00:00
espie
f072ab3a17 proof-of-concept implementation of -R (rebuild when signature changes).
Somewhat inefficient (deep check of package vs port signature).
More proper approach would be to tell the engine to always build, have first
step be a check for signature if the package exist, and abort if it matches:
- here we double check everything
- propagating rebuilds means non-uptodate packages give rise to non uptodate.
2010-10-30 11:19:38 +00:00
espie
10e6cc104f engine improvements:
- if several cores are available, recheck errors, so that we're not stuck
waiting for a core to finish to start new shit.
- $logdir/stop-<machine_name> allows you to stop a given machine while
you clean it up and (possibly) restart it (e.g., won't start new jobs)
2010-10-29 11:51:42 +00:00
espie
2f5fa40549 big fucking hack to the FULLPKGNAME\- problem, until I clean it up for real... 2010-10-29 10:22:14 +00:00
steven
f7e4458115 move mkdir out of if block so we avoid an error when it tries to write an
objectlist in there
2010-10-28 23:50:15 +00:00
steven
2e37db56d1 check that we really have pic objects to pass, otherwise fall back to nonpic.
this is a quick fix, to be done a bit cleaner later.
2010-10-28 23:48:40 +00:00
steven
e1202b625d undo revert 2010-10-28 23:45:59 +00:00
jasper
df430ae277 - revert libtool to -r1.16, as -r1.17 breaks at least dynamips, lftp and
silc-server.

found by landry@ and myself the hardway

ok sthen@ espie@
2010-10-28 22:19:03 +00:00
espie
1c010712c9 keep the output from dump-vars around, and save it in the logfile is
something bad happens.

get rid of special reporter for Vars, E= is enough, people should look
in the paths/logfile now.
2010-10-28 14:54:38 +00:00
steven
233c853561 strip static libraries with --strip-debug
seems to fix databased/db library
2010-10-28 09:08:27 +00:00
steven
d067b2c283 some cleanup 2010-10-27 23:42:49 +00:00
steven
6de5af54a3 behave more like gnu by not using pic objects for a static library. 2010-10-27 23:41:27 +00:00
espie
309af926e4 kill more code related to P= (will simplify next parts) 2010-10-27 22:53:32 +00:00
steven
08de79dc77 make ltprog a list of elements without whitespace.
this should prevent exec errors later on.

fixes telepathy-glib, noticed by landry@
2010-10-27 17:37:55 +00:00
steven
dda823ac11 create an executable wrapper only if we encounter not-installed shared libs
(still based on .la file content)

this fixes at least fix www/wml and maybe some others
2010-10-27 12:43:41 +00:00
steven
e0fd79dc30 this can never have worked for real...
change .a -> .la
in case we ever run into this particular case
2010-10-27 11:03:17 +00:00
steven
27f392bd95 do not pass libtool's -static option to the linker
instead do what it is supposed to do: not dynamically linking with
not-installed libtool libraries

openldap linking incorrectness pointed out by pea@

this might fix some other stuff as well
2010-10-27 09:05:30 +00:00
espie
7933e75f03 make -p optional 2010-10-27 09:04:37 +00:00
espie
d297996843 fix system for new interface 2010-10-26 21:56:40 +00:00
espie
1fecde2518 rework PkgPath to distinguish between empty and default flavors...
turns out we probably don't need FULLSUBDIR after all.
compute SUBDIR better, possibly with quotes.
Remove trailing / on subdirs, in case people use completion.
2010-10-26 15:45:09 +00:00
espie
663157b0c7 add an option for dpb to keep going if there are errors left.
there's a bug in the display (to be fixed) as errors won't show properly
and you have to look manually though...
2010-10-24 10:01:57 +00:00
steven
354a48eda4 do not write modules in shared_libs.log
noticed by ajacoutot@
2010-09-28 18:52:36 +00:00
steven
1e8a0905a2 - when writing a program wrapper, use the correct path
a/path/to/.libs/foo instead of .libs/a/path/to/foo
- make sure the symlinks pointing to the library are also in this path

problem spotted by naddy in net/gnet regression tests
2010-09-28 18:42:17 +00:00
steven
9098b5f565 drop relative -L paths from dependency_libs before installing the .la file. 2010-09-25 17:14:48 +00:00
steven
3ae0723a0e drop libraries from deplibs which we are not going to install.
this should fix exiv2.
2010-09-25 16:58:52 +00:00
steven
44e0bdbcd7 also add -lfoo arguments to deplibs if there is no key yet for this library,
because the key may be set in a recursion step, but we only add to deplibs
at level 0.
this seems to produce more correct deplibs.
first step to fix kde/bindings.
2010-09-25 15:20:04 +00:00
steven
9b80461fa6 put .o files on command line in objects array as well.
this fixes errors in gst-plugins-bad.

while here, check the object list and bail out if it's empty
2010-09-25 13:32:06 +00:00
steven
d9fe54e890 don't use empty valued libdir here 2010-09-24 21:07:30 +00:00
steven
205a6c48cc move test to discover shared libs in .la files to pass 2 because then we
actually have all the .la files we need (especially so if users insist on
using -lfoo instead of foo.la).
this makes it behave better for the creation of executable wrappers.
should fix sysutils/bacula.
2010-09-24 20:57:54 +00:00
steven
8618d9ee5f when a lib has multiple different library names, populate the .libs dir with
symlinks to all of them.

this fixes kde/multimedia, which builds a libmpeg-0.3.0.so (using -release),
also known as libmpeg.so, and then links something with -lmpeg ...
(before this commit, we only had a symlink to the former)
it should really just use libmpeg.la instead, but let's have libtool handle
such attempts anyway.
might fix other stuff i'm not yet aware of, too.
2010-09-19 17:30:52 +00:00
steven
525b6fd50d when we had for example -lX11 -L/usr/X11R6/lib,
we could not find /usr/X11R6/lib/libX11.la

therefore, parse -L arguments before everything else so we know in which
directories to search libraries.

fixes libcaca, and possibly others
2010-09-18 16:22:26 +00:00
espie
761854d37a reset recorder if we get contents from packages, since it would grow too
much.
2010-09-15 09:36:57 +00:00
espie
4090fab496 make it work even if LOCALBASE is not defined 2010-09-15 09:36:02 +00:00
espie
9aa92a99d4 saner: always go thru a DumpRecorder, and perform full save/retrieve from
a dump recorder.
2010-09-13 14:38:05 +00:00
espie
afd72e8781 missing end $, noticed by Markus Lude 2010-09-08 11:06:12 +00:00
espie
3cbf41bbc9 prepare to move this too 2010-09-06 17:12:36 +00:00
steven
a0c67c389d move portslogger to bin/
ok naddy@

if you have build scripts that use portslogger, adapt the path
2010-08-30 19:02:33 +00:00
jasper
c055be22f3 - strip leading 'lib' when we write the library name to the shared_libs.log
file.

ok steven@
2010-08-26 17:48:27 +00:00
espie
551aa46116 zap old option, fix usage and man for common stuff 2010-08-20 17:03:36 +00:00
espie
04cb4e82a5 move a large part of check-lib-depends into separate modules 2010-08-20 15:29:41 +00:00