maestrogerardo / i3-gaps-deb Goto Github PK
View Code? Open in Web Editor NEWTool to create and install Debian (or Ubuntu) packages of i3-gaps.
License: GNU General Public License v3.0
Tool to create and install Debian (or Ubuntu) packages of i3-gaps.
License: GNU General Public License v3.0
As the title suggests, I can install i3-gaps
with your tool but once I run sudo apt-get dist-upgrade
the system reinstalls i3
over the top. Do you have any suggestions on how I can fix this?
Thanks for the great package, by the way!
Hi,
Thanks a lot for your work
Maybe, it could be an interesting option to have the name i3-gaps to binaries and everything (possible with --program-suffix at configure time), if one want to have both i3 and i3-gaps (even if the config file problem remains)
Have a nice day
On my MX Linux 19.2 installation I got a "command not found" for
igd_checkHelp ${@}
on initial execution.
No biggy. I tried to find a hint at why this message appears, but to no avail. Commenting out the line above fixed it for me.
Thanx for this fantastic tool!
Seems the remote repo where one grabs the source to compile GAPS is archived, hence can't get permission to download. :(. Another other place? Sucks why 2 years after Debian refused the pull request, that they still haven't combined the two as stated by their i3 developer. Or have they - anyone have an update?
Cheers,
Cloning into 'i3-gaps-deb'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
By default docs/mans is disabled in i3-next. Thus the packages do not build and they need to be enabled:
PR #27 fixes this.
Error:
Running custom install script '/home/steve/Desktop/code/i3-gaps-deb/i3-gaps/meson/meson-install-i3-with-shmlog bin'
debian/rules override_dh_installchangelogs
make[1]: Entering directory '/home/steve/Desktop/code/i3-gaps-deb/i3-gaps'
dh_installchangelogs RELEASE-NOTES-*
make[1]: Leaving directory '/home/steve/Desktop/code/i3-gaps-deb/i3-gaps'
debian/rules override_dh_installman
make[1]: Entering directory '/home/steve/Desktop/code/i3-gaps-deb/i3-gaps'
dh_install -O--parallel -O--buildsystem=meson
make[1]: Leaving directory '/home/steve/Desktop/code/i3-gaps-deb/i3-gaps'
dh_systemd_enable -O--buildsystem=meson
dh_installinit -O--buildsystem=meson
dh_systemd_start -O--buildsystem=meson
dh_perl -O--buildsystem=meson
dh_link -O--buildsystem=meson
dh_installwm -O--buildsystem=meson
dh_installwm: error: no manpage found (creating an x-window-manager alternative requires a slave symlink for the manpage)
make: *** [debian/rules:30: binary] Error 255
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
$ cat i3-gaps/meson_options.txt
# -*- mode: meson -*-
option('docs', type: 'boolean', value: false,
description: 'Build documentation from source (release tarballs contain a generated copy)')
option('mans', type: 'boolean', value: false,
description: 'Build manpages from source (release tarballs contain a generated copy)')
option('docdir', type: 'string', value: '',
description: 'documentation directory (default: $datadir/docs/i3)')
Currently said patch only works in git repos; think it'd be better if the patch format was changed so it could also be applied to source tarballs instead of cloned git repos.
Apparently I'm asked the following question:
Please add necessary "deb-src" line(s) to your sources.list (and run an update). [RETURN]
Where can I check which packages I'm missing in order to install this?
Do I simply have to install all the dependencies of i3-gaps in order to install it?
I'm not quite sure if I should change my sources.list.
I'm on: SMP Debian 4.11.6-1kali1 (2017-06-21)
My sources.list contains the following kali repo:
deb http://http.kali.org/kali kali-rolling main non-free contrib
Apparently the command:
grep --quiet -r "^ deb-src.((debian)|(ubuntu)|(kali))[/ ].*main" /etc/apt/sources.list
Doesn't work on fetching whether this repo exists in my sources.list...
EDIT: My deb-src was commented out in my sources.list... (Can't remember why I did that) Problem solved now
Checking for deb-src on the latest PopOS! install fails.
After uprgrading i3-gaps-deb fails with:
โ ./i3-gaps-deb
[igd] This tool creates (and optionally installs) Debian packages of i3-gaps... [RETURN]
[igd] This tool comes without any warranty and in the hope to be useful... [RETURN]
[igd] Checking i3 installation...
[igd] Checking sources.list(s) to contain sources ("weak")...
[igd] Please add necessary "deb-src" line(s) to your apt sources (and run an 'apt update'). [RETURN]
The fix would be to change Line 95:
if ! grep --quiet -r "^ *deb-src.*\(\(debian\)\|\(ubuntu\)\|\(kali\)\|\(ascii\)\|\(beowulf\)\)[/ ].*main" /etc/apt/sources.list*; then
To something flatpak compatible.
I can send a PR if it is not already in the works.
When I tried running your script, I got
Please add necessary "deb-src" line(s) to your sources.list (and run an update).
I'm unsure which sources to add. I'm on Ubuntu 16.04. Thanks for the awesome tool btw, setting up i3-gaps is always a small time sink.
Awesome project, it made installing i3-gaps really simple. Running Ubuntu 17.04 here and had to manually install docbook5-xml for make to work. I didn't know if that was just my setup or needed to be added.
Thanks!
I am curious why is libasan3
needed as dependency for i3-gaps?
I read on i3-gaps Ubuntu dependencies page, and libasan3
is not listed.
I just want to install i3-gaps on Ubuntu 16.04.
The previous last .deb file I generated is i3-wm_4.14-1gerardo+201709071758481_amd64.deb
and this is installable on Ubuntu 16.04
There is a meson dependency that is missing when selecting the -next branch.
PR #27 fixes this.
When I ran into these errors I was running Debian Stable. While I was using Debian Stable I recently uninstalled i3 for a few days and then attempted to reinstall it on debian again. i3 installs fine but using i3-gaps-deb now encounters an error during installation:
[igd] Use branch "gaps"? ("gaps-next" otherwise) (Y/n):
Already on 'gaps'
Your branch is up-to-date with 'origin/gaps'.
Already up-to-date.
[igd] Updating Debian changelog...
dpkg: warning: version '4.16
.1' has bad syntax: invalid character in version number
[igd] Version detected: "4.16" VS "4.16
.1" ~> "4.16
.1-1gerardo+20190202072808"
debchange: fatal error at line 1083:
New version specified (4.16
.1-1gerardo+20190202072808) is less than
the current version number (4.16-1)! Use -b to force.
I then edited the code and added the -b to make it work and it still did not work. I got another error:
[igd] Use branch "gaps"? ("gaps-next" otherwise) (Y/n):
Already on 'gaps'
Your branch is up-to-date with 'origin/gaps'.
Already up-to-date.
[igd] Updating Debian changelog...
dpkg: warning: version '4.16
.1' has bad syntax: invalid character in version number
[igd] Version detected: "4.16" VS "4.16
.1" ~> "4.16
.1-1gerardo+20190202073154"
debchange warning: new version (4.16
.1-1gerardo+20190202073154) is less than
the current version number (4.16-1).
[igd] Fix rules file...
[igd] Build Debian packages... [RETURN]
dpkg-buildpackage: warning: debian/changelog(l1): badly formatted heading line
LINE: i3-wm (4.16
dpkg-buildpackage: warning: debian/changelog(l2): badly formatted heading line
LINE: .1-1gerardo+20190202073154) unstable; urgency=medium
dpkg-buildpackage: warning: debian/changelog(l3): found blank line where expected first heading
dpkg-buildpackage: warning: debian/changelog(l4): found change data where expected first heading
LINE: * New upstream.
dpkg-buildpackage: warning: unknown information field '' in input data in parsed version of changelog
dpkg-buildpackage: info: source package unknown
dpkg-buildpackage: info: source version unknown
dpkg-buildpackage: error: version number does not start with digit
After this I thought maybe if I upgrade Debian to testing it may fix the issue. After all it mentions something about dpkg version. The upgrade did not fix the error, but here is the output now nonetheless:
[igd] Use branch "gaps"? ("gaps-next" otherwise) (Y/n): Branch 'gaps' set up to track remote branch 'gaps' from 'origin'.
Switched to a new branch 'gaps'
warning: redirecting to https://github.com/Airblader/i3.git/
Already up to date.
[igd] Updating Debian changelog...
dpkg: warning: version '4.16
.1' has bad syntax: invalid character in version number
[igd] Version detected: "4.16" VS "4.16
.1" ~> "4.16
.1-1gerardo+20190202220022"
debchange: error: 4.16
.1-1gerardo+20190202220022 is not a valid version
At this point I'm not sure what to do. Any help would be appreciated, thanks.
Update
I found this guide on how to install i3-gaps on debian and it worked without problems. I no longer need any help, however it's always worth submitting bugs regardless.
I think the -y
of apt-get/apt
should come after the build-dep
.
sudo apt-get build-dep -y i3-wm
sudo apt build-dep -y i3-wm
sudo apt install -y
Also, how can I run this on a controlled environment avoiding to mess with my installed system installing all these dependencies? I'm not used to create deb packages. I was reading about pbuilder but I couldn't make this script work with it.
When i launch i3 gaps through startx i3 it opens a xterm window with logs from my i3 config file. When i got to close it, it exits i3. How do i close the xterm window?
Hi, I'm trying to install i3-gaps-deb on a debian sid system. I first install i3, and then clone the full repo and do ./i3-gaps-deb from my root account. Here's the end of the crash log.
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "i3"
#define PACKAGE_TARNAME "i3"
#define PACKAGE_VERSION "4.16.1"
#define PACKAGE_STRING "i3 4.16.1"
#define PACKAGE_BUGREPORT "https://github.com/i3/i3/issues"
#define PACKAGE_URL ""
#define PACKAGE "i3"
#define VERSION "4.16.1"
#define I3_VERSION "4.16.1-1-g341fcf99 (2019-01-27, branch \"gaps\")"
#define MAJOR_VERSION 4
#define MINOR_VERSION 16
#define PATCH_VERSION 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE__BOOL 1
#define HAVE_MODE_T 1
#define HAVE_OFF_T 1
#define HAVE_PID_T 1
#define HAVE_SIZE_T 1
#define HAVE_SSIZE_T 1
#define HAVE_FORK 1
#define HAVE_VFORK 1
#define HAVE_WORKING_VFORK 1
#define HAVE_WORKING_FORK 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_ATEXIT 1
#define HAVE_DUP2 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETCWD 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_LOCALTIME_R 1
#define HAVE_MEMCHR 1
#define HAVE_MEMSET 1
#define HAVE_MKDIR 1
#define HAVE_RMDIR 1
#define HAVE_SETLOCALE 1
#define HAVE_SOCKET 1
#define HAVE_STRCASECMP 1
#define HAVE_STRCHR 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRNCASECMP 1
#define HAVE_STRNDUP 1
#define HAVE_STRRCHR 1
#define HAVE_STRSPN 1
#define HAVE_STRSTR 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_PTHREAD_PRIO_INHERIT 1
#define HAVE_PTHREAD 1
configure: exit 1
dh_auto_configure: cd build && ../configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --docdir=/usr/share/doc/i3-wm returned exit code 1
make[1]: *** [debian/rules:18: override_dh_auto_configure] Error 2
make[1]: Leaving directory '/home/thor/tools/i3-gaps-deb/i3-gaps'
make: *** [debian/rules:25: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The dependency libxcb-xrm-dev does not exist on Ubuntu 16.04, and thus the build fails. It's possible that it's functionality is provided by another package, as I have installed i3-gaps manually in a VM before, but dpkg wants libxcb-xrm-dev.
Relevant terminal output:
[igd] Build Debian packages... [RETURN]
dpkg-buildpackage: source package i3-wm
dpkg-buildpackage: source version 4.13-1gerardo+201705032120591
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Gerhard A. Dittes [email protected]
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build i3-gaps
dpkg-checkbuilddeps: error: Unmet build dependencies: libxcb-xrm-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Based on the output, it might be possible to force the build, but I'm not knowledgable enough about dpkg to try it myself.
come on ,how can i to use it.the note is too simple.i i don't understand to how to install i3-gaps in debian10
Apologies for writing this here, but it seemed "kind of" the best place to request it. Could you please do the same thing with https://github.com/Airblader/i3blocks-gaps too? Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.