Commit Graph

59180 Commits

Author SHA1 Message Date
Kacper Kasper
35a074e071 BStringView: fix #14680 2018-11-05 19:41:38 +01:00
Peter Kosyh
eef12cec97 mail_daemon: IMAP delete messages on the server only when delete_remote_when_local setting is set
Change-Id: I88fcc7a185cede080af7c3b85f9466a02f895809
Reviewed-on: https://review.haiku-os.org/674
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2018-11-05 17:30:09 +00:00
Olivier Coursière
7c96721b51 Usability improvements in StartTeamWindow
- Enlarge the window's width so a larger part of the path will fit in the TextBox.

- Apply the existing path to the BFilePanel before browsing. It improve
usability when you paste a path or type a new one in the TextBox
then click on the browse button to choose the application
or fine tune the directory.

Please not that it is a best effort feature : if the file or the directory does
not exist, the BFilePanel will fallback to the old behavior :
showing the previously selected file/directory in the session
(or home directory).

Change-Id: I504a1ec72f9f7a236e2e37039961fddc58218eae
Reviewed-on: https://review.haiku-os.org/672
Reviewed-by: Rene Gollent <rene@gollent.com>
2018-11-05 00:01:36 +00:00
Augustin Cavalier
6ccc2b9f89 Tracker: Add some missing NULL checks.
Fixes #14685.
2018-11-04 15:38:21 -05:00
Augustin Cavalier
85f8e70013 Revert "jam: Fix bootstrap via absolutes in LD_LIBRARY_PATH"
This reverts commit 030d0eb58f.

It is absolutely not correct to assume PWD is the generated dir;
it may also be the repository root.

Fixes jam putting some build artifacts in the source tree.
2018-11-04 15:37:31 -05:00
Alexander von Gluck IV
5bd0fbd13a build: Add riscv architecture
* I mean, qemu 3.0 supports it.
* Nobody get excited, we need all the triplets added to
  our gcc buildtools. clang 7.0 seems to be cool with riscv though.

Change-Id: I17728163e4f28a3c16cee482a253364724b06f3a
2018-11-04 13:47:50 -06:00
Axel Dörfler
efafab643c Deskbar: Resizable tray
* Adds max width and height arguments to
  instantiate_deskbar_(item|entry).
* Old applications just stay with a 16x16 scaled icon, though.
* All used apps within the repository are converted to the new call
  besides the input_server input method icon (that will need further
  API changes in the input_server).

Change-Id: I29cc439396917be2c24135888459d31364997dff
Reviewed-on: https://review.haiku-os.org/656
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 19:00:49 +00:00
Peter Kosyh
1ad1c1c87b mail_daemon: ESMTP auth fix (250 AUTH reply)
See RFC 5231 (https://tools.ietf.org/html/rfc5321): "Following the normal
syntax for multiline replies, these keywords follow the code (250) and a
hyphen for all but the last line..."

Change-Id: I1ee533a332d1e18ffddd4ad1520d14f4013b739e
Reviewed-on: https://review.haiku-os.org/670
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 18:57:28 +00:00
Axel Dörfler
b5ecd7c203 DirectWindowStars: Fixed 64-bit build 2018-11-04 18:37:55 +00:00
Axel Dörfler
0f03d737b9 Tracker: List view icons now grow with font size
* This also removes the mini/large icon mode for list views; it's now
  simply always matching your font size.

Change-Id: Ieedd86cc3a50dd0f950d97bbd9839384d44f8bd3
Reviewed-on: https://review.haiku-os.org/662
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 17:36:50 +00:00
Peter Kosyh
65d8c2f34f mail_daemon: ErrorLogWindow fix forever ResizeTo
Change-Id: Ibd5721ff7c9bfd7fcee30438b61a63720f1a6206
Reviewed-on: https://review.haiku-os.org/668
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 17:05:53 +00:00
Adrien Destugues
5e14319a11 ffmpeg: use new producer/consumer API for video decoding
This API allows us to send whole packets no matter how the video is
formatted, and get frames out as they are ready (sometimes multiple
frames per packets, which did not work well with the previous API).

Change-Id: I0bd7d4706e330bb11d87cb41e93cfc6995b4b3a5
Reviewed-on: https://review.haiku-os.org/665
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 17:04:06 +00:00
Adrien Destugues
ce402e82f2 ffmpeg: remove deprecated comment.
This field is deprecated.

Change-Id: I18c3b89ef7438c61b464aaf8bebc1484bf479d6b
Reviewed-on: https://review.haiku-os.org/664
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 17:03:13 +00:00
Adrien Destugues
9e2c056c27 ffmpeg: fix timestamp tracing
Use ffmpeg functions to format the timestamps.

Change-Id: Idd51feb22fc6c5a70e177604eb995ae2d8601cd4
Reviewed-on: https://review.haiku-os.org/663
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-04 17:03:13 +00:00
Alexander von Gluck IV
8850049390 docker/bootstrap: Add missing pkg-config for ICU
* ARM now gets up to the ICU build failures. (yay?)

Change-Id: Iaad978fe86f8cbb57e553bc3584bd8351559c7dc
2018-11-04 09:13:24 -06:00
Alexander von Gluck IV
3a92284113 docker/bootstrap: Make README.md a bit more detailed
Change-Id: If095b584cd99521770280533359da5024ff745bf
2018-11-04 09:05:15 -06:00
Alexander von Gluck IV
1b7e0197c1 docker/bootstrap: zlib needs cmake
Change-Id: I460f811bd2ea144ea8121772024e19686e2fa9bb
2018-11-04 09:04:48 -06:00
Alexander von Gluck IV
030d0eb58f jam: Fix bootstrap via absolutes in LD_LIBRARY_PATH
* The PWD's are live based on jam run location which means
  they shouldn't bind the generated directory to a fixed path
  as before.
* We also need an absolute LD_LIBRARY PATH since haikuporter
  loses the context invoking host tools.
* I don't think we can run jam from outside of the generated
  directory anymore... but I don't think that was a thing.

Change-Id: I020f902ce5235bf268c9075d6e2ae85296a4ad20
2018-11-04 08:39:01 -06:00
Alexander von Gluck IV
9f35df2324 docker/bootstrap: Add --debug to get better haikuporter debug output
Change-Id: I8e9a093a28c96b334f3747d1624b9ee6d5fe9844
2018-11-04 08:37:54 -06:00
Augustin Cavalier
c87601b89a ps2: Fix Werrors. 2018-11-03 15:22:53 -04:00
Augustin Cavalier
4e1ffc1266 freebsd11_network: Add "return 0" to placate warning. 2018-11-03 15:22:30 -04:00
Axel Dörfler
1fab551726 Deskbar: Center window icons in WindowMenuItem
* They had a fixed top offset which looked bad with larger font sizes.
* The icons should be replaced with vector icons, though, and properly
  resized.
2018-11-03 20:03:16 +00:00
Axel Dörfler
5fd3bc6d2c BDeskbar: Moved constants to shared header
* Instead of duplicating them in different files.
2018-11-03 20:03:15 +00:00
Kuroneko
ed08b22dec add-ons/mail_daemon: IMAP: limit UIDs in UID FETCH
Some IMAP servers (such as dovecot) have hard line length limits for
commands.

The way UID FETCH was being scheduled was creating FETCHes longer than
the maximum length.

Limit these to a reasonable number of UIDs per fetch, such that we have
a hope of success when facing monsterous mailboxes.

Change-Id: I8a2184eec1b8fcab6f7914a9b14ad008700b96d1
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/626

Style fixes by me, and also replaced emplace_back with push_back
for GCC2 compatibility.
2018-11-03 14:45:50 -04:00
Augustin Cavalier
065c9986f8 ipro1000: Enable the non-legacy TX path. 2018-11-03 14:31:45 -04:00
Augustin Cavalier
94064605f5 freebsd11_network: Add mtx_trylock() and curcpu.
These are needed for the "non-legacy" TX path in ipro1000.
Also remove the "spinlock" member from struct mtx; struct mtx_spin
is different (and not implemented by us presently.)
2018-11-03 14:30:37 -04:00
Peter Kosyh
6f3f2e141c NetServer::_JoinNetwork: fix crash when name == NULL
Change-Id: Ie6a5b5af855ee2b6bec81dc6c37ff0fa6271deea
Reviewed-on: https://review.haiku-os.org/661
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-03 17:49:03 +00:00
Fredrik Holmqvist
3431cf5b06 PS2 Elantech mostly working still disabled
Does handle coords correctly, but two finger jumps position somewhere
We can also report actual buttons, but not sure how movementmaker handles
it.

Will do cleanup once working

To test or help out return B_OK in probe_elantech
2018-11-03 18:10:40 +01:00
Peter Kosyh
586138b632 ps2_reset_mouse: error in checking response logic
Change-Id: Ia4011938cf914b2bc2ba9d5cd595fa0ef66d11dd
Reviewed-on: https://review.haiku-os.org/659
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-03 17:04:55 +00:00
Fredrik Holmqvist
9b6198ec5f Unused #define INFO, no sense in internal logic
(Just starting to cleanup my ps2_elantech code)
2018-11-03 17:56:31 +01:00
Kacper Kasper
800e6fe412 BStringView: add support for multiline strings
* Actually draw the string at the bottom of the frame.
* Unfortunately BStringList cannot be cached because there is no
  space left in the class.
* Change SGI and PNG translators to use it in place of BTextView.

Change-Id: I07e12bf1a8dc956d18c9624604c7b63453ad15a2
Reviewed-on: https://review.haiku-os.org/620
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-03 16:44:10 +00:00
Adrien Destugues
22e03e588e Allow to change brightness from the command line
screenmode can now set the brightness (only for intel_extreme, still).
Both absolute and relative values are accepted, allowing to bind
keyboard shortcuts to "increase brightness" and "decrease brightness".

Change-Id: I5221532ebdfba5df1b4d4e1f3331406359f2807c
Reviewed-on: https://review.haiku-os.org/655
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
2018-11-03 15:51:08 +00:00
Alexander von Gluck IV
657081f3c6 bootstrap: Fix bootstrap after HAIKU_TOP changes
* haikuporter's cwd is the haikuporter path during execution
  (haikuporter/HaikuPorter)
* We have to pass the full working path and can't use a relative
  path here
* Seems to fix the bootstrap build

Change-Id: Ibb139f164c5e08eda3a08136c4e9ea2c9eaeae9e
2018-11-03 09:43:37 -05:00
Axel Dörfler
e85413ad6c DiskProbe: Coding style cleanup
* Not complete, no functional changes intended.
2018-11-03 14:07:00 +00:00
Axel Dörfler
49135c955b desklink: Replaced muted speaker icon with stippi's version
* Replaced the muted speaker icon with a new one, thanks Stephan!
* Moved speaker icons into resources.
2018-11-03 14:07:00 +00:00
Alexander von Gluck IV
bae2263db9 docker/bootstrap: Add extra gcc bootstrap requirements
Change-Id: Icacba4faaaab7e9af2b04225f99ef00ea4753606
2018-11-02 22:32:12 -05:00
Augustin Cavalier
4ee3f16d6a build: Use the absolute path on more instances of build_* scripts. 2018-11-02 23:26:11 -04:00
Augustin Cavalier
f2b20de6d6 Jamrules: Fix instantiation of HAIKU_ABSOLUTE_OUTPUT_DIR.
That's what I get for copy-pasting without reading over what I
just did...
2018-11-02 22:46:19 -04:00
Augustin Cavalier
68191643b8 build: Add HAIKU_ABSOLUTE_TOP and use it to root BootArchive.
Strictly POSIX-compliant shells (like dash) do not allow sourcing
files in the present directory without "./". The script really should
not know or care about what directory the passed files are in,
so now we add a jam grist to make the passed paths absolute.

Fixes the build on all systems where /bin/sh is dash or a similarly
POSIX-compliant-no-extensions shell (i.e. virtually all Linux.)
2018-11-02 21:46:22 -04:00
Augustin Cavalier
8b4ab45439 BootRules: BuildMBR links as well as compiles, so pass in LINKFLAGS.
Clang builds presently have some magic in it that is required for
linking to work at all.
2018-11-02 21:41:53 -04:00
Adrien Destugues
95e0ce2c0b Add an haiku_extras package.
Curerntly contains support for amiga RDB and Apple (PPC) partitionning systems,
that is, things that might be useful, but not for most users, and was
not part of the default package.

Naming inspired from the Extras disk shipped with Amiga Workbench, for
lack of a better idea.

Change-Id: I57fb229806139939bc019e6c43b0aec7ea1f483a
Reviewed-on: https://review.haiku-os.org/652
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-03 00:43:41 +00:00
Kacper Kasper
4abe18063a makefile-engine: add .cxx extension handling
Change-Id: I67312f69c71b0653013bd001613dbac5cb464594
Reviewed-on: https://review.haiku-os.org/654
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-02 21:18:35 +00:00
Alexander von Gluck IV
131f09907e docker/bootstrap: Add a few tools to bootstrap in a container
* The bootstrap process will pick up on local toolchains such
  as clang and use them instead of the correct gcc cross-tools.
* This limits environmental factors which can break bootstrap.

Change-Id: Iacdd2a44cf26e18f838c9251fb9eddfbcb12565e
2018-11-02 15:12:04 -05:00
Alexander von Gluck IV
8de3883d8b bcm2835: Move mailbox init into bcm2835 framebuffer
We won't need the mailbox for most chipsets except bcm2835
to determine the framebuffer base address.
(especially at this early boot stage)

This simplifies things by making the mailbox usage limited
to boot_arch_arm and not spreading it all thoughout the
platform u-boot code... however we keep the mailbox driver
as-is since it would make a good kernel driver someday.

mmu_man mentioned us "finding" the fb base from the mailbox
and modifying the FDT to let it know the base reg of the
framebuffer... that's beyond 'just getting things building'
though :-)

Change-Id: Ic2772b85dff004f9d21447ea5958b5ae9776d526
2018-11-02 12:46:54 -05:00
Kacper Kasper
3bac8deff6 Add -a option to locale utility
* Required by POSIX.

Change-Id: Ided0a9d45d5edd00f3aa6279e99ca486ca372f6c
Reviewed-on: https://review.haiku-os.org/651
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-02 14:25:57 +00:00
Alexander von Gluck IV
bdcc7b74fc arch_mailbox: Stub out virtual Read/Write functions
* Nice catch mmu_man!

Change-Id: I92a00ec5c66313107e586f7b3ee8a1fa5021b2be
2018-11-01 21:31:56 -05:00
Augustin Cavalier
c52d856e2d Jamrules: Permit (but don't advertise) support for any relative path.
This allows fully "shadowed" builds to work, as the buildbots do.
2018-11-01 21:37:04 -04:00
Augustin Cavalier
f7b5d8a16b Jamrules: Print the path to the repository root in the error case. 2018-11-01 21:26:38 -04:00
Augustin Cavalier
3facc270ea Jamrules: Force HAIKU_TOP to be relative.
Prior to hrev47631 (2014), HAIKU_TOP was relative when jam was invoked
from the repository root, and not relative when jam was invoked from
any other location, including "generated." In hrev47631, Jamrules
was changed to be as it was before this commit, in order to fix #11101
(Haiku repository creation failed due to the use of relative paths.)

GCC, however, injects the full path passed to the compiler into some
symbols under certain circumstanes (anonymous namespaces, for one),
and so a relative path for more reproducible builds is preferred.
It seems the aforementioned bug is no longer with us, as a full image
build that I did with this change worked just fine.

Note that you will have to run "configure --update" after this
in the case that you usually invoke "jam" from the generated directory,
as the Jamfile configure generated included absolute paths. (The reminder
to do that this diff includes can be removed after some reasonable amount
of time.)
2018-11-01 20:56:04 -04:00
Augustin Cavalier
49783dc8f2 strace: Gracefully handle invalid syscall numbers.
OpenJDK 1.8 somehow manages to trigger this. Before this commit it would
just attempt to read past the end of the vector, which of course segfaulted,
which seems to imply nobody has run into this case before.
2018-11-01 20:51:05 -04:00