Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 943695 Details for
Bug 1149141
Make desktop file and appdata validation automatic
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[PATCH] Run desktop file and appdata validation scripts if they exist
0001-Run-desktop-file-and-appdata-validation-scripts-if-t.patch (text/plain), 2.50 KB, created by
Kalev Lember
on 2014-10-03 10:36:46 UTC
(
hide
)
Description:
[PATCH] Run desktop file and appdata validation scripts if they exist
Filename:
MIME Type:
Creator:
Kalev Lember
Created:
2014-10-03 10:36:46 UTC
Size:
2.50 KB
patch
obsolete
>From d5f57dc742e7b71b5da7b7b2ecea3b30b155bed2 Mon Sep 17 00:00:00 2001 >From: Kalev Lember <kalevlember@gmail.com> >Date: Wed, 1 Oct 2014 12:13:01 +0200 >Subject: [PATCH] Run desktop file and appdata validation scripts if they exist > >This also adds two new macros that can be used from within individual >spec files to make the validation errors non-fatal. To do that, use one >of the following in spec files: > > %global _desktop_file_validate_errors_terminate_build 0 > %global _appdata_validate_errors_terminate_build 0 > >In F21, the default setting for both of the macros will be 0, but in F22 >and above they'll default to 1. >--- > macros | 8 ++++++++ > redhat-rpm-config.spec | 5 ++++- > 2 files changed, 12 insertions(+), 1 deletion(-) > >diff --git a/macros b/macros >index 6d855fa..7c0e428 100644 >--- a/macros >+++ b/macros >@@ -93,6 +93,8 @@ > /usr/lib/rpm/brp-strip-static-archive %{__strip} \ > /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build} \ > /usr/lib/rpm/brp-python-hardlink \ >+ [ -x /usr/lib/rpm/brp-desktop-file-validate ] && /usr/lib/rpm/brp-desktop-file-validate %{?_desktop_file_validate_errors_terminate_build} \ >+ [ -x /usr/lib/rpm/brp-appdata-validate ] && /usr/lib/rpm/brp-appdata-validate %{?_appdata_validate_errors_terminate_build} \ > %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \ > %{nil} > >@@ -112,6 +114,12 @@ > # Should missing buildids terminate a build? > %_missing_build_ids_terminate_build 1 > >+# Should desktop-file-validate errors terminate a build? >+%_desktop_file_validate_errors_terminate_build 1 >+ >+# Should appdata validate errors terminate a build? >+%_appdata_validate_errors_terminate_build 1 >+ > # > ## Should python bytecompilation errors terminate a build? > %_python_bytecompile_errors_terminate_build 1 >diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec >index fa65527..bb15a8f 100644 >--- a/redhat-rpm-config.spec >+++ b/redhat-rpm-config.spec >@@ -6,7 +6,7 @@ > > Summary: Red Hat specific rpm configuration files > Name: redhat-rpm-config >-Version: 26 >+Version: 27 > Release: 1%{?dist} > # No version specified. > License: GPL+ >@@ -135,6 +135,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov > %{_rpmconfigdir}/macros.d/macros.kmp > > %changelog >+* Wed Oct 01 2014 Kalev Lember <kalevlember@gmail.com> - 27-1 >+- Run desktop file and appdata validation scripts if they exist >+ > * Mon Sep 22 2014 Panu Matilainen <pmatilai@redhat.com> - 26-1 > - Gnat macros are now in a package of their own (#1133632) > >-- >2.1.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1149141
: 943695 |
943696