Commit Graph

51140 Commits

Author SHA1 Message Date
Adrien Destugues
2f9b187497 Factor out a BNetworkRequest
* Shares common behavior between the Gopher and HTTP request handlers.
* Most of this can be used when implemeting other protocols.
2014-08-04 15:59:53 +02:00
Adrien Destugues
fedec7b31f Bookmark bar uses "Bookmark bar" subfolder
* Allows having a lot of bookmarks in the menu, and only the most often
used ones in the bar.
* If the "Bookmark bar" folder doesn't exist, the old behavior (using
the main Bookmarks folder for the bar as well as the menu) is used.
* If none of these exists, the bookmark bar will not be available (just
like the bookmark menu)

Fixes #11092.

We may want to update the default set of bookmark to include some links
in the bar.
2014-08-04 14:59:30 +02:00
Adrien Destugues
bcd6a67bc0 Don't advertise deflate compression support.
There is some misunderstanding on what the "deflate" is, and we can't
reliably decode it in all cases. So, don't advertise support for it and
let servers use gzip (or no compression) instead.

Fixes #11093
2014-08-04 14:32:06 +02:00
Colin Günther
6a18ef8358 MediaKit: Remove superflous code in mpeg2_decoder_test.
- Thanks to automatic video decoding parameter detection, we no longer need to
  manually hack the correct parameters for this test to succeed, jiha!
2014-08-04 12:25:27 +02:00
Colin Günther
62320bdea2 FFMPEG Plugin: Automatic detection of video decoding parameters.
- Kudos to Marcus Overhagen for laying out the general idea of automatic
  detection by sharing some of his dvb code examples with me.
- Simplify pixel format search code by removing the loop and let FFMPEG
  decide what pixel format to use based on the actual video data.
- Automatically detect the video frame rate based on the actual video data.
- Remove fOutputVideoFormat to avoid synchronizing values in two distinct
  places. The member variable fHeader is the main place for important decoder
  parameters now.
- Introduce fOutputColorSpace containing the color space that was previously
  tracked in the fOutputVideoFormat member variable.
- Update the documentation accordingly.
2014-08-04 12:25:26 +02:00
Colin Günther
160f00bca8 FFMPEG Plugin: Implement video frame rate calculation for decoder.
- The frame rate calculation is purely based on AVCodecContext fields. This way
  the frame rate can be calculated by the FFMPEG decoder based on the actual
  video data. This is useful for automatically detection of the correct
  decoding parameters (not implemented yet but scheduled for a later commit).
- Not used anywhere yet (scheduled for a later commit).
- Also some minor documentation updates.
2014-08-04 12:25:25 +02:00
Colin Günther
60909c1e19 FFMPEG Plugin: Implement and use calculation of bytes per row. 2014-08-04 12:25:23 +02:00
Colin Günther
4f4d98911a FFMPEG Plugin: Extract video aspect ratio calculation code.
- Also make use of the extracted code in the AVCodecDecoder class.
- Enhance some documentation and fix some coding style violations.
- No functional change intended.
2014-08-04 12:25:22 +02:00
François Revol
05f06a9065 Update this script to match pkgman behaviour
We don't need to move away older packages anymore.

Probably not useful either to stop Deskbar,
but let's just keep that for now.
2014-08-04 00:21:58 +02:00
Jérôme Duval
92d556084c USB_massbulk.h: use a proper naming for a public header. 2014-08-03 18:39:35 +02:00
Jérôme Duval
d9ecf5f373 usb_disk: extract specs into a public header. 2014-08-03 18:10:51 +02:00
Colin Günther
22ea661b82 MediaKit: Extend media_[audio|video]_header structures.
- This allows a BMediaDecoder (e.g. FFMPEG Plugin) to communicate back format
  changes to its clients.
  For a more thorough explanation and discussion see haiku-development mailing
  list: http://www.freelists.org/post/haiku-development/Request-for-protest-Media-Kit-Extend-media-header-struct

- Backwards compatibility is taken into account and preserved by reducing the
  relevant _reserved[] fields.

- Code changes that will actually make use of these extensions are due for the
  following commits. As these structure extensions affect several Haiku
  components (e.g. media_server, MediaPlayer, etc.) and third party apps (e.g.
  StampTV, etc.) I refrain from committing them in one batch with this commit.
  This should make it easier to track down bugs originating in this code
  change.
(cherry picked from commit 806b6888d2dcf84b4934f8f137a48d3381864d1c)
2014-08-03 00:45:58 +02:00
François Revol
ea0457cd02 Add musicpc package 2014-08-02 13:33:00 +02:00
Philippe Saint-Pierre
478d9536a6 Icon outline setting was ignored if no background image found
Might have been the cause behind #10019.
2014-08-01 18:09:30 -04:00
François Revol
1336892c8b Update yab_ide package 2014-08-01 22:40:08 +02:00
Adrien Destugues
7435d82fb3 Update to the fixed (again) curl package. 2014-08-01 17:53:37 +02:00
Adrien Destugues
f0245dc225 Replace broken curl and ca_root_certificates
* Remove unneeded path mashup in curl to find the ca_root_certificates
and use the file in .self/data/ssl. This makes it possible to rename the
package providing ca_root_certificates without everything exploding.
* Use a certificate file in the format cURL expects, not Mozilla source
file in NSS format.
2014-08-01 09:38:29 +02:00
Adrien Destugues
6bd0ac9489 Data URLs: parse the whole URL, not just the path.
The RFC for Data URLs specifies a nonstandard format, and because of
this it doesn't support queries and fragments. This allows the use of
the # and ? characters in the URL data. We didn't handle this properly,
which would lead to truncated data.
2014-08-01 09:38:28 +02:00
Adrien Destugues
eec762686b Safer URL decoding.
Some URLs may use the % character for other purposes than URL-encoding
(this is seen in some data URLs). Make sure we parse that properly, and
avoid a possible out of bounds access if the percent char is near the
end of the string.
2014-08-01 09:38:26 +02:00
François Revol
dcef881fe6 First try at an icon for Music Player Daemon
Actually a scaled copy-paste of App_MediaPlayer, Misc_Speaker
and App_TV_2 with a few tweaks.
2014-07-31 23:04:56 +02:00
Oliver Tappe
a07cdb6e9f Define two pseudo targets for the target and build platform.
* The main build rules now cause their targets to depend on the
  platform such that global per-platform intializations can be
  set up by making the platform pseudo target depend on the
  target returned by the initialization rule.
2014-07-31 18:07:16 +02:00
François Revol
228df78b0e Update Boost packages to fix the _devel PROVIDES
I'm not building this again in a 1vcpu VM with not enough
disk space :-D
2014-07-31 17:35:01 +02:00
Oliver Tappe
ed25955ada Add SystemLibraryRules.
* This file contains jam rules for getting the different versions
  of libgcc, libsupc++ and libstdc++ used throughout Haiku's
  build system.
* Additionally, there are rules for accessing the c++ headers
  and the gcc headers.
* These rules are included by Jamrules, but not yet used anywhere.
2014-07-31 14:19:14 +02:00
Oliver Tappe
5bddecbc3b Add build features gcc_syslibs and gcc_syslibs_devel.
* gcc_syslibs contains the shared libraries that are being built
  as part of gcc, i.e. libgcc_s.so, libsupc++.so and libstdc++.so
* gcc_syslibs_devel contains the static versions of the respective
  libraries plus additionally kernel versions of libgcc.a and
  libsupc++.a (which do not provide support for pthreads or TLS
  and thus do not have any external dependencies). Additionally,
  this build feature contains the c++ and gcc headers from the
  non-legacy compiler.
2014-07-31 10:59:07 +02:00
Oliver Tappe
2ae3c64943 Improve IsPackageAvailable()
* When adjusting the package name for the secondary architecture,
  it is unclear where exactly in the package name the architecture
  specifier is. To remedy, we try all possible positions until
  we find the package (or there are no other possibilities).
2014-07-31 10:49:36 +02:00
Oliver Tappe
bd04aa3772 Cleanup: Fix missing evaluation of HAIKU_NO_LIBSUPC++.
* There's no user of HAIKU_NO_LIBSUPC++ anywhere, so the typo didn't
  have any effect.
2014-07-31 10:49:36 +02:00
Oliver Tappe
5cbd68a9b3 Update legacy compiler to version 2014_07_26. 2014-07-31 10:37:02 +02:00
Stephan Aßmus
e995976d4d HaikuDepot: Fixed outrageous lie. 2014-07-30 22:27:22 +02:00
François Revol
2a740449bb Use proper width for notification text
Fixes #10109.
2014-07-30 22:19:17 +02:00
François Revol
358a4dd379 ShowImage definitely knows Icon-O-Matic documents
And it's much easier to browse through data/artwork/icons!
2014-07-30 22:18:54 +02:00
François Revol
98f35f3a92 Add EHOSTDOWN to strerror() 2014-07-30 12:31:24 +02:00
François Revol
65b2278e9a How come we missed the case B_DONT_DO_THAT in strerror() ??? 2014-07-30 12:26:31 +02:00
François Revol
917634bc8a Add missing strings to strerror() for hrev46649 2014-07-30 12:26:31 +02:00
François Revol
35edaf281f gopher: Fix for 0-length path
This is the case for urls like gopher://gophernicus.org
(without trailing /), which ended up being downloaded instead of
displayed.
2014-07-30 11:20:56 +02:00
François Revol
b7e55f797d Some more comments on xdg_basedirs
At least WebOOB makes some use of those,
it should help unclutter the home directory.
2014-07-30 00:07:48 +02:00
Adrien Destugues
70f91e39aa Remove preprocessor checks from TestShell.h
* This is a header used by several parts of the code which should not
need to know about ELF symbol overriding and the fact that it is
optional.
* When the define is set, the methods will not be defined, but they
shouldn't be called, either
* This makes sure the memory layout of the class stays the same with the
define set or unset, and users can rely on it.

Fixes UnitTester on gcc2.
2014-07-29 23:05:52 +02:00
François Revol
dc5f63f635 Fix descriptions on X11 related packages 2014-07-29 22:43:28 +02:00
François Revol
70ed656a03 Add some X11-related packages
For XEmacs I need libXpm... which needs libX11... which needs...
2014-07-29 21:11:11 +02:00
Augustin Cavalier
ef21655b0b ca_root_certificates: Update to 2014_04_08-1.
Tested against wget, curl, and git, which all were still able
to verify certificates and download from HTTPS sites.

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-07-29 18:41:48 +02:00
Augustin Cavalier
a9822c2d28 HaikuPorts/x86_gcc2: Update both FFmpegs to 0.10.14-1.
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-07-29 18:09:47 +02:00
Colin Günther
f345d82773 FFMPEG Plugin: Code styles, typos and code deduplication.
- Kudos to stippi for taking the time pointing those out :)
  http://www.freelists.org/post/haiku-commits/haiku-hrev47576-srcaddonsmediapluginsffmpeg,1
- No functional change intended.

Signed-off-by: Colin Günther <coling@gmx.de>
2014-07-29 17:54:04 +02:00
François Revol
ca21718e14 Add python packages: dateutil, lxml, mechanize, requests 2014-07-29 17:20:51 +02:00
François Revol
d06cbe081b Add a profile.d file for XDG Base Directory Specification
We declare most of the XDG environment variables for this spec:
- XDG_CONFIG_HOME
- XDG_DATA_HOME
- XDG_CONFIG_DIRS
- XDG_DATA_DIRS
- XDG_CACHE_HOME

I'm not yet sure what to do with XDG_RUNTIME_DIR.
2014-07-29 17:02:24 +02:00
Adrien Destugues
dd6cdcf0b7 Fix copypaste bug in UnitTest rule.
Make the unittests target actually build all the UnitTests and not just
the UnitTestLibs.
2014-07-29 11:25:03 +02:00
François Revol
44a4999b89 gopher: Add TODOs 2014-07-28 22:01:49 +02:00
François Revol
80be7c9d8f gopher: Change 'd' type items to generic documents
Gophernicus uses it for PostScript as well.
2014-07-28 21:53:51 +02:00
François Revol
b8be186720 gopher: Handle errors from Gophernicus
It sends them as plain text instead of gopher directory
when it doesn't find something...
2014-07-28 20:26:47 +02:00
François Revol
e243a03476 gopher: return an error on resource not found 2014-07-28 19:15:16 +02:00
François Revol
111d695ac0 gopher: Use a BStackOrHeapArray as temporary buffer
And move it out of the loop, no need to construct it at
each iteration anyway.
2014-07-28 19:04:13 +02:00
François Revol
579f95647d gopher: (disabled) controls and size attributes on audio/video
Currently those crash WebPositive when enabled.
2014-07-28 18:34:50 +02:00