Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.
This commit is contained in:
Alex Smith
2012-08-10 09:32:54 +01:00
parent e963289800
commit 5084d0d451
18 changed files with 54 additions and 48 deletions
+23 -8
View File
@@ -27,16 +27,20 @@ SYSTEM_BIN = "[" addattr base64 basename bash beep cal cat catattr chgrp chmod
<bin>install isvolume join kernel_debugger kill less lessecho lesskey link
linkcatkeys listdev ln locale locate logger logname ls md5sum mkdir mkfifo
mktemp mount mountvolume mv nl nohup nproc od paste patch pathchk pr
printenv printf ps ptx pwd readlink rm rmattr rmdir safemode sdiff seq
sha1sum shred shuf sleep sort split stat strace stty su sum sync sysinfo
tac tail tee test timeout touch tr true truncate tsort tty unexpand uname
uniq unlink unmount unzip <bin>updatedb waitfor wc whoami xargs xres yes
zdiff zforce zgrep zip zipcloak <bin>zipgrep zipnote zipsplit zmore znew
printenv printf ps ptx pwd readlink ReadOnlyBootPrompt rm rmattr rmdir
safemode sdiff seq sha1sum shred shuf sleep sort split stat strace stty su
sum sync sysinfo tac tail tee test timeout touch tr true truncate tsort tty
unexpand uname uniq unlink unmount unzip <bin>updatedb waitfor wc whoami
xargs xres yes zdiff zforce zgrep zip zipcloak <bin>zipgrep zipnote
zipsplit zmore znew
;
SYSTEM_APPS = Terminal ;
SYSTEM_APPS = AboutSystem Terminal ;
SYSTEM_PREFERENCES = ;
SYSTEM_PREFERENCES = Appearance Backgrounds <preference>Deskbar FileTypes
Keyboard Keymap Locale Mouse Notifications Screen Time Touchpad
<preference>Tracker
;
SYSTEM_DEMOS = ;
@@ -49,7 +53,9 @@ SYSTEM_LIBS = libbe.so libbnetapi.so libdebug.so libnetwork.so
PRIVATE_SYSTEM_LIBS = ;
SYSTEM_SERVERS = app_server debug_server input_server registrar syslog_daemon ;
SYSTEM_SERVERS = app_server debug_server input_server mount_server
notification_server registrar syslog_daemon
;
SYSTEM_ADD_ONS_ACCELERANTS = vesa.accelerant ;
@@ -153,6 +159,15 @@ for linkTarget in $(DESKBAR_APPLICATIONS) {
: /boot/system/apps/$(linkTarget) : $(linkTarget) ;
}
# Deskbar Preferences links
AddDirectoryToHaikuImage home config settings deskbar Preferences ;
DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ;
for linkTarget in $(DESKBAR_PREFERENCES) {
AddSymlinkToHaikuImage home config settings deskbar Preferences
: /boot/system/preferences/$(linkTarget)
: $(linkTarget) ;
}
AddSymlinkToHaikuImage system bin : less : more ;
AddSymlinkToHaikuImage system bin : gzip : gunzip ;
AddSymlinkToHaikuImage system bin : gzip : zcat ;
-3
View File
@@ -329,8 +329,6 @@ fi # ! updateOnly
# add the concatenated copyrights as an attribute to AboutSystem
if [ ! $updateOnly ]; then
# TODO x86_64: temporary hack, AboutSystem doesn't exist yet.
if [ -f $outputDir/objects/haiku/*/*/apps/aboutsystem/AboutSystem ]; then
if [ -f $copyrightsFile ]; then
copyrightAttrs=$tmpDir/copyrightAttrs
$rmAttrs -f $copyrightAttrs
@@ -339,7 +337,6 @@ if [ -f $outputDir/objects/haiku/*/*/apps/aboutsystem/AboutSystem ]; then
$copyAttrs ${sPrefix}$copyrightAttrs ${tPrefix}system/apps/AboutSystem
fi
fi
fi
if [ $isCD ]; then
# generate the attribute stores
-8
View File
@@ -116,14 +116,6 @@ if [ "$SAFEMODE" != "yes" ]; then
waitfor _input_server_event_loop_ # wait for input devices
fi
# TODO: remove this when x86_64 is more complete.
if [ "$(uname -m)" = "x86_64" ]; then
cd /boot/home
launch system/Tracker
launch system/Deskbar
exit
fi
# Now ask the user if he wants to run the Installer or continue to the Desktop.
if [ "$isReadOnly" = "yes" ]; then
# Create Installer link (using the write overlay)
+1 -1
View File
@@ -970,7 +970,7 @@ AboutView::_CreateCreditsView()
if (year < 2008)
year = 2008;
snprintf(string, sizeof(string),
COPYRIGHT_STRING "2001-%ld The Haiku project. ", year);
COPYRIGHT_STRING "2001-%" B_PRId32 " The Haiku project. ", year);
fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey);
fCreditsView->Insert(string);
@@ -143,8 +143,8 @@ DecorSettingsView::_BuildDecorMenu()
for (int32 i = 0; i < count; ++i) {
DecorInfo* decorator = fDecorUtility.DecoratorAt(i);
if (decorator == NULL) {
fprintf(stderr, "Decorator : error NULL entry @ %li / %li\n",
i, count);
fprintf(stderr, "Decorator : error NULL entry @ %" B_PRId32 " / %"
B_PRId32 "\n", i, count);
continue;
}
@@ -258,7 +258,7 @@ FontSelectionView::_BuildSizesMenu()
continue;
char label[32];
snprintf(label, sizeof(label), "%ld", size);
snprintf(label, sizeof(label), "%" B_PRId32, size);
BMessage* message = new BMessage(kMsgSetSize);
message->AddInt32("size", size);
@@ -297,7 +297,7 @@ void
FontSelectionView::_SelectCurrentSize(bool select)
{
char label[16];
snprintf(label, sizeof(label), "%ld", (int32)fCurrentFont.Size());
snprintf(label, sizeof(label), "%" B_PRId32, (int32)fCurrentFont.Size());
BMenuItem* item = fSizesMenu->FindItem(label);
if (item != NULL)
@@ -610,11 +610,11 @@ ApplicationTypeWindow::_SetTo(const BEntry& entry)
// version info
char text[256];
snprintf(text, sizeof(text), "%ld", versionInfo.major);
snprintf(text, sizeof(text), "%" B_PRId32, versionInfo.major);
fMajorVersionControl->SetText(text);
snprintf(text, sizeof(text), "%ld", versionInfo.middle);
snprintf(text, sizeof(text), "%" B_PRId32, versionInfo.middle);
fMiddleVersionControl->SetText(text);
snprintf(text, sizeof(text), "%ld", versionInfo.minor);
snprintf(text, sizeof(text), "%" B_PRId32, versionInfo.minor);
fMinorVersionControl->SetText(text);
if (versionInfo.variety >= (uint32)fVarietyMenu->CountItems())
@@ -623,7 +623,7 @@ ApplicationTypeWindow::_SetTo(const BEntry& entry)
if (item != NULL)
item->SetMarked(true);
snprintf(text, sizeof(text), "%ld", versionInfo.internal);
snprintf(text, sizeof(text), "%" B_PRId32, versionInfo.internal);
fInternalVersionControl->SetText(text);
fShortDescriptionControl->SetText(versionInfo.short_info);
@@ -108,7 +108,7 @@ ProgressWindow::ProgressWindow(const char* message,
fQuitListener(signalQuit)
{
char count[100];
snprintf(count, sizeof(count), "/%ld", max);
snprintf(count, sizeof(count), "/%" B_PRId32, max);
fStatusBar = new BStatusBar("status", message, count);
fStatusBar->SetMaxValue(max);
@@ -141,7 +141,8 @@ ProgressWindow::MessageReceived(BMessage* message)
switch (message->what) {
case B_UPDATE_STATUS_BAR:
char count[100];
snprintf(count, sizeof(count), "%ld", (int32)fStatusBar->CurrentValue() + 1);
snprintf(count, sizeof(count), "%" B_PRId32,
(int32)fStatusBar->CurrentValue() + 1);
fStatusBar->Update(1, NULL, count);
break;
@@ -431,7 +432,8 @@ ApplicationTypesWindow::_SetType(BMimeType* type, int32 forceUpdate)
&& appInfo.GetVersionInfo(&versionInfo, B_APP_VERSION_KIND)
== B_OK) {
char version[256];
snprintf(version, sizeof(version), "%lu.%lu.%lu, %s/%lu",
snprintf(version, sizeof(version),
"%" B_PRIu32 ".%" B_PRIu32 ".%" B_PRIu32 ", %s/%" B_PRIu32,
versionInfo.major, versionInfo.middle,
versionInfo.minor,
variety_to_text(versionInfo.variety),
@@ -82,7 +82,7 @@ name_for_type(BString& string, type_code type, const char* displayAs)
buffer[i] = '.';
}
snprintf(buffer + 6, sizeof(buffer), " (0x%lx)", type);
snprintf(buffer + 6, sizeof(buffer), " (0x%" B_PRIx32 ")", type);
string = buffer;
}
@@ -278,7 +278,7 @@ AttributeListView::SetTo(BMimeType* type)
// Remove the current items but remember them for now. Also remember
// the currently selected item.
BObjectList<AttributeItem> previousItems(CountItems(), true);
while (AttributeItem* item = (AttributeItem*)RemoveItem(0L))
while (AttributeItem* item = (AttributeItem*)RemoveItem((int32)0))
previousItems.AddItem(item);
// fill it again
@@ -173,7 +173,7 @@ AttributeWindow::AttributeWindow(FileTypesWindow* target, BMimeType& mimeType,
fSpecialControl->SetEnabled(false);
char text[64];
snprintf(text, sizeof(text), "%ld", fAttribute.Width());
snprintf(text, sizeof(text), "%" B_PRId32, fAttribute.Width());
fWidthControl = new BTextControl(B_TRANSLATE_COMMENT("Width:",
"Default column width in Tracker for this attribute."),
text, NULL);
@@ -965,7 +965,7 @@ FileTypesWindow::QuitRequested()
{
BMessage update(kMsgSettingsChanged);
update.AddRect("file_types_frame", Frame());
update.AddFloat("left_split_weight", fMainSplitView->ItemWeight(0L));
update.AddFloat("left_split_weight", fMainSplitView->ItemWeight((int32)0));
update.AddFloat("right_split_weight", fMainSplitView->ItemWeight(1));
be_app_messenger.SendMessage(&update);
@@ -98,8 +98,8 @@ KeyboardSettings::SetKeyboardRepeatDelay(bigtime_t delay)
void
KeyboardSettings::Dump()
{
printf("repeat rate: %ld\n", fSettings.key_repeat_rate);
printf("repeat delay: %Ld\n", fSettings.key_repeat_delay);
printf("repeat rate: %" B_PRId32 "\n", fSettings.key_repeat_rate);
printf("repeat delay: %" B_PRId64 "\n", fSettings.key_repeat_delay);
}
+1 -1
View File
@@ -332,7 +332,7 @@ KeyboardLayout::_Error(const parse_state& state, const char* reason, ...)
va_list args;
va_start(args, reason);
fprintf(stderr, "Syntax error in line %ld: ", state.line);
fprintf(stderr, "Syntax error in line %" B_PRId32 ": ", state.line);
vfprintf(stderr, reason, args);
fprintf(stderr, "\n");
@@ -590,7 +590,7 @@ KeyboardLayoutView::_DrawKey(BView* view, BRect updateRect, const Key* key,
fDeadKey);
} else {
// Show the key code if there is no keymap
snprintf(text, sizeof(text), "%02lx", key->code);
snprintf(text, sizeof(text), "%02" B_PRIx32, key->code);
}
_SetFontSize(view, keyKind);
@@ -821,7 +821,7 @@ bool
KeyboardLayoutView::_FunctionKeyLabel(uint32 code, char* text, size_t textSize)
{
if (code >= B_F1_KEY && code <= B_F12_KEY) {
snprintf(text, textSize, "F%ld", code + 1 - B_F1_KEY);
snprintf(text, textSize, "F%" B_PRId32, code + 1 - B_F1_KEY);
return true;
}
@@ -1016,7 +1016,7 @@ KeyboardLayoutView::_KeyChanged(const BMessage* message)
checkSingle = false;
if (_KeyForCode(key) == NULL)
printf("no key for code %ld\n", key);
printf("no key for code %" B_PRId32 "\n", key);
}
for (int32 i = 0; i < 16; i++) {
@@ -239,7 +239,7 @@ GeneralView::Load()
int32 timeout;
if (settings.FindInt32(kTimeoutName, &timeout) != B_OK)
timeout = kDefaultTimeout;
(void)sprintf(buffer, "%ld", timeout);
(void)sprintf(buffer, "%" B_PRId32, timeout);
fTimeout->SetText(buffer);
return B_OK;
+4 -4
View File
@@ -823,10 +823,10 @@ ScreenWindow::_UpdateWorkspaceButtons()
BPrivate::get_workspaces_layout(&columns, &rows);
char text[32];
snprintf(text, sizeof(text), "%ld", columns);
snprintf(text, sizeof(text), "%" B_PRId32, columns);
fColumnsControl->SetText(text);
snprintf(text, sizeof(text), "%ld", rows);
snprintf(text, sizeof(text), "%" B_PRId32, rows);
fRowsControl->SetText(text);
_GetColumnRowButton(true, false)->SetEnabled(columns != 1 && rows != 32);
@@ -1107,8 +1107,8 @@ ScreenWindow::_WriteVesaModeFile(const screen_mode& mode) const
return status;
char buffer[256];
snprintf(buffer, sizeof(buffer), "mode %ld %ld %ld\n",
mode.width, mode.height, mode.BitsPerPixel());
snprintf(buffer, sizeof(buffer), "mode %" B_PRId32 " %" B_PRId32 " %"
B_PRId32 "\n", mode.width, mode.height, mode.BitsPerPixel());
ssize_t bytesWritten = file.Write(buffer, strlen(buffer));
if (bytesWritten < B_OK)
+1 -1
View File
@@ -479,7 +479,7 @@ NetworkTimeView::_InitView()
void
NetworkTimeView::_UpdateServerList()
{
while (fServerListView->RemoveItem(0L) != NULL);
while (fServerListView->RemoveItem((int32)0) != NULL);
const char* server;
int32 index = 0;
+1 -1
View File
@@ -718,7 +718,7 @@ AutoMounter::_UnmountAndEjectVolume(BMessage* message)
if (status == B_OK)
status = volume.GetName(name);
if (status < B_OK)
snprintf(name, sizeof(name), "device:%ld", device);
snprintf(name, sizeof(name), "device:%" B_PRIdDEV, device);
BPath path;
if (status == B_OK) {