xorg-release: ignore some X.org packages

Submitted by Thomas Petazzoni on Jan. 5, 2013, 7:26 p.m.

Details

Message ID 1357414005-9612-1-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit d7dde090f4a9b20ae25cf3743d364f24bc8f1c9f
Headers show

Commit Message

Thomas Petazzoni Jan. 5, 2013, 7:26 p.m.
Following Gustavo's removal of two X.org drivers for old hardware
unlikely to be used in embedded contexts, the xorg-release script now
reports those two X.org packages as "to be added": they exist in
X.org, but not in Buildroot.

So, we add a small list, XORG_EXCEPTIONS, in our xorg-release script,
to list the X.org packages we don't want to hear about. Of course,
packages that exist in X.org, and that are not part of this exception
list, and are not packaged in Buildroot are still listed as "to be
added".

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 support/scripts/xorg-release |   11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Peter Korsgaard Jan. 5, 2013, 9:51 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Following Gustavo's removal of two X.org drivers for old hardware
 Thomas> unlikely to be used in embedded contexts, the xorg-release script now
 Thomas> reports those two X.org packages as "to be added": they exist in
 Thomas> X.org, but not in Buildroot.

 Thomas> So, we add a small list, XORG_EXCEPTIONS, in our xorg-release script,
 Thomas> to list the X.org packages we don't want to hear about. Of course,
 Thomas> packages that exist in X.org, and that are not part of this exception
 Thomas> list, and are not packaged in Buildroot are still listed as "to be
 Thomas> added".

Committed, thanks.

Patch hide | download patch | download mbox

diff --git a/support/scripts/xorg-release b/support/scripts/xorg-release
index 8055658..70ba41c 100755
--- a/support/scripts/xorg-release
+++ b/support/scripts/xorg-release
@@ -18,6 +18,14 @@  XORG_VERSION_KEY = "xorg-version"
 BR_VERSION_KEY = "br-version"
 BR_NAME_KEY = "br-name"
 
+# Packages part of X.org releases that we do not want to package in
+# Buildroot (old drivers for hardware unlikely to be used in embedded
+# contexts).
+XORG_EXCEPTIONS = [
+    'xf86-video-suncg6',
+    'xf86-video-sunffb',
+]
+
 # Get the list of tarballs of a X.org release, parse it, and return a
 # dictionary of dictionaries, of the form:
 #
@@ -43,6 +51,9 @@  def get_xorg_release_pkgs():
             continue
         name = groups.group(1)
         version = groups.group(2)
+        # Skip packages we don't want to hear about
+        if name in XORG_EXCEPTIONS:
+            continue
         packages[name] = { XORG_VERSION_KEY : version }
     return packages