48222 Commits

Author SHA1 Message Date
Adrien Destugues
2ec95f5fd9 Add beam,liblayout,rsync,lua,unrar packages
* Some of these are mine, others provided by augiedoggie.
hrev46247
2013-10-17 11:14:30 +02:00
John Scipione
916be2df3c Consolidate adding add-on directories
This builds off of hrev46243 adding add-on directories all in one place
in AddOnMonitorHandler instead of repeating the code 3 times in
IndexServer, AddOnManager, and MediaAddOnServer.

The safe mode checking in InputServer is now redundant since it all
gets funneled into AddOnMonitorHandler::AddAddOnDirectories()
and the safe mode flags are checked there.

We should probably remove the InputServer::SafeMode() method, but,
I didn't want to break anything that depended on it so I left it.
hrev46246
2013-10-17 01:28:31 -04:00
Philippe Saint-Pierre
96cb5c35a3 fix #9982: make installer quit when alt+w in eula window hrev46245 2013-10-16 20:43:47 -04:00
Murai Takashi
02402d0049 Fix Mismatching allocation and deallocation
Signed-off-by: Philippe Saint-Pierre <stpere@gmail.com>
hrev46244
2013-10-16 19:59:24 -04:00
Murai Takashi
b29295c7da Fix loading add-ons in safemode
Signed-off-by: Philippe Saint-Pierre <stpere@gmail.com>
hrev46243
2013-10-16 19:51:34 -04:00
Adrien Destugues
ced0e0be04 BUrl: use a regex to parse URLs
* The RFC provide a regular expression for URI parsing, so just use it.
 * Allows parsing URIs with missing components (no scheme or authority)
 * This allows to parse relative URLs as expected
 * Can also handle things such as data: or mailto:
 * Also more fixes to handling of incomplete URIs, some flags weren't
always set to the right values.

This gets Windows Live Mail (or is it called Outlook?) working, with
some other fixes on WebKit side.
hrev46242
2013-10-16 21:01:43 +02:00
Adrien Destugues
831819980e RegExp: fix match count computation
* There actually is a way to count the matches, so use it instead of
attempting to guess
 * In some cases (when using optional groups (xxx)?, for example), there
may be a non-matching group (with offsets set to -1) and matching groups
after it, so the binary search wasn't quite working
 * Instead, we always return the number of capturing groups in the in
the given expression, which is the maximal number of matches. Some (or
all) of these may not have any content. We do return 0 matches on any
error, including when the regular expression didn't match anything.
2013-10-16 21:01:42 +02:00
Jérôme Duval
a905216770 pcnet: only disable interrupts, without acknowledging them.
* related bug #10088.
hrev46241
2013-10-16 17:34:29 +02:00
Adrien Destugues
f289aa4c74 BNetworkCookie: Allow cookies without a path
* They will be valid for the whole domain
 * login.live.com cookie test now works
hrev46240
2013-10-16 13:51:55 +02:00
Adrien Destugues
400153ebf5 BUrl: parse URLs using a regular expression.
* RFC3986 provides the regexp to parse URIs properly
 * Code is simpler and safer
 * Avoids an infinite loop when trying to parse some data: URIs
2013-10-16 13:51:54 +02:00
Adrien Destugues
5faf4d55b7 Fix max-age setting
* It would not work for cookies set to expire tomorrow or later, since
setting the time in a BDateTime does not overflow to the date.
 * The BDateTime API could be improved to make this look nicer.
2013-10-16 13:51:52 +02:00
François Revol
7cbc41ae32 U-Boot: Split fdt_support.cpp, move serial stuff to fdt_serial.cpp hrev46239 2013-10-15 23:05:09 +02:00
François Revol
3f92e864a1 Style fixes hrev46238 2013-10-15 22:17:55 +02:00
François Revol
b55cb439e7 U-Boot: pass around argv and /chosen/bootargs
Not really handled correctly yet, but at least they are passed.
hrev46237
2013-10-15 22:15:04 +02:00
François Revol
cf7f92c013 bootloader: Use stage2_args:arguments_count
The code probably doesn't work correctly yet though,
I believe only the last line will be taken into account.
2013-10-15 22:15:04 +02:00
François Revol
70b50f3865 bootloader: Set stage2_args:arguments_count when needed 2013-10-15 22:15:03 +02:00
François Revol
bc1184c253 bootloader: Add an arguments_count field to stage2_args
Some boot platforms pass a non-NULL-terminated list of args
to the loader, so store the count here to avoid having to copy
the list itself.
2013-10-15 22:15:03 +02:00
Jérôme Duval
fc3b9496eb freebsd_network: probes each driver and only attach the best probe.
* related bug #10088.
hrev46236
2013-10-15 20:28:55 +02:00
Adrien Destugues
7895042a8a Service Kit: Fix behavior in release mode
* Code put inside an ASSERT will not be executed at all in release mode.
 * In release builds, don't print any messages to the standard output.
hrev46235
2013-10-15 16:48:46 +02:00
Adrien Destugues
bb1d0adcd1 BUrl: fix handling of @ character
* @ is a separator (between user:password and host) only if there are
no slashes before it
 * All slashes in user and password should be urlencoded (as well as any
@ and :)
 * On the other hand, it's possible to have @ as part of an URL path or
query. An example is Google Maps.

Gets Google Maps working.
hrev46234
2013-10-15 14:45:16 +02:00
Adrien Destugues
7696f7dd54 HttpRequest: allow custom http methods
* The W3C XmlHttpRequest testsuite likes to use "CHICKEN" as a method.
 * Also add constants for all specified methods in HTTP 1.1.
2013-10-15 14:43:09 +02:00
Adrien Destugues
f6f14c5d1c Make BUrlProtocolAsynchronousListener inherit BUrlProtocolListener
* With so long class names, there's no way I'm going to follow the 64
char limit on commit headlines.
 * The class share the same API, so having them separate is not very
useful.
 * This makes it possible to use the same listener in either synchronous
or asycnhronous mode (or both, for different requests)
hrev46233
2013-10-15 10:16:33 +02:00
Rene Gollent
8035a8406c Fix #10100.
- If a package is already installed, look up its installed location and
  use that when initializing the package manager for uninstallation,
  otherwise we'd potentially fail to find the package, and consequently
  fail to remove it.
hrev46232
2013-10-14 23:49:41 -04:00
Philippe Saint-Pierre
abfe23dcf3 It now also uses the shared TranslatorSettings class, and localise its name
to be used in DataTranslations preflet.
hrev46231
2013-10-14 21:17:42 -04:00
Axel Dörfler
aeee1f7ec7 bfs: Fixed removing a listener that was never added.
* When the tree constructor failed, the InodeAllocator would try to remove
  the tree from the transaction. However, in that case, it was never added
  to it.
* Inode::fTree is no longer set if the tree constructor failed.
* This fixes bug #10089.
hrev46230
2013-10-14 23:21:47 +02:00
Axel Dörfler
45a5246706 cdda: Fixed crash on allocation failure.
* Thanks korli!
hrev46229
2013-10-14 22:57:48 +02:00
Adrien Destugues
85e57582d2 Add which, ninja and distcc to x86_gcc2 repo
* Also a fix in cmake ninja code generator to avoid 'command line too
long' failure.
hrev46228
2013-10-14 20:17:49 +02:00
Adrien Destugues
c9d31eeed6 More cookie fixes
* Add some error handling in NetworkCookie and don't add broken cookies
(or should I say crumbs?) to the cookie jar
 * More control on the path and domain, as well as the expiration time

We now pass Opera cookie testsuite functionality tests, as well as some
of the negative tests (we even do better than curl). Not going further
right now as this works well enough for positive cases and most
security/privacy issues are fixed (cross domain and cross path cookie
setting or spying).
hrev46227
2013-10-14 15:21:51 +02:00
Axel Dörfler
ae527df336 cdda: Use MemoryDeleter where it makes sense. hrev46226 2013-10-14 00:47:42 +02:00
Axel Dörfler
a2d3d3ae54 cdda: got rid of kernel_cpp.h - it should not be used.
* It's "new" operator does not fail or throw on allocation problems, but
  just lets the constructor do its work (and likely crash because of
  accessing a null pointer).
2013-10-14 00:47:39 +02:00
Axel Dörfler
9499ef8e51 cdda: Fixed include order. 2013-10-14 00:47:34 +02:00
Rene Gollent
bab0501f32 Fix #10090.
- The checkfs help text is worded such that it would appear to require
both a device name and volume name when it actually requires either one
or the other.
hrev46225
2013-10-13 09:11:31 -04:00
Ingo Weinhold
dda53eae4b configure: haiku.hpkg now has a canonical name
Should fix the script on newer Haiku versions (and break it on older
ones). Ticket #10087.
hrev46224
2013-10-12 20:53:52 +02:00
François Revol
8fa75a8cca ARM: Add a fallback atomic_add() for bootloader
When ATOMIC_FUNCS_ARE_SYSCALLS atomic.S doesn't export it,
but it's used by packagefs.
hrev46223
2013-10-12 19:43:33 +02:00
François Revol
39d26e3cdb Set HAIKU_TARGET_IS_EXECUTABLE in KernelLd as well
The kernel also needs to be stripped for m68k.

Propagate it to the revisioned binary as well.
hrev46222
2013-10-12 18:42:57 +02:00
Ingo Weinhold
e29f08c37c Strip executables on m68k boot floppy image hrev46221 2013-10-12 17:24:26 +02:00
Ingo Weinhold
3010e4f4ea AddFilesToContainer: Strip executables, if requested
Variable HAIKU_CONTAINER_STRIP_EXECUTABLES can be set on the container
to trigger that.
2013-10-12 17:23:56 +02:00
Ingo Weinhold
af2e206845 rule Link: Set HAIKU_TARGET_IS_EXECUTABLE on target 2013-10-12 17:22:16 +02:00
Ingo Weinhold
3162883efd Add rules StripFile[s] 2013-10-12 17:21:49 +02:00
Ingo Weinhold
19f94028f6 Revert "Allow stripping binaries when copying to image containers"
This reverts commit d6de84de6690d076caf2744ba3fda17ef267cabd.
2013-10-12 16:01:02 +02:00
Ingo Weinhold
7879928fb2 Revert "Enable stripping binaries in m68k boot floppy"
This reverts commit e986f5fce9db69ffe69ed046a6fd02bdb54f2c87.
2013-10-12 16:00:21 +02:00
Ingo Weinhold
cc5c6133d2 Revert "Rework stripping binaries when copying to containers"
This reverts commit e2332987bce967387b49c5dce24867688a01317f.
2013-10-12 16:00:02 +02:00
Ingo Weinhold
d05822f18b Revert "Preserve resources and attributes when copying stripped binaries"
This reverts commit a427aa2f4a47ae242110e9d98d4bed307f8dad73.
2013-10-12 15:59:19 +02:00
Jérôme Duval
47fe7767ca pcnet: add pcn driver
* le still working ok with QEmu
* pcn brings support for the following devices in 32-bit mode (instead of 16-bit Lance
compatibility mode), all untested, feedback is welcome.
AMD Am79C971 PCnet-FAST, AMD Am79C972 PCnet-FAST+, AMD Am79C973/Am79C975 PCnet-FAST III,
AMD Am79C976 PCnet-PRO, AMD Am79C978 PCnet-Home, Allied-Telesis LA-PCI
* added PHY nsphy, nsphyter and ukphy, which seem the ones needed for pcn.
* synched miidevs with FreeBSD 9.2
hrev46220
2013-10-12 14:42:24 +02:00
Niels Sascha Reedijk
5de589dae2 Update translations from Pootle hrev46219 2013-10-12 06:18:09 +02:00
François Revol
a427aa2f4a Preserve resources and attributes when copying stripped binaries
When asked to strip binaries when copying to containers we now
strip to a temporary file, copy over resources to it, copy it
to the container, then copy the attributes from the original
source.

This should allow stripping binaries while preserving attributes
and resources even when copying to images.
hrev46218
2013-10-12 02:37:20 +02:00
François Revol
e2332987bc Rework stripping binaries when copying to containers
We now only attempt to strip binaries, by detecting the
LINKFLAGS variable on the targets.

CopySetHaikuRevision now also forwards LINKFLAGS
to revisioned binaries.

Introduce separate AppendToContainerCopyFilesScriptStripFile actions
which are used for copying and stripping, and avoids many useless
shell tests.

When asked to strip binaries, they are detected and handled
individually for simplicity.

Note we still don't keep resources and attributes when stripping.
hrev46217
2013-10-12 01:41:46 +02:00
François Revol
e986f5fce9 Enable stripping binaries in m68k boot floppy
This makes it fit again.

We can't reference in BuildSetup a variable set with the other
ones in KernelArchitectureSetup since the rule is invoked later.
hrev46216
2013-10-11 23:30:57 +02:00
Adrien Destugues
b7d85d666a fix build. hrev46215 2013-10-11 22:13:04 +02:00
Adrien Destugues
86a58ccd34 Remove deprecated package manager mockup app.
* HaikuDepot was started from scratch and deprecates this.
hrev46214
2013-10-11 21:44:09 +02:00