Giter Club home page Giter Club logo

i3-gaps-deb's Introduction

i3-gaps-deb

Tool to create and install Debian packages of i3-gaps.

How does it work?

It uses the newest stuff from here, makes some modifications (only if necessary for the building step) and finally produces common Debian packages.

What's the purpose?

i3-gaps simply does not exist in Debian (so far).

How do I use it?

$ git clone [email protected]:maestrogerardo/i3-gaps-deb.git
$ cd i3-gaps-deb
$ ./i3-gaps-deb
$ # Follow the interactive prompts.

Works for what?

  • Debian "stable" and later.
  • Everything derived from above (e.g. Ubuntu).

Credits

Thanks to stapelberg for creating i3 and Airblader for the gaps part (...and of course to anyone else contributing to i3).

Beer

Hey, I'm thirsty like hell... ;-)

i3-gaps-deb's People

Contributors

ethagnawl avatar jbenden avatar laur89 avatar lpinilla avatar maestrogerardo avatar steveclement avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

i3-gaps-deb's Issues

Aptitude installs i3 over the top of i3-gaps

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!

help

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

ubuntu compatibility: missing dependency

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.

i3-gaps-next needs a change in i3 meson_options.txt

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)')

Which sources should we add to sources.list when prompted?

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.

PopOS! Changed to Flatpak by default

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.

xterm opening

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?

dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

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

Error on Ubuntu 18.04

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.

Script runs only after commenting out line #553

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!

build issue

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!

Debian (Stable & Testing) install error: dpkg warning - bad syntax

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.

Compiling from Remote Git Permission Denied

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.

Add a possibility to have a i3-gaps binary

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

Kali Linux 2.0 support (Debian testing)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.