Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284350 - x11-wm/scrotwm (new package)
Summary: x11-wm/scrotwm (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL: http://www.scrotwm.org/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-09-09 20:39 UTC by Massimo Gengarelli
Modified: 2011-06-11 17:01 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild (scrotwm-0.9.5.ebuild,1.46 KB, text/plain)
2009-09-09 20:44 UTC, Massimo Gengarelli
Details
Patch #1 (01_all_do-not-use-symlinks-during-build.diff,834 bytes, patch)
2009-09-09 20:44 UTC, Massimo Gengarelli
Details | Diff
Patch #2 (02_all_do-not-build-libswmhack.diff,763 bytes, patch)
2009-09-09 20:45 UTC, Massimo Gengarelli
Details | Diff
Patch #3 (03_all_check-before-preloading-libswmhack.diff,1.13 KB, patch)
2009-09-09 20:45 UTC, Massimo Gengarelli
Details | Diff
Patch #4 (04_all_remove-bash-and-openbsd-assumptions.diff,3.27 KB, patch)
2009-09-09 20:45 UTC, Massimo Gengarelli
Details | Diff
Patch to use XFT instead of the X Core Fonts (written by me, has to be tested) (10_all-use-xft.diff,4.00 KB, patch)
2009-09-13 16:05 UTC, Massimo Gengarelli
Details | Diff
Patch for the Makefile to compile using XFT (has to be tested, too..) (11_all-makefile-use-xft.diff,396 bytes, patch)
2009-09-13 16:05 UTC, Massimo Gengarelli
Details | Diff
The scrotwm slightly modified to use XFT (the original one won't work) (scrotwm_xft.conf,2.94 KB, patch)
2009-09-13 16:06 UTC, Massimo Gengarelli
Details | Diff
The new Ebuild with the useflag xft available (scrotwm-0.9.5.ebuild,1.80 KB, patch)
2009-09-13 16:06 UTC, Massimo Gengarelli
Details | Diff
Ebuild for scrotwm-0.9.6 (released 13/09) (scrotwm-0.9.6.ebuild,1.42 KB, text/plain)
2009-09-14 17:35 UTC, Massimo Gengarelli
Details
Patch #1 for scrotwm-0.9.6 (01-scrotwm-0.9.6-fix-makefile-for-linux.diff,634 bytes, patch)
2009-09-14 17:35 UTC, Massimo Gengarelli
Details | Diff
Patch #2 for scrotwm-0.9.6 (02-scrotwm-0.9.6-check-before-preloading-libswmhack.diff,604 bytes, patch)
2009-09-14 17:35 UTC, Massimo Gengarelli
Details | Diff
Patch #3 for scrotwm-0.9.6 (03-scrotwm-0.9.6-use-xft.diff,4.00 KB, text/plain)
2009-09-14 17:36 UTC, Massimo Gengarelli
Details
Patch #4 for scrotwm-0.9.6 (04-scrotwm-0.9.6-fix-makefile-for-xft.diff,394 bytes, patch)
2009-09-14 17:36 UTC, Massimo Gengarelli
Details | Diff
Ebuild for scrotwm-0.9.10 (scrotwm-0.9.10.ebuild,1.22 KB, text/plain)
2009-10-07 07:28 UTC, Massimo Gengarelli
Details
refreshed and corrected xft patch for scrotwm 0.9.10 (use-xft.diff,3.60 KB, patch)
2009-10-07 07:29 UTC, Massimo Gengarelli
Details | Diff
Fixed ebuild for 0.9.10 (scrotwm-0.9.10.ebuild,1.23 KB, text/plain)
2009-10-07 13:45 UTC, Massimo Gengarelli
Details
Added ~amd64 keyword (scrotwm-0.9.10.ebuild,1.24 KB, text/plain)
2009-10-08 07:57 UTC, Massimo Gengarelli
Details
This patches also the man file (only the english one, since I don't know Spanish) (use-xft.diff,4.15 KB, patch)
2009-10-08 07:58 UTC, Massimo Gengarelli
Details | Diff
Ebuild for scrotwm-0.9.11 (scrotwm-0.9.11.ebuild,1.24 KB, text/plain)
2009-10-09 11:15 UTC, Massimo Gengarelli
Details
Use this patch only with >= scrotwm-0.9.11 (use-xft.diff,4.71 KB, patch)
2009-10-09 11:16 UTC, Massimo Gengarelli
Details | Diff
Ebuild for scrotwm-0.9.12 (scrotwm-0.9.12.ebuild,1.24 KB, text/plain)
2009-10-11 07:49 UTC, Massimo Gengarelli
Details
Ebuild for scrotwm-0.9.13 (scrotwm-0.9.13.ebuild,1.24 KB, text/plain)
2009-10-13 13:54 UTC, Massimo Gengarelli
Details
Ebuild for scrotwm-0.9.14 (scrotwm-0.9.14.ebuild,1.27 KB, text/plain)
2009-10-13 13:54 UTC, Massimo Gengarelli
Details
Patch for scrotwm 0.9.14, it won't compile without this one. (fix-tail.diff,456 bytes, patch)
2009-10-13 13:54 UTC, Massimo Gengarelli
Details | Diff
Patch for scrotwm 0.9.14, it won't compile without this one. (fix-tail.diff,423 bytes, patch)
2009-10-13 14:15 UTC, Massimo Gengarelli
Details | Diff
THE release. (scrotwm-0.9.15.ebuild,1.24 KB, text/plain)
2009-10-13 21:15 UTC, Massimo Gengarelli
Details
Ebuild for scrotwm-0.9.19 (scrotwm-0.9.19.ebuild,1.24 KB, text/plain)
2009-11-16 22:02 UTC, Nikolay Ostanen
Details
scrotwm-0.9.22.ebuild (scrotwm-0.9.22.ebuild,1.04 KB, text/plain)
2010-03-22 01:44 UTC, Tiago Cunha (RETIRED)
Details
x11-wm/scrotwm-0.9.22.ebuild (scrotwm-0.9.22.ebuild,896 bytes, text/plain)
2010-03-22 10:58 UTC, MT
Details
scrotwm-0.9.22-makefile.patch (scrotwm-0.9.22-makefile.patch,583 bytes, patch)
2010-03-22 10:59 UTC, MT
Details | Diff
x11-wm/scrotwm-0.9.22.ebuild (scrotwm-0.9.22-makefile.patch,583 bytes, text/plain)
2010-03-22 11:34 UTC, MT
Details
x11-wm/scrotwm-0.9.22.ebuild (scrotwm-0.9.22.ebuild,912 bytes, text/plain)
2010-03-22 12:06 UTC, MT
Details
scrotwm-0.9.27.ebuild (scrotwm-0.9.27.ebuild,936 bytes, text/plain)
2010-11-06 11:50 UTC, MT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Gengarelli 2009-09-09 20:39:22 UTC
Scrotwm is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast. 

The ebuild comes along with some patches to make it compile right on Linux. Patches are from the GNU/Linux Debian mantainer.
Just unpack it into your local portage overlay, inside x11-wm (create it if you don't have one)

Reproducible: Always

Steps to Reproduce:
1. download scrotwm ebuild
2. emerge it
3. use it
4. ???
5. PROFIT!




This is my very first ebuild for Gentoo Linux, I hope that everything will work fine.
Comment 1 Massimo Gengarelli 2009-09-09 20:44:10 UTC
Created attachment 203634 [details]
Ebuild
Comment 2 Massimo Gengarelli 2009-09-09 20:44:56 UTC
Created attachment 203636 [details, diff]
Patch #1
Comment 3 Massimo Gengarelli 2009-09-09 20:45:10 UTC
Created attachment 203637 [details, diff]
Patch #2
Comment 4 Massimo Gengarelli 2009-09-09 20:45:25 UTC
Created attachment 203639 [details, diff]
Patch #3
Comment 5 Massimo Gengarelli 2009-09-09 20:45:38 UTC
Created attachment 203640 [details, diff]
Patch #4
Comment 6 Massimo Gengarelli 2009-09-13 16:05:31 UTC
Created attachment 203947 [details, diff]
Patch to use XFT instead of the X Core Fonts (written by me, has to be tested)
Comment 7 Massimo Gengarelli 2009-09-13 16:05:55 UTC
Created attachment 203948 [details, diff]
Patch for the Makefile to compile using XFT (has to be tested, too..)
Comment 8 Massimo Gengarelli 2009-09-13 16:06:24 UTC
Created attachment 203950 [details, diff]
The scrotwm slightly modified to use XFT (the original one won't work)
Comment 9 Massimo Gengarelli 2009-09-13 16:06:51 UTC
Created attachment 203952 [details, diff]
The new Ebuild with the useflag xft available
Comment 10 Massimo Gengarelli 2009-09-14 17:35:08 UTC
Created attachment 204100 [details]
Ebuild for scrotwm-0.9.6 (released 13/09)
Comment 11 Massimo Gengarelli 2009-09-14 17:35:30 UTC
Created attachment 204102 [details, diff]
Patch #1 for scrotwm-0.9.6
Comment 12 Massimo Gengarelli 2009-09-14 17:35:50 UTC
Created attachment 204103 [details, diff]
Patch #2 for scrotwm-0.9.6
Comment 13 Massimo Gengarelli 2009-09-14 17:36:10 UTC
Created attachment 204105 [details]
Patch #3 for scrotwm-0.9.6
Comment 14 Massimo Gengarelli 2009-09-14 17:36:28 UTC
Created attachment 204107 [details, diff]
Patch #4 for scrotwm-0.9.6
Comment 15 Eric Smith 2009-10-06 21:02:43 UTC
Thanks for the ebuilds and patches.  I just switched from xmonad, and I'm really loving scrotwm.

I just had two questions:
Why are you installing it into /usr/local?  Isn't that just for things not installed by portage?
Have you considered submitting your xft patches upstream?

I'm in the process of bumping the patches to 0.9.10, but I'll let you post your versions here, since you seem to be very familar with the code.
Comment 16 Massimo Gengarelli 2009-10-07 07:28:39 UTC
Created attachment 206282 [details]
Ebuild for scrotwm-0.9.10
Comment 17 Massimo Gengarelli 2009-10-07 07:29:20 UTC
Created attachment 206283 [details, diff]
refreshed and corrected xft patch for scrotwm 0.9.10

Do not use old patches, they're broken since they've made a lot of changes. Use this, instead!
Comment 18 Massimo Gengarelli 2009-10-07 07:31:52 UTC
(In reply to comment #15)
> Thanks for the ebuilds and patches.  I just switched from xmonad, and I'm
> really loving scrotwm.
> 
> I just had two questions:
> Why are you installing it into /usr/local?  Isn't that just for things not
> installed by portage?

 Well, not really.. I'm used to install all of the stuff I compile by hand in /usr/local. There isn't really a guideline for this, AFAIK.. btw, the new scrotwm's makefile (they finally fixed it :D) install it in /usr/local by default ;)

> Have you considered submitting your xft patches upstream?
 Yep, I've proposed them and they'll be soon in upstream, I just have to find the time to make the modify the man page too :D
 
> I'm in the process of bumping the patches to 0.9.10, but I'll let you post your
> versions here, since you seem to be very familar with the code.
 Done ;)

Comment 19 Eric Smith 2009-10-07 11:17:46 UTC
I'm having some problems with permissions with the new makefile.

First, it can't create /usr/local/share/man/man1:
>>> Starting src_install
make -j3 install
install -m 755 -d /usr/local/bin
install -m 755 -d /usr/local/lib
install -m 755 -d /usr/local/share/man/man1
ACCESS DENIED  mkdir:        /usr/local/share/man/man1
install: cannot change permissions of `/usr/local/share/man/man1': No such file or directory


If I manually create the "man1" directory, it then fails on:
>>> Starting src_install
make -j3 install
install -m 755 -d /usr/local/bin
install -m 755 -d /usr/local/lib
install -m 755 -d /usr/local/share/man/man1
install -m 755 scrotwm /usr/local/bin
ACCESS DENIED  open_wr:      /usr/local/bin/scrotwm
install: cannot create regular file `/usr/local/bin/scrotwm': Permission denied

I'm not really sure how to fix this..
Comment 20 Massimo Gengarelli 2009-10-07 11:36:14 UTC
(In reply to comment #19)


Well, I don't think is a bug from the Makefile, I'm almost sure that I've done something wrong in the ebuild, and I'll fix it as soon as possible.

For now, I successfully installed it, I think that it might be something related with the sandbox feature of portage.

Try emerging it issuing the following command:
FEATURES="-sandbox" emerge -v scrotwm

I know isn't really the best solution around, but for now it will do its work ;)
Comment 21 Massimo Gengarelli 2009-10-07 13:45:48 UTC
Created attachment 206319 [details]
Fixed ebuild for 0.9.10

This should install correctly!
Comment 22 Eric Smith 2009-10-07 20:11:39 UTC
(In reply to comment #21)
> Created an attachment (id=206319) [details]
> Fixed ebuild for 0.9.10
> 
> This should install correctly!
> 

Yep, that did the trick! :)

Minor thing, but you can probably add ~amd64 since it works here.
Also, I noticed that scrotwm's makefile compiles it with the ggdb cflag.  I'm not really sure, but aren't debugging flags usually removed in ebuilds?
Comment 23 Massimo Gengarelli 2009-10-08 07:57:55 UTC
Created attachment 206408 [details]
Added ~amd64 keyword

Thank you for testing, Eric, now we're sure that it doesn't have problems on amd64 ;)
Comment 24 Massimo Gengarelli 2009-10-08 07:58:57 UTC
Created attachment 206410 [details, diff]
This patches also the man file (only the english one, since I don't know Spanish)

Not a very big update, but I find that this could be useful..
Comment 25 Massimo Gengarelli 2009-10-09 11:15:49 UTC
Created attachment 206518 [details]
Ebuild for scrotwm-0.9.11

No big changes between the 0.9.10, except they've added the italian man page and fixed some minor bugs.
Comment 26 Massimo Gengarelli 2009-10-09 11:16:46 UTC
Created attachment 206520 [details, diff]
Use this patch only with >= scrotwm-0.9.11

Substantially the same patch, this patches the italian man page too (still, no changes to the spanish one since I don't know spanish)
Comment 27 Massimo Gengarelli 2009-10-11 07:49:19 UTC
Created attachment 206731 [details]
Ebuild for scrotwm-0.9.12 

It works well with the attached use-xft.diff patch.
Comment 28 Massimo Gengarelli 2009-10-13 13:54:15 UTC
Created attachment 206967 [details]
Ebuild for scrotwm-0.9.13
Comment 29 Massimo Gengarelli 2009-10-13 13:54:31 UTC
Created attachment 206969 [details]
Ebuild for scrotwm-0.9.14
Comment 30 Massimo Gengarelli 2009-10-13 13:54:53 UTC
Created attachment 206970 [details, diff]
Patch for scrotwm 0.9.14, it won't compile without this one.
Comment 31 Massimo Gengarelli 2009-10-13 14:15:00 UTC
Created attachment 206974 [details, diff]
Patch for scrotwm 0.9.14, it won't compile without this one.

Corrected the patch.
Comment 32 Massimo Gengarelli 2009-10-13 21:15:11 UTC
Created attachment 207019 [details]
THE release.

This release is almost perfect. The only patch needed is the one for Xft. Seems like they solved lot of troubles that previous releases had. I strongly advice to use this one instead of all the > 0.9.7. This and the 0.9.6 are perfect.
Comment 33 Nikolay Ostanen 2009-11-16 22:02:32 UTC
Created attachment 210444 [details]
Ebuild for scrotwm-0.9.19
Comment 34 Tiago Cunha (RETIRED) gentoo-dev 2010-03-22 01:44:06 UTC
Created attachment 224619 [details]
scrotwm-0.9.22.ebuild

Improved ebuild for the 0.9.22 version with the following changes compared to the latest one provided in the bug:
- Simplify HOMEPAGE (prevents repoman from complaining).
- Fix dependencies (x11-proto/xproto is only needed at build-time, and add x11-misc/dmenu to the list of reverse run-time dependencies).
- Set the S variable accordingly, ergo avoiding changing directories.
- Do not compile with an enhanced symbol table by default.
- Add the ELF SONAME tag to the library (prevents portage from complaining).
- Define the CC variable for cross-compiling.
- Make the ebuild install the library to the correct location (prevents portage from complaining with FEATURES="multilib-strict").
- Install the files manually for now (under /usr).

There's still work to be done, though. Namely, I didn't add the XFT patch since it probably would need Makefile, and C pre-processor conditionals while it's not merged upstream to prevent linking, and using XFT features with USE="-xft" (which would be a USE default), therefore making both the ebuild, and the source unnecessarely messy.

Additionally, the ebuild could install the remaining man pages by taking advantage of EAPI="2". However, it seems the files need to be named foo.lang.1.

Unfortunately, I don't have much time for this right now, and I'd rather see this fixed before committing it to the tree.

Massimo, could you please send the SONAME "fix" upstream, as well?

Thanks for contributing!
Comment 35 MT 2010-03-22 10:58:16 UTC
Created attachment 224639 [details]
x11-wm/scrotwm-0.9.22.ebuild

an improved ebuild that *really* take advantage of EAPI2 and handles emake calls correcly
Comment 36 MT 2010-03-22 10:59:27 UTC
Created attachment 224641 [details, diff]
scrotwm-0.9.22-makefile.patch

patch that fixes QA Notices and removes useless hardcoded compiler flags
Comment 37 MT 2010-03-22 11:34:41 UTC
Created attachment 224651 [details]
x11-wm/scrotwm-0.9.22.ebuild

I have accidentally removed an eclass from inherit, now restored.
Comment 38 MT 2010-03-22 12:06:17 UTC
Created attachment 224655 [details]
x11-wm/scrotwm-0.9.22.ebuild

sorry for the noise, the previous attachment was a wrong file
Comment 39 MT 2010-11-06 11:50:27 UTC
Created attachment 253387 [details]
scrotwm-0.9.27.ebuild

An unpdated ebuild
Comment 40 Michael Weber (RETIRED) gentoo-dev 2011-06-11 17:01:35 UTC
Please ping me on irc or bugzie, if i miss any new release. Thanks

+*scrotwm-0.9.28 (11 Jun 2011)
+
+  11 Jun 2011; Michael Weber <xmw@gentoo.org> +scrotwm-0.9.28.ebuild,
+  +files/scrotwm-0.9.28-makefile.patch, +metadata.xml:
+  Initial import, thanks to Massimo Gengarelli, Nikolay Ostanen and Toffanin
+  for the initial ebuilds (bug 284350)