Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] xdotool reports wrong version
@ 2020-05-16  8:09 haemka
  2020-05-18 22:34 ` [ISSUE] [CLOSED] " leahneukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: haemka @ 2020-05-16  8:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]

New issue by haemka on void-packages repository

https://github.com/void-linux/void-packages/issues/22006

Description:
# System

* xuname:
   `Void 5.6.11_1 x86_64 AuthenticAMD uptodate rrrmFFFF`
* package:  
  xdotool 3.20160805.1_2

### Expected behavior
`xdotool -v` should report correct version (currently `3.20160805.1`)

### Actual behavior
`xdotool -v` reports `xdotool version 3.20191225.1`

### Steps to reproduce the behavior
Run `xdotool -v`

### Explanation
The upstream repository of xdotool contains multiple release archives which differ slightly ([1](https://github.com/jordansissel/xdotool/releases/download/v3.20160805.1/xdotool-3.20160805.1.tar.gz) and [2](https://github.com/jordansissel/xdotool/archive/v3.20160805.1.tar.gz))

The link for archive 2 is used in the srcpkgs template, but this archive is missing the `VERSION` file, which is read by `version.sh` called from ` Makefile`. By changing the archive download link in the packages template and rebuilding the package xdotool shows the correct version.

```diff
diff --git a/srcpkgs/xdotool/template b/srcpkgs/xdotool/template
index 7734b38845..a3366c7844 100644
--- a/srcpkgs/xdotool/template
+++ b/srcpkgs/xdotool/template
@@ -1,7 +1,7 @@
 # Template file for 'xdotool'
 pkgname=xdotool
 version=3.20160805.1
-revision=2
+revision=3
 build_style=gnu-makefile
 make_build_target="all"
 make_install_args="INSTALLMAN=$DESTDIR/usr/share/man"
@@ -11,8 +11,8 @@ short_desc="Command-line X11 automation tool"
 maintainer="Leah Neukirchen <leah@vuxu.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/jordansissel/xdotool"
-distfiles="https://github.com/jordansissel/${pkgname}/archive/v${version}.tar.gz"
-checksum=ddafca1239075c203769c17a5a184587731e56fbe0438c09d08f8af1704e117a
+distfiles="https://github.com/jordansissel/${pkgname}/releases/download/v${version}/xdotool-${version}.tar.gz"
+checksum=35be5ff6edf0c620a0e16f09ea5e101d5173280161772fca18657d83f20fcca8
 CFLAGS="-std=c99"
 
 xdotool-devel_package() {
```

Leads to a package where `xdotool -v` shows `xdotool version 3.20160805.1`

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ISSUE] [CLOSED] xdotool reports wrong version
  2020-05-16  8:09 [ISSUE] xdotool reports wrong version haemka
@ 2020-05-18 22:34 ` leahneukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: leahneukirchen @ 2020-05-18 22:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2135 bytes --]

Closed issue by haemka on void-packages repository

https://github.com/void-linux/void-packages/issues/22006

Description:
# System

* xuname:
   `Void 5.6.11_1 x86_64 AuthenticAMD uptodate rrrmFFFF`
* package:  
  xdotool 3.20160805.1_2

### Expected behavior
`xdotool -v` should report correct version (currently `3.20160805.1`)

### Actual behavior
`xdotool -v` reports `xdotool version 3.20191225.1`

### Steps to reproduce the behavior
Run `xdotool -v`

### Explanation
The upstream repository of xdotool contains multiple release archives which differ slightly ([1](https://github.com/jordansissel/xdotool/releases/download/v3.20160805.1/xdotool-3.20160805.1.tar.gz) and [2](https://github.com/jordansissel/xdotool/archive/v3.20160805.1.tar.gz))

The link for archive 2 is used in the srcpkgs template, but this archive is missing the `VERSION` file, which is read by `version.sh` called from ` Makefile`. By changing the archive download link in the packages template and rebuilding the package xdotool shows the correct version.

```diff
diff --git a/srcpkgs/xdotool/template b/srcpkgs/xdotool/template
index 7734b38845..a3366c7844 100644
--- a/srcpkgs/xdotool/template
+++ b/srcpkgs/xdotool/template
@@ -1,7 +1,7 @@
 # Template file for 'xdotool'
 pkgname=xdotool
 version=3.20160805.1
-revision=2
+revision=3
 build_style=gnu-makefile
 make_build_target="all"
 make_install_args="INSTALLMAN=$DESTDIR/usr/share/man"
@@ -11,8 +11,8 @@ short_desc="Command-line X11 automation tool"
 maintainer="Leah Neukirchen <leah@vuxu.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/jordansissel/xdotool"
-distfiles="https://github.com/jordansissel/${pkgname}/archive/v${version}.tar.gz"
-checksum=ddafca1239075c203769c17a5a184587731e56fbe0438c09d08f8af1704e117a
+distfiles="https://github.com/jordansissel/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=35be5ff6edf0c620a0e16f09ea5e101d5173280161772fca18657d83f20fcca8
 CFLAGS="-std=c99"
 
 xdotool-devel_package() {
```

Leads to a package where `xdotool -v` shows `xdotool version 3.20160805.1`

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-18 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16  8:09 [ISSUE] xdotool reports wrong version haemka
2020-05-18 22:34 ` [ISSUE] [CLOSED] " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).