You are not logged in.
Obligatory https://xkcd.com/979/
You could record the working PKGBUILD to illustrate the critical differences - your(?) post at the upstream mailinglist seems unanswered
Interesting because I have a few messages back and forth regarding that very topic plus a couple of others. But here is the current "working" PKGBUILD:
pkgname=wsjtx
pkgver=2.7.1
pkgrel=1
pkgdesc="Software for Amateur Radio Weak-Signal Communication (JT9 and JT65) - Improved version by DG2YCB - Superbuild version, hamlib not required"
arch=('x86_64')
url="https://sourceforge.net/projects/wsjt-x-improved/"
license=('GPL3')
depends=(
'fftw'
'libpng'
'libpulse'
'libusb'
'libusb-compat'
'portaudio'
'qt5-base'
'qt5-multimedia'
'qt5-serialport'
'qt5-tools'
)
makedepends=(
'cmake'
'asciidoc'
'asciidoctor'
'boost'
'gcc-fortran'
'git'
'texinfo'
)
provides=('wsjtx')
conflicts=('wsjtx')
source=("https://downloads.sourceforge.net/project/wsjt-x-improved/WSJT-X_v$pkgver/Source%20code/"$pkgname-$pkgver"-devel_improved_PLUS_$pkgrel.tgz")
md5sums=('0056d476a115836ec497e43ceceb0c3a')
sha1sums=('5babdbcfc8f3f627449359b363c06d339c284880')
build() {
mkdir -p $srcdir/$pkgname-$pkgver/hamlib-prefix
cd $srcdir/$pkgname-$pkgver/hamlib-prefix
tar xzvf ../src/hamlib-4.6.tar.gz
cd hamlib-4.6
mkdir ../build
cd ../build
$srcdir/$pkgname-$pkgver/hamlib-prefix/hamlib-4.6/configure --prefix=/usr \
--disable-shared --enable-static \
--without-cxx-binding --disable-winradio \
CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
LDFLAGS="-Wl,--gc-sections"
mkdir -p $srcdir/$pkgname-$pkgver/wsjtx-prefix
cd $srcdir/$pkgname-$pkgver/wsjtx-prefix
tar xzvf ../src/wsjtx.tgz
cd wsjtx
mkdir ../build
}
package() {
cd "$srcdir/$pkgname-$pkgver/hamlib-prefix/build"
make
DESTDIR=$pkgdir make install-strip
cd "$srcdir/$pkgname-$pkgver/wsjtx-prefix/build"
cmake \
-Wno-dev \
-DCMAKE_PREFIX_PATH=$pkgdir \
-DHamlib_INCLUDE_DIR=$pkgdir/usr/include \
-DHamlib_LIBRARY=$pkgdir/usr/lib/libhamlib.a \
-DWSJT_SKIP_MANPAGES=ON \
-DWSJT_GENERATE_DOCS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ../wsjtx
DESTDIR=$pkgdir cmake --build .
DESTDIR=$pkgdir cmake --build . --target install
}
Thanks for your help digging through this, I appreciate you!
Last edited by youseenothing (2023-10-19 16:22:21)
Offline
So basically you're using a slightly different wsjt-x-improved tarball (url, not sure whether that's actually significant) and most importantly the system hamlib?
Offline
So basically you're using a slightly different wsjt-x-improved tarball (url, not sure whether that's actually significant) and most importantly the system hamlib?
I was attempting to create one for the devel branch of work the dev is putting out. Most of the devel builds he puts out work without issue so I figured I would try to create a package. Seeing as this was my first attempt at creating a package for Arch, figured I would learn some things along the way. Which I believe I have. Again, thanks for your help!
EDIT: Oh and I see what you are talking about...didn't post the correct PKGBUILD. I updated it. It is the same tarball as what I started with. That was commented out because I was trying to different (stable build on one) to make sure the build worked normally.
Last edited by youseenothing (2023-10-19 16:23:37)
Offline
Bottom line, you're not building the custom hamlib to avoid dealing w/ a hamlib that, for still unknown reasons, didn't link libindi.
There's probably no point in using some bundled hamlib instead of the system one, so, while we still don't know why the error happened, sidestepping it this way is probably the superior solution regardless.
Assuming it is, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
After speaking more with the developer, he said that I am good with utilizing a lower version of hamlib, this will make this way easier. Thanks and I willl mark this resolved. Appreciate your time and help.
Offline