Package Details: freediag 1.09-1

Git Clone URL: https://aur.archlinux.org/freediag.git (read-only, click to copy)
Package Base: freediag
Description: OBD-II vehicle diagnostic software and (mostly) J1978 compliant scan tool.
Upstream URL: http://freediag.sourceforge.net/
Licenses: GPL
Submitter: None
Maintainer: fenugrec
Last Packager: fenugrec
Votes: 17
Popularity: 0.000000
First Submitted: 2009-07-02 21:03 (UTC)
Last Updated: 2021-12-11 18:40 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

fenugrec commented on 2023-02-06 14:45 (UTC)

@frozen actually, that was correct, and already fixed in https://github.com/fenugrec/freediag/commit/55f9a7e95c4a4d3471350eee9f85e20168576975

I should probably make a release for that and some other build fixes.

In the meantime, you can use freediag-git which I just tested and should build properly.

fenugrec commented on 2023-02-06 14:25 (UTC) (edited on 2023-02-06 14:36 (UTC) by fenugrec)

thanks @frozen. I opened https://github.com/fenugrec/freediag/issues/82 to track that. [edit] I just confirmed it's cppcheck complaining about that area. Will check later, I don't think the correct fix is to remove that section.

frozen commented on 2023-02-06 00:18 (UTC) (edited on 2023-02-06 00:20 (UTC) by frozen)

Version 1.09 seems to fail to build due to a duplicated timeout check, here is a patch I made to remove the redundant one:

freediag-1.09-saej1850-request-fix.patch

diff --color -u -r freediag-1.09-src.orig/scantool/diag_l2_saej1850.c freediag-1.09-src.new/scantool/diag_l2_saej1850.c
--- freediag-1.09-src.orig/scantool/diag_l2_saej1850.c  2021-05-30 03:37:48.000000000 +0200
+++ freediag-1.09-src.new/scantool/diag_l2_saej1850.c   2023-02-06 00:40:43.733688655 +0100
@@ -421,11 +421,6 @@
                return NULL;
        }

-       /* Return the message to user, who is responsible for freeing it */
-       if (!d_l2_conn->diag_msg) {
-               //no response, but no error either
-               *errval = DIAG_ERR_TIMEOUT;
-       }
        rmsg = d_l2_conn->diag_msg;
        d_l2_conn->diag_msg = NULL;
        return rmsg;

and entries in PKGBUILD:

source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/1.0/$pkgname-$pkgver-src.tar.gz" "freediag-1.09-saej1850-request-fix.patch")
sha256sums=('23a12f417303361aebc08e931a9543d041169ba329b4c5569765de7a93de9bbc' 'ae02c1e937e5f7c9ef83e8dcdc586ca2b3aee1e8510d943fa002682274dbb819')

prepare() {
  cd "$pkgname-$pkgver-src"
  patch -Np1 -i "${srcdir}/freediag-1.09-saej1850-request-fix.patch"
}

fenugrec commented on 2014-12-05 16:06 (UTC)

Well scangui hasn't been updated since 2004, and it's not required to run freediag... so fltk should be an "optional dep". I tried just changing the PKGBUILD line to "optdepends('fltk: build scangui front-end')" and it seemed to work fine here (no fltk); the scangui/CMakeLists.txt checks for FLTK and does nothing if it's absent. Note: I released 1.05 recently and it will also need a minor patch for scangui... Thanks for maintaining the build on AUR !

xantares commented on 2014-12-05 08:21 (UTC)

what about scangui ?

fenugrec commented on 2014-12-05 02:21 (UTC)

Hi, given the state of scangui, fltk should probably be an optional dependency instead ?

CupIvan commented on 2013-10-05 20:25 (UTC)

thanks, fixed

gdamjan commented on 2013-10-05 20:22 (UTC)

arch=(i686, x86_64) should be arch=('i686' 'x86_64')