Skip to contentSkip to conversation

New: add shared-mime-info package

Buildroot bugzilla at busybox.net 1 participant 10 messages Apr 23, 2009 – Apr 29, 2009

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=299

Summary: add shared-mime-info package
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P4
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: s.neumann at phase-zero.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

The shared-mime-info package contains the core database of common types and the update-mime-database command used to extend it.

The attached files and patches add the shared-mime-info package to buildroot. The only thing that is actually needed in the target is the file mime.cache. In order to generate that file, shared-mime-info is installed into the staging-dir. The idea is that other packages might add more mime-info files and these should be collected in staging-dir. From there the mime.cache file is created using tools installed in host-dir and copied to target.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

https://bugs.busybox.net/show_bug.cgi?id=299

--- Comment #1 from Sven Neumann <[email protected]> 2009-04-23 10:59:23 UTC --- Created an attachment (id=257)
--> (https://bugs.busybox.net/attachment.cgi?id=257)
add host-libxml2 target for xmllint

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

--- Comment #2 from Sven Neumann <[email protected]> 2009-04-23 11:07:47 UTC --- Created an attachment (id=259)
--> (https://bugs.busybox.net/attachment.cgi?id=259)
Config.in for shared-mime-info

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

--- Comment #3 from Sven Neumann <[email protected]> 2009-04-23 11:08:45 UTC --- Created an attachment (id=261)
--> (https://bugs.busybox.net/attachment.cgi?id=261)
shared-mime-info.mk

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

Sven Neumann <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |303
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

Sven Neumann <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #261 is|0                           |1

obsolete| |

--- Comment #4 from Sven Neumann <[email protected]> 2009-04-28 09:48:09 UTC --- Created an attachment (id=275)
--> (https://bugs.busybox.net/attachment.cgi?id=275)
shared-mime-info.mk with a minor fix

Here's a new version of shared-mime-info.mk with a minor fix. Now compiles cleanly from a fresh buildroot snapshot.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc.|thomas.petazzoni at free-
|org |electrons.com

--- Comment #5 from Thomas Petazzoni <[email protected]> 2009-04-28 22:05:47 UTC --- I'm testing these patches now.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

--- Comment #6 from Thomas Petazzoni <[email protected]> 2009-04-29 07:29:25 UTC --- I've committed your patches with small modifications (r26235 and r26236). They
build correctly for me, for my limited testing.

However, there's one thing that I'm not sure about. You re-generate the MIME cache from $(STAGING_DIR)/usr/share/mime in the POST_INSTALL hook of shared-mime-info. But what if a Buildroot package adds a file to $(STAGING_DIR)/usr/share/mime *after* the execution of shared-mime-info's POST_INSTALL hook ?

If a package adds something in $(STAGING_DIR)/usr/share/mime, it should probably depend on shared-mime-info, which will trigger the compilation of shared-mime-info and the execution of its POST_INSTALL hook before the compilation of the package.

Am I misunderstanding ? If not, what solution does you see to this problem ?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

--- Comment #7 from Sven Neumann <[email protected]> 2009-04-29 07:59:13 UTC --- If a package needs to add mime-types, then it needs to install them in staging_dir and invoke update-mime-database with the correct paths. In order to make this work, we probably need to install update-mime-database into host_dir. It shouldn't be hard to get this working. So far I don't have a need for this though and without a package that actually installs new mime-types it is probably not worth to prepare the infrastructure for this.

I suggest that this bug is closed as FIXED.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 299] add shared-mime-info package

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=299

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Thomas Petazzoni <[email protected]> 2009-04-29 08:38:56 UTC --- Ok, that makes sense.

FWIW, we already have update-mime-database in $(HOST_DIR) :

$ file build_arm/host_dir/usr/bin/update-mime-database 
build_arm/host_dir/usr/bin/update-mime-database: ELF 32-bit LSB executable,
Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses
shared libs), not stripped
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.