Comment 7 for bug 1931847

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Details:
---

Commit:

 $ grep Homepage: debian/control
 Homepage: https://github.com/mchehab/rasdaemon

 $ git describe --contains 546cf713f667437fb6e283cc3dc090679eb47d08
 v0.6.7~17

 $ rmadison -a source rasdaemon
  rasdaemon | 0.5.6-2 | xenial/universe | source
  rasdaemon | 0.5.6-2ubuntu1.1 | xenial-updates/universe | source
  rasdaemon | 0.6.0-1 | bionic/universe | source
  rasdaemon | 0.6.0-1ubuntu0.2 | bionic-updates/universe | source
  rasdaemon | 0.6.5-1ubuntu1 | focal/universe | source
  rasdaemon | 0.6.5-1ubuntu1.1 | focal-updates/universe | source
  rasdaemon | 0.6.7-1 | jammy/universe | source
  rasdaemon | 0.6.8-1 | lunar/universe | source
  rasdaemon | 0.6.8-1.1 | mantic/universe | source

Indentation only:

 $ cat 0001-Fix-ras-mc-ctl-script.patch | sed '/^@@/,$ { s/^[ -]//; /^+/d; }' > patch.old

 $ cat 0001-Fix-ras-mc-ctl-script.patch | sed '/^@@/,$ { s/^+ /+/; s/^+\t /+\t/; s/^[ +]//; /^-/d; }' > patch.new

 $ diff -U0 patch.old patch.new | grep -v '^@@'
 --- patch.old 2023-10-07 18:16:19.279023843 -0300
 +++ patch.new 2023-10-07 18:19:37.895783167 -0300
 +my $has_aer = 0;
 +my $has_arm = 0;
 +my $has_devlink = 0;
 +my $has_disk_errors = 0;
 +my $has_extlog = 0;
 +my $has_mce = 0;
 +
 +@WITH_AER_TRUE@$has_aer = 1;
 +@WITH_ARM_TRUE@$has_arm = 1;
 +@WITH_DEVLINK_TRUE@$has_devlink = 1;
 +@WITH_DISKERROR_TRUE@$has_disk_errors = 1;
 +@WITH_EXTLOG_TRUE@$has_extlog = 1;
 +@WITH_MCE_TRUE@$has_mce = 1;
 +
 +if ($has_aer == 1) {
 + }
 +if ($has_arm == 1) {
 + }
 +if ($has_extlog == 1) {
 + }
 +if ($has_devlink == 1) {
 + }
 +if ($has_disk_errors == 1) {
 + }
 +if ($has_mce == 1) {
 + }
 +if ($has_aer == 1) {
 + }
 +if ($has_arm == 1) {
 + }
 +if ($has_extlog == 1) {
 + }
 +if ($has_devlink == 1) {
 + }
 +if ($has_disk_errors == 1) {
 + }
 +if ($has_mce == 1) {
 + }
 --

Removed:
 # ARM processor arm_event errors

Source:

 @ ras-record.c

 777 #ifdef HAVE_DEVLINK
 778 rc = ras_mc_create_table(priv, &devlink_event_tab);
 ...
 782 #endif

 550 static int ras_mc_create_table(struct sqlite3_priv *priv,
 551 const struct db_table_descriptor *db_tab)
 ...
 557 p += snprintf(p, end - p, "CREATE TABLE IF NOT EXISTS %s (",
 558 db_tab->name);

 399 #ifdef HAVE_DEVLINK
 ...
 410 static const struct db_table_descriptor devlink_event_tab = {
 411 .name = "devlink_event",

 @ configure.ac

  94 AC_ARG_ENABLE([devlink],
  95 AS_HELP_STRING([--enable-devlink], [enable devlink health events (currently experimental)]))
  96
  97 AS_IF([test "x$enable_devlink" = "xyes" || test "x$enable_all" == "xyes"], [
  98 AC_DEFINE(HAVE_DEVLINK,1,"have devlink health events collect")
  99 AC_SUBST([WITH_DEVLINK])
 100 ])
 101 AM_CONDITIONAL([WITH_DEVLINK], [test x$enable_devlink = xyes || test x$enable_all == xyes])
 102 AM_COND_IF([WITH_DEVLINK], [USE_DEVLINK="yes"], [USE_DEVLINK="no"])