Commit Graph

51213 Commits

Author SHA1 Message Date
Augustin Cavalier
0b38b0a136 cddb_daemon: Various fixes.
* Add ".wav" to the ends of filenames
 * Add a track number at the beginning of the filename, e.g. "01"
 * Don't hard-fail if the FreeDB response contains an invalid year

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-07-09 20:10:16 +02:00
Colin Günther
d65388e7fa Media Kit: Add workaround for #11018 to MP3 audio stream decoder test.
The workaround triggers the loading of all media plugins prior to using
methods of class BMediaFormats. Using the function get_next_encoder()
is used because of two facts

1. It is publicly available and thus can be used by 3rd party apps,
   too.
2. It is already available by including BMediaFormats.h, so there is
   no need to include another header for this workaround.

Signed-off-by: Colin Günther <coling@gmx.de>
(cherry picked from commit a89b0a4e69f18b2b3b2c2f5615450a5ddac838af)
2014-07-09 19:06:27 +02:00
Colin Günther
50b586b9de Media Kit: Add workaround for #11018 to MPEG2 video stream decoder test.
The workaround triggers the loading of all media plugins prior to using
methods of class BMediaFormats. Using the function get_next_encoder()
is used because of two facts

1. It is publicly available and thus can be used by 3rd party apps,
   too.
2. It is already available by including BMediaFormats.h, so there is
   no need to include another header for this workaround.

Signed-off-by: Colin Günther <coling@gmx.de>
(cherry picked from commit 80354716fe8b25c81ec45bd96ae36e171228b8a0)
2014-07-09 19:06:12 +02:00
Colin Günther
366ee54830 DVB media addon: Fix debug build.
- Compiling dvb.media_addon with DEBUG on fails with error message:
    generated/objects/haiku/x86/debug_1/add-ons/media/media-add-ons/dvb/
    MediaFormat.o: In function `av_log2_c': /boot/home/Development/haiku-a4/
    generated/build_packages/ffmpeg-0.10.2-r1a4-x86-gcc2-2012-08-30/common/
    include/libavutil/common.h:80: undefined reference to `ff_log2_tab'
    collect2: ld returned 1 exit status"

- Research done to narrow down the solution space:
    - ff_log2_tab is a array that is nowhere needed in the dvb.media_addon
    - ff_log2_tab is defined as an extern array in the ffmpeg header file
      libavutil/common.h
    - ff_log2_tab is used in the inline function av_log2_c (libavutil/common.h)
      which doesn't get optimized away when compiling with debug information
    - MediaFormat.cpp needs only some Codec-IDs from the ffmpeg header file
      avcodec.h

- The following fixes were tried:
    - Trying to eliminate unused debug symbols with compilation
      flag -feliminate-unused-debug-types (see gcc documentation
      http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Debugging-Options.html#Debugging-Options)
      by adding the following lines to UserBuildConfig
          AppendToConfigVar C++FLAGS : HAIKU_TOP src : -feliminate-unused-debug-types : global ;
          AppendToConfigVar CCFLAGS : HAIKU_TOP src : -feliminate-unused-debug-types : global ;
      -> Failed, because flag -feliminate-unused-debug-types is not supported by GCC 2.95.3

    - Trying to eliminate unused debug symbols in the linker stage
      -> This worked, by removing the LINKFLAG "-Xlinker --no-undefined" when
         linking all objects into the dvb.media_addon we are getting our addon
         with debug symbols.

- Final solution:
    - Instead of adding/removing flags, we just add the missing implementation
      for the ff_log2_tab array in MediaFormat.cpp. This -feels- the seems to
      be the cleanest solution as it is more obvious what's goin' on compared
      to hiding the solution in the Jamfile.

Signed-off-by: Colin Günther <coling@gmx.de>
2014-07-09 19:05:00 +02:00
Gerasim Troeglazov
cb5ed9c755 MimeType: fix SetFileExtensions 2014-07-09 13:23:01 +00:00
Ingo Weinhold
a629567a90 package: Add command recompress
The streaming feature for -0 is missing yet.
2014-07-08 22:00:36 +02:00
Ingo Weinhold
cdfeba5a1e BPackageWriter: Add Recompress()
Allows rewriting an existing package file with a different compression.
2014-07-08 22:00:35 +02:00
Ingo Weinhold
2fc2aebcba PackageWriterImpl: Move _Finish() impl to match order in header 2014-07-08 22:00:35 +02:00
Ingo Weinhold
f5a20d5ff1 package kit: PackageFileHeapReader::Init(): Sanity checks
Make sure the compressed/uncompressed heap size and the chunk size
table look plausible, so we can rely on the values later. Fixes
potential crashes for corrupt packages.
2014-07-08 22:00:35 +02:00
Augustin Cavalier
d229332a33 CIDs 1162783 & 1162784: out-of-bounds access & write in MSI.
* The number of IO vectors is not 256 on x86, but rather 224 as set by
  NUM_IO_VECTORS in "arch_int.h".
* Jessicah mentioned hearing about MSI crashes before, but that was a
  few weeks ago.
* These were the only CIDs in the MSI code.

Signed-off-by: Michael Lotz <mmlr@mlotz.ch>
2014-07-08 20:39:37 +02:00
John Scipione
819b454750 PS/2 bus manager: style fixes only 2014-07-07 17:38:55 -04:00
Colin Günther
7a28891db4 Media Kit: Add MP3 audio stream decoder test.
- This test currently fails and thus showing that there is something wrong in
  the Media Kit.
- This test was first developed and tested on Haiku R1 Alpha 4.1 where
  every thing was hacked together to make this test succeed, thus showing that
  the current Media Kit state of affair has some issues and not this test :)
- The test comes with documentation (@see mp3_decoder_test.cpp).

Signed-off-by: Colin Günther <coling@gmx.de>
2014-07-06 13:51:35 +00:00
Colin Günther
c5954368ed Media Kit: Add MPEG2 video stream decoder test.
- This test currently fails and thus showing that there is something wrong in
  the Media Kit.
- This test was first developed and tested on Haiku R1 Alpha 4.1 where
  every thing was hacked together to make this test succeed, thus showing that
  the current Media Kit state of affair has some issues and not this test :)
- The test comes with documentation (@see mpeg2_decoder.test.cpp).

Signed-off-by: Colin Günther <coling@gmx.de>
2014-07-06 13:51:31 +00:00
Augustin Cavalier
d71c5a1ebf #10717: Addressing issues brought up by Axel and Gerasim
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-07-06 14:02:12 +12:00
Augustin Cavalier
ba38276d19 Ensure partition block size is not 0.
* I tried having this test in KDiskDeviceManager.cpp, but it
   failed booting in one case and did not solve the problem in another.
   I think this is because there is an Open() call here, and that rereads
   the blocksize.
 * Tested and it solved the problem for me.
 * Should fix #10717 and #9489 at least.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-07-06 10:24:14 +12:00
François Revol
6c2a6f092c clipboard: Hopefully fix 64bit build
Untested
2014-07-04 14:39:03 +02:00
François Revol
9220bcf1f6 Add /bin/clipboard to the regular images
Seemed to have gone missing in action somehow.
2014-07-04 13:58:58 +02:00
Jérôme Duval
756ed316a7 gcc_bootstrap: bump revision. 2014-07-04 00:08:07 +02:00
Arvind S Raj
c2da73b90e Corrected version of gcc_bootstrap to match the version in HaikuPorts recipe.
* There was a version mismatch between HaikuPorts gcc_bootstrap recipe
  and build/jam/repositories/HaikuPortsCross/arm which prevented
  building @bootstrap-raw for ARM. Thanks Ingo for helping out!
* Ditto for ppc, x86, x86_64.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-07-03 22:26:02 +02:00
Oliver Tappe
c90d405154 Disable TLS support on x86_64 explicitly.
* Building gcc-4.8.3 on x86_64 with TLS support fails with an internal
  compiler error. Until that problem is fixed, don't use TLS on x86_64,
  which (due to libstdc++ compatibility) requires the same for the
  host cross compiler.
2014-07-03 19:43:24 +02:00
Oliver Tappe
6f32bafa70 Use a specific packager for continuous integration builds. 2014-07-03 18:12:07 +02:00
Oliver Tappe
5de87ca904 Copy haikuports/FormatVersions onto the bootstrap image.
* Without it, haikuporter will believe there's a version mismatch
  between itself and the haikuports tree.
2014-07-03 18:12:07 +02:00
Ingo Weinhold
b04949711d BUrl::IsValid(): Replace with a slightly better dummy impl 2014-07-03 17:39:59 +02:00
Ingo Weinhold
c666db88ef BZlibCompressionAlgorithm: Missing NULL check 2014-07-03 17:39:59 +02:00
Ingo Weinhold
a5330a8e41 Remove private support kit BUrl
Use the public BUrl from the network kit instead.
2014-07-03 17:39:59 +02:00
Ingo Weinhold
72f6b787cf BUrl: Add missing functionality from support kit BUrl 2014-07-03 17:39:59 +02:00
Ingo Weinhold
2573655b79 Revert "Revert "HttpRequest: support gzip and deflate compression.""
This reverts commit 256080b112.

With the following changes:
* Adjusted to the BZlibCompressionAlgorithm API.
* Add some error handling.
2014-07-03 17:39:58 +02:00
Ingo Weinhold
c99f294eb0 BNetBuffer: Restore semantics after DynamicBuffer -> BDataIO 2014-07-03 17:39:58 +02:00
Ingo Weinhold
25d34313d0 DynamicBuffer::Read(): Small optimization (skip 0 case) 2014-07-03 17:39:58 +02:00
Ingo Weinhold
6926863e37 DynamicBuffer::Write(): Fix return type and semantics 2014-07-03 17:39:58 +02:00
Ingo Weinhold
7616c39db6 DynamicBuffer: dos2unix 2014-07-03 17:39:57 +02:00
Ingo Weinhold
739f15e144 Revert "Revert "DynamicBuffer: implement BDataIO""
This reverts commit 747b401e87.
2014-07-03 17:39:57 +02:00
Adrien Destugues
4260c14601 Release HaikuWebkit 1.4.1. 2014-07-03 11:10:23 +02:00
Adrien Destugues
9f9912d919 Update Sum-It package to a much smaller version built in release mode. 2014-07-03 08:19:19 +02:00
Augustin Cavalier
c441188551 Update Qt, Quassel, and QupZilla packages.
* Additionally, rename Qt from qt4 to libqt4.
* [zooey]: Corrected sorting order.

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-07-02 20:23:11 +02:00
Augustin Cavalier
6a6d640619 Remove duplicate "libpaper" entry.
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-07-02 20:23:11 +02:00
John Scipione
ba88ee2be4 Allow ol's to show numbers 2014-07-02 11:11:57 -04:00
John Scipione
425871d3af Update BWindow::Zoom() docs 2014-07-02 11:09:31 -04:00
Adrien Destugues
c1986edd36 Make Web+ use C++11.
* This is now required by HaikuWebKit headers.
* Should fix the x86_64 build.
2014-07-02 08:16:21 +02:00
Adrien Destugues
9522c1e4f2 Add unbootstrap, a script to remove _bootstrap from packages.
This needs to be run under haiku as it uses the package tool. It can be
used to remove the _bootstrap tagging from bootstrap packages and then
upload them to the repos as normal packages. The goal is to make
non-bootstrap builds work even for archs where the bootstrap isn't
working yet.

Packages built that way should be replaced as soon as better ones are
obtained by the proper bootstrapping process.
2014-07-02 08:16:20 +02:00
François Revol
7670cd86b4 Add WIP VirtualBox Guest Additions package
For now only clipboard sharing is supported. Run VBoxTray to activate it.

My first uploaded package :)
2014-07-02 00:10:26 +02:00
Ingo Weinhold
5c8bfe24ea compression_test: Add option for gzip format 2014-07-01 21:54:58 +02:00
Ingo Weinhold
72cf56a0fd BZlibCompressionAlgorithm: Basic support for gzip format 2014-07-01 21:54:58 +02:00
Adrien Destugues
3b19a78137 Update HaikuWebkit to 1.4.0 for x86_64
There are some known issues with this version (1.4.1 will follow soon), but at least it fixes the build.
2014-07-01 21:12:48 +00:00
Adrien Destugues
14d1df6644 Add gyp and python_setuptools packages.
Requested by Waddlesplash.
2014-07-01 16:45:24 +02:00
Oliver Tappe
8f49820300 Update python on x86_gcc2 to 2.6.9.
* This allows python_twisted to be installed on x86_gcc2, as it requires
  python >= 2.6.9.
2014-07-01 00:54:30 +02:00
John Scipione
844df0d7a4 ProcessController: Fix CID 701784
Unchecked return value  (CHECKED_RETURN)

If get_team_usage_info() fails set the times to 0.

Also remove unused get_team_info() call.
2014-06-30 17:23:41 -04:00
John Scipione
37add6e474 ProcessController: Check if pointers are NULL 2014-06-30 17:23:40 -04:00
John Scipione
98ec4e9467 ProcessController: style fixes to TeamBarMenuItem 2014-06-30 17:23:38 -04:00
Ingo Weinhold
b3263ad3e1 Switch package kit to BZlibCompressionAlgorithm
... and remove the Zlib{Compressor,Decompressor} API.
2014-06-30 21:55:41 +02:00