Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian package generation leads to v1.0.7 from archive.tar.gz v2.0.5 #70

Closed
l0f4r0 opened this issue Apr 13, 2022 · 2 comments
Closed

Comments

@l0f4r0
Copy link

l0f4r0 commented Apr 13, 2022

Describe the bug

Debian package generation from archive.tar.gz v2.0.5 leads to files versioned as 1.0.7.

Steps to reproduce

  1. Download archive.tar.gz for release 2.0.5
  2. Decompress/untar this archive
  3. Generate a Debian package via dpkg-buildpackage -rfakeroot -us -uc -tc as explained here

=> All generated files are versioned as 1.0.7, see below:

touche_1.0.7_amd64.buildinfo
touche_1.0.7_amd64.changes
touche_1.0.7_amd64.deb
touche_1.0.7.dsc
touche_1.0.7.tar.xz
touche-dbgsym_1.0.7_amd64.deb

Expected behaviour

Generated Debian files should be versioned as 2.0.5.

Actual behaviour

Generated Debian files are versioned as 1.0.7.

Logs

dpkg-buildpackage -rfakeroot -us -uc -tc

dpkg-buildpackage: info: source package touche
dpkg-buildpackage: info: source version 1.0.7
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by José Expósito <jose.exposito89@gmail.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-source: info: using options from touche_2.0.5/debian/source/options: --tar-ignore=.flatpak-builder
 fakeroot debian/rules clean
dh clean
   dh_clean
 dpkg-source -b .
dpkg-source: info: using options from touche_2.0.5/debian/source/options: --tar-ignore=.flatpak-builder
dpkg-source: info: using source format '3.0 (native)'
dpkg-source: info: building touche in touche_1.0.7.tar.xz
dpkg-source: info: building touche in touche_1.0.7.dsc
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
	cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 meson .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu
The Meson build system
Version: 0.49.2
Source dir: /home/l0f4r0/Téléchargements/touche_2.0.5
Build dir: /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu
Build type: native build
Project name: com.github.joseexposito.touche
Project version: 2.0.5
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program gjs found: YES (/usr/bin/gjs)
Program npm found: YES (/usr/bin/npm)
Program node found: YES (/usr/bin/node)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program xgettext found: YES (/usr/bin/xgettext)

|
|Executing subproject libtouche 
|
|Project name: libtouche
|Project version: 2.0.0
|Appending CXXFLAGS from environment: '-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
|Appending LDFLAGS from environment: '-Wl,-z,relro'
|Appending CPPFLAGS from environment: '-Wdate-time -D_FORTIFY_SOURCE=2'
|Native C++ compiler: c++ (gcc 8.3.0 "c++ (Debian 8.3.0-6) 8.3.0")
|Found pkg-config: /usr/bin/pkg-config (0.29)
|Dependency glib-2.0 found: YES 2.58.3
|Dependency gobject-2.0 found: YES 2.58.3
|Dependency x11 found: YES 1.6.7
|Build targets in project: 3
|
|Subproject libtouche finished.
Configuring desktop.in using configuration
Configuring app.appdata.xml.in using configuration
Configuring com.github.joseexposito.touche.gschema.xml using configuration
Configuring data.gresource.xml using configuration
Message: Building the application entry point: bin/com.github.joseexposito.touche
Configuring com.github.joseexposito.touche using configuration
Message: Building the application JavaScript bundle with Webpack...
Configuring src.gresource.xml using configuration
Program bundle/scripts/postinstall.py found: YES (/home/l0f4r0/Téléchargements/touche_2.0.5/bundle/scripts/postinstall.py)
Build targets in project: 11
Found ninja-1.8.2 at /usr/bin/ninja
   dh_auto_build
	cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v
[1/9] glib-compile-resources data/data.gresource.xml --sourcedir ../data --internal --generate --target data/com.github.joseexposito.touche.data.gresource --dependency-file data/com.github.joseexposito.touche.data.gresource.d
[2/9] /usr/bin/meson --internal msgfmthelper data/desktop.in data/com.github.joseexposito.touche.desktop desktop ../data/../po
[3/9] /usr/bin/meson --internal msgfmthelper data/app.appdata.xml.in data/com.github.joseexposito.touche.appdata.xml xml ../data/../po
[4/9] c++ -Isubprojects/libtouche/405c723@@touche@sha -Isubprojects/libtouche -I../subprojects/libtouche -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -MD -MQ 'subprojects/libtouche/405c723@@touche@sha/touche.cpp.o' -MF 'subprojects/libtouche/405c723@@touche@sha/touche.cpp.o.d' -o 'subprojects/libtouche/405c723@@touche@sha/touche.cpp.o' -c ../subprojects/libtouche/touche.cpp
[5/9] c++  -o subprojects/libtouche/libtouche.so.0 'subprojects/libtouche/405c723@@touche@sha/touche.cpp.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libtouche.so.0 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libX11.so -Wl,--end-group  
[6/9] /usr/bin/g-ir-scanner -pthread -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include --no-libtool --namespace=Touche --nsversion=2.0.0 --warn-all --output subprojects/libtouche/Touche-2.0.0.gir '-I/home/l0f4r0/Téléchargements/touche_2.0.5/subprojects/libtouche' '-I/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/subprojects/libtouche' -I./subprojects/libtouche/. -I../subprojects/libtouche/. '--filelist=/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/subprojects/libtouche/405c723@@touche@sha/Touche_2.0.0_gir_filelist' --include=GObject-2.0 --pkg-export=libtouche --cflags-begin -I./subprojects/libtouche/. -I../subprojects/libtouche/. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_FORTIFY_SOURCE=2 --cflags-end --library touche '-L/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/subprojects/libtouche' --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=X11
g-ir-scanner: link: cc -o /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/tmp-introspectq1cdc0tb/Touche-2.0.0 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/tmp-introspectq1cdc0tb/Touche-2.0.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/subprojects/libtouche -Wl,-rpath,/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/subprojects/libtouche -ltouche -lglib-2.0 -lgobject-2.0 -lX11 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -Wl,-z,relro
[7/9] /usr/bin/g-ir-compiler subprojects/libtouche/Touche-2.0.0.gir --output subprojects/libtouche/Touche-2.0.0.typelib
[8/9] /usr/bin/node '/home/l0f4r0/Téléchargements/touche_2.0.5/bundle/scripts/build.js' '/home/l0f4r0/Téléchargements/touche_2.0.5' '/home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/bundle' plain com.github.joseexposito.touche false /usr/share/touchegg/touchegg.conf
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[9/9] glib-compile-resources bundle/src.gresource.xml --sourcedir bundle --sourcedir ../bundle --internal --generate --target bundle/com.github.joseexposito.touche.src.gresource --dependency-file bundle/com.github.joseexposito.touche.src.gresource.d
   dh_auto_test
	cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=8 ninja test
[1/3] Generating build-application-bundle with a custom command.
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[1/2] Running all tests.
1/3 Validate desktop file                   OK       0.01 s 
2/3 Validate appstream file                 OK       0.72 s 
3/3 Validate schema file                    OK       0.01 s 

Ok:                    3
Expected Fail:         0
Fail:                  0
Unexpected Pass:       0
Skipped:               0
Timeout:               0

Full log written to /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/meson-logs/testlog.txt
   create-stamp debian/debhelper-build-stamp
 fakeroot debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_auto_install
	cd obj-x86_64-linux-gnu && DESTDIR=/home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche LC_ALL=C.UTF-8 ninja install
[1/3] Generating build-application-bundle with a custom command.
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[1/2] Installing files.
Installing subprojects/libtouche/libtouche.so.0 to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/lib/x86_64-linux-gnu
Installing subprojects/libtouche/Touche-2.0.0.gir to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/gir-1.0
Installing subprojects/libtouche/Touche-2.0.0.typelib to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/lib/x86_64-linux-gnu/girepository-1.0
Installing data/com.github.joseexposito.touche.desktop to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/applications
Installing data/com.github.joseexposito.touche.appdata.xml to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/appdata
Installing data/com.github.joseexposito.touche.data.gresource to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/com.github.joseexposito.touche
Installing bundle/com.github.joseexposito.touche.src.gresource to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/com.github.joseexposito.touche
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/subprojects/libtouche/touche.h to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/include
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/data/com.github.joseexposito.touche.gschema.xml to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/glib-2.0/schemas
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/16/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/16x16/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/16/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/16x16@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/24/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/24x24/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/24/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/24x24@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/32/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/32x32/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/32/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/32x32@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/48/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/48x48/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/48/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/48x48@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/64/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/64x64/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/64/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/64x64@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/128/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/128x128/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/data/icons/128/app.svg to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/icons/hicolor/128x128@2/apps
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/bundle/com.github.joseexposito.touche to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/bin
Running custom install script '/usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=com.github.joseexposito.touche'
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/es.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/es/LC_MESSAGES/com.github.joseexposito.touche.mo
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/it.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/it/LC_MESSAGES/com.github.joseexposito.touche.mo
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/fr.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/fr/LC_MESSAGES/com.github.joseexposito.touche.mo
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/ru.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/ru/LC_MESSAGES/com.github.joseexposito.touche.mo
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/zh.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/zh/LC_MESSAGES/com.github.joseexposito.touche.mo
Installing /home/l0f4r0/Téléchargements/touche_2.0.5/obj-x86_64-linux-gnu/po/zh_TW.gmo to /home/l0f4r0/Téléchargements/touche_2.0.5/debian/touche/usr/share/locale/zh_TW/LC_MESSAGES/com.github.joseexposito.touche.mo
Running custom install script '/home/l0f4r0/Téléchargements/touche_2.0.5/bundle/scripts/postinstall.py'
   dh_installdocs
   dh_installchangelogs
   dh_installgsettings
   dh_icons
   dh_perl
   dh_link
   dh_strip_nondeterminism
	Normalized debian/touche/usr/share/locale/zh/LC_MESSAGES/com.github.joseexposito.touche.mo
	Normalized debian/touche/usr/share/locale/es/LC_MESSAGES/com.github.joseexposito.touche.mo
	Normalized debian/touche/usr/share/locale/it/LC_MESSAGES/com.github.joseexposito.touche.mo
	Normalized debian/touche/usr/share/locale/ru/LC_MESSAGES/com.github.joseexposito.touche.mo
	Normalized debian/touche/usr/share/locale/zh_TW/LC_MESSAGES/com.github.joseexposito.touche.mo
	Normalized debian/touche/usr/share/locale/fr/LC_MESSAGES/com.github.joseexposito.touche.mo
   dh_compress
   dh_fixperms
   dh_missing
   dh_dwz
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: package touche: substitution variable ${shlibs:Depends} unused, but is defined
dpkg-gencontrol: warning: package touche: substitution variable ${shlibs:Depends} unused, but is defined
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'touche-dbgsym' in '../touche-dbgsym_1.0.7_amd64.deb'.
dpkg-deb: building package 'touche' in '../touche_1.0.7_amd64.deb'.
 dpkg-genbuildinfo
 dpkg-genchanges  >../touche_1.0.7_amd64.changes
dpkg-genchanges: info: including full source code in upload
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
   dh_clean
 dpkg-source --after-build .
dpkg-source: info: using options from touche_2.0.5/debian/source/options: --tar-ignore=.flatpak-builder
dpkg-buildpackage: info: full upload; Debian-native package (full source is included)

Your environment

  • Touchégg version: 2.0.14
  • Operating System: Linux Debian 10
  • Desktop Environment: Xfce 4.12.5
  • Installation method: archive.tar.gz to Debian package
@JoseExposito
Copy link
Owner

Hi!

The recent versions of Touché (>= v2.0.0) added GTK 4 and libadwaita as dependencies. The las time I checked, those libraries were not available in Debian. I'd need to check if the situation changed.

Due to the nature of JavaScript, the package will build but crash at run time. This is why the Debian package has not been updated in a while.

The recommended installation method is Flatpak. I'd suggest to give it a try, it works really nice.

@joezhouchenye
Copy link

The situation has already changed. Really don't like Flatpak installing GPU drivers every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants