History log of /haiku/src/build/libbe/storage/AppFileInfo.cpp
Revision Date Author Comments
# 209cd3dd 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

Remove second half of useless condition.

Thanks to Ingo for reviewing!


# 69ee6a6d 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

PVS 78-85: useless checks

* These were always true, so remove them.


# 0973f2a7 26-Jan-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

libbe_build: Sync BAppFileInfo


# d0815ca0 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Add private MIME DB classes to libbe_build

* This pulls in some more stuff, like libicon and agg which are also
included in libbe_build, now.
* Update a few libbe_build classes and headers needed to get things
building.
* This likely breaks the <build>mimeset build on Haiku.


# 82e7ef67 07-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Add app filename localization catalog entry support to BAppFileInfo, registrar and mimeset. Need help to understand why the build-version of UpdateMimeInfoThread.cpp does not compile with the added code, currently commented out. Sorry about the arbitrary B_MIME_TYPE_LENGTH*3. Advice and review welcome.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a8a03488 24-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Don't even try to use the BeOS compatible types on the build platform.
That's just leading to problems.
* Fixed various 64 bit warnings when building libbe_build.so. One of the more
serious issues, that might bite us, is that 64 bit Linux defines dev_t to
unsigned long, while Haiku code assumes that it is signed and 32 bit. We'll
see...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cbd4dd19 24-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Vasilis Kaoutsis: Added missing headers. Fixes the build on
certain Linux distributions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24109 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f69d34a7 24-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Updated headers/build/os/support/TypeConstants.h with the current
headers/os version and removed the now duplicate icon type constant
definitions from several sources.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24106 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 679cd7d8 04-Jul-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Temporary kludge to fix the build problem under BeOS regarding missing icons
for add-ons/libraries that don't have a signature. I threw our BAppFileInfo
code into libhaikucompat_build.a and link <build>mimeset and
<build>setversion against it, thus overriding the uncooperative BAppFileInfo
implementation in the host platform's libbe. Earlier or later we should use
libbe_build.so on BeOS compatible platforms as well, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21560 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f20062d 29-May-2006 Jérôme Duval <korli@users.berlios.de>

BAppFileInfo::SetSupportedTypes now works even when there is no signature
A consequence is the FileType tracker addon (which hasn't a signature) has now its attributes set on Linux builds


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17642 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1970bb8 09-Feb-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

When only the app version_info was contained in the resources/attribute we
read from (and the system version_info missing) GetVersionInfo() always
failed. Given that rc only writes the app version_info, mimeset never
created a BEOS:APP_VERSION attribute (nor ones for supported types icons).
The version attribute was usually created nevertheless, as a side effect
of the subsequent setversion invocation.

Under Linux the attribute emulation can accidentially pick up the
attributes of an earlier deleted node that had the the same node ID as the
file in question, which in this case could cause an invalid
BEOS:APP_VERSION attribute (the app version_info part at least).

Now GetVersionInfo() doesn't fail anymore, when only one info could be
read (the other one is zeroed). Not sure, if that is what BeOS does, but
it shouldn't harm. This fixes bug #100.

Also made SetVersionInfo() zero out what couldn't be read before writing it
back.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16320 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4598d95 28-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed nasty bug in BAppFileInfo::_ReadData(). When an attribute
or resource to be read did not exist and the method was told to
allocate a buffer, it would try to allocate the buffer with an
uninitialized size value. This basically concerned SetSupportedTypes()
and methods using that one (IsSupportedType(), Supports()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16131 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c2d48f3 28-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed bug already fixed in the Haiku version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16126 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 338b8dc3 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 209cd3dd4fa80d0096cc77f8effa2116eb1e38f8 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

Remove second half of useless condition.

Thanks to Ingo for reviewing!


# 69ee6a6d621db9711d6623af6f8d5e8d2dfe6c9e 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

PVS 78-85: useless checks

* These were always true, so remove them.


# 0973f2a7917d3b1d58b1e74e9e6b5efca4a4f22d 26-Jan-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

libbe_build: Sync BAppFileInfo


# d0815ca03b474657ea161f5d3783b458c899a947 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Add private MIME DB classes to libbe_build

* This pulls in some more stuff, like libicon and agg which are also
included in libbe_build, now.
* Update a few libbe_build classes and headers needed to get things
building.
* This likely breaks the <build>mimeset build on Haiku.


# 82e7ef6709f5e5a6c88df15f66565244a106d6fc 07-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Add app filename localization catalog entry support to BAppFileInfo, registrar and mimeset. Need help to understand why the build-version of UpdateMimeInfoThread.cpp does not compile with the added code, currently commented out. Sorry about the arbitrary B_MIME_TYPE_LENGTH*3. Advice and review welcome.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a8a03488b178618297ebb9bb958e3a41f800c7a5 24-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Don't even try to use the BeOS compatible types on the build platform.
That's just leading to problems.
* Fixed various 64 bit warnings when building libbe_build.so. One of the more
serious issues, that might bite us, is that 64 bit Linux defines dev_t to
unsigned long, while Haiku code assumes that it is signed and 32 bit. We'll
see...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cbd4dd196d0cd91c36b94fe9691356af21247682 24-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Vasilis Kaoutsis: Added missing headers. Fixes the build on
certain Linux distributions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24109 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f69d34a72cb4ca92bfe91b3e1720de6a6bc5b350 24-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Updated headers/build/os/support/TypeConstants.h with the current
headers/os version and removed the now duplicate icon type constant
definitions from several sources.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24106 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 679cd7d84b43fd4bc166246b34657b196e2e9073 04-Jul-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Temporary kludge to fix the build problem under BeOS regarding missing icons
for add-ons/libraries that don't have a signature. I threw our BAppFileInfo
code into libhaikucompat_build.a and link <build>mimeset and
<build>setversion against it, thus overriding the uncooperative BAppFileInfo
implementation in the host platform's libbe. Earlier or later we should use
libbe_build.so on BeOS compatible platforms as well, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21560 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f20062d97ca0837a0b33ed34cf6e96c66965bc8 29-May-2006 Jérôme Duval <korli@users.berlios.de>

BAppFileInfo::SetSupportedTypes now works even when there is no signature
A consequence is the FileType tracker addon (which hasn't a signature) has now its attributes set on Linux builds


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17642 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1970bb8d83df7a5cbfe7c15946166f0d2317378 09-Feb-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

When only the app version_info was contained in the resources/attribute we
read from (and the system version_info missing) GetVersionInfo() always
failed. Given that rc only writes the app version_info, mimeset never
created a BEOS:APP_VERSION attribute (nor ones for supported types icons).
The version attribute was usually created nevertheless, as a side effect
of the subsequent setversion invocation.

Under Linux the attribute emulation can accidentially pick up the
attributes of an earlier deleted node that had the the same node ID as the
file in question, which in this case could cause an invalid
BEOS:APP_VERSION attribute (the app version_info part at least).

Now GetVersionInfo() doesn't fail anymore, when only one info could be
read (the other one is zeroed). Not sure, if that is what BeOS does, but
it shouldn't harm. This fixes bug #100.

Also made SetVersionInfo() zero out what couldn't be read before writing it
back.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16320 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4598d95e6d1ff1772d2788630700b7dad364b5e 28-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed nasty bug in BAppFileInfo::_ReadData(). When an attribute
or resource to be read did not exist and the method was told to
allocate a buffer, it would try to allocate the buffer with an
uninitialized size value. This basically concerned SetSupportedTypes()
and methods using that one (IsSupportedType(), Supports()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16131 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c2d48f3743e4fd45cd75b835f01c76b29efda08 28-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed bug already fixed in the Haiku version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16126 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 338b8dc301721b1f472e8297a898d4eaa2f2ee3a 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96