Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[edit] menumaker and leafpad compile tips

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
greg9
Posts: 34
Joined: 2021-09-14 06:29
Has thanked: 6 times

[edit] menumaker and leafpad compile tips

#1 Post by greg9 »

Original subject line=Is it OK to post how to compile leafpad and menumaker?


I am still new here but am on testing rather than stable, at my own risk of course.
Trivia, I wanted icewm latest and too lazy to see if I could build it on stable.

I am read the stickies and most forums do not allow posting of binaries plus those on stable, might be scared of such coming from a new poster.

So instead, can I show how I compiled, with links to open sources for leafpad and menumaker.
I am tempted to post a link to a screenshot of my menu too.

thanks for reading

PS I lack the time to go thru the process of becoming the downstread maintainer and for selfish reasons, do not want to have multiple stable, testing and unstable virtual machines or the like.

If ok, I will reply here for both.

Code: Select all

 file /usr/local/bin/mmaker
/usr/local/bin/mmaker: Python script, ASCII text executable

$ file /usr/local/bin/leafpad # line breaks added to save scrolling for the curious
/usr/local/bin/leafpad: ELF 64-bit LSB pie executable, \
x86-64, version 1 (SYSV), dynamically linked, \
interpreter /lib64/ld-linux-x86-64.so.2, \
BuildID[sha1]=4d35e8c9cd8d1ae86c4a5e7dd299055354739d61, \
for GNU/Linux 3.2.0, with debug_info, not stripped
Last edited by greg9 on 2021-09-16 01:04, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Is it OK to post how to compile leafpad and menumaker?

#2 Post by sunrat »

Sure, you can post how you compiled it. However the latest icewm release is already in Testing, and it has a Debian maintainer.
https://packages.debian.org/bookworm/icewm
https://ice-wm.org/ - this homepage also has instructions how to compile the latest unreleased development version from Github.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

greg9
Posts: 34
Joined: 2021-09-14 06:29
Has thanked: 6 times

Re: Is it OK to post how to compile leafpad and menumaker?

#3 Post by greg9 »

@sunrat
Yeah sorry I meant to say too lazy to compile icewm on stable. Which is why I am already on testing to use icewm 2.7.0-1

greg9
Posts: 34
Joined: 2021-09-14 06:29
Has thanked: 6 times

Re: Is it OK to post how to compile leafpad and menumaker?

#4 Post by greg9 »

Intro remarks

Below tested on debian testing, but should work on stable and unstable

Being lazy I added /usr/local/bin to my PATH
/usr/local/bin is the normal place to put non-repo packages, except you can use $HOME/.local/bin
My method may conflict with more secure debian practices. I save a line to $HOME/.bashrc
export PATH=/usr/local/bin:/usr/bin:/bin:/sbin:
logout and login and it should land by checking

Code: Select all

echo $PATH
Below attempts a series of commands you can click the select all button and paste into your terminal.
The install will always require root powers unless you use a $HOME/.local/bin
but I do not use that pathway. While compiling, if you find you are missing something,
it may still compile. If however, it is a build dependency the compile will exit and
reveal it is missing something.

The next command reveals more, if that happens to you.

Code: Select all

cat config.log | grep error
BTW I am not an expert. I failed to compile a recent mtpaint recently but will try again
now that I am on testing. The latest is 3.50 but stable=testing= v 3.40


Menumaker

Alternative menu generator that targets window managers. IMHO below is fairly easy for anyone who has run terminal commands in the past. :D

Open source license a copy shows here as 2-clause (also enclosed in download)
https://en.wikipedia.org/wiki/BSD_licenses

As root install build-essential and python3
Except for install command all below commands are for local user

Code: Select all

cd Downloads

# download source, sourceforge uses a mirror system
PKG=menumaker-0.99.13.tar.gz
curl https://ixpeering.dl.sourceforge.net/project/menumaker/$PKG -o $PKG
# unpack and compile
tar xvf $PKG
cd menumaker-0.99.13
./configure --prefix=/usr/local
make -j5 # if you have 4 cpus, if not sure just run make
As root execute

Code: Select all

make install 
Depending on your Window Manager, you can run as a local user

Code: Select all

mmaker -h
# I use sakura terminal and icewm so I prefer
mmaker -f -t sakura -s GNOME,Xfce  --no-legacy --no-debian -v IceWM
# output is
* scanning
desktop... 34 apps found
skipping legacy
skipping Debian
* merging... 1 coincidings detected
* generating
using Sakura as terminal emulator
* writing to ~/.icewm/menu
* done

What my menu looks like
https://imgur.com/8JS5yxh

greg9
Posts: 34
Joined: 2021-09-14 06:29
Has thanked: 6 times

Re: Is it OK to post how to compile leafpad and menumaker?

#5 Post by greg9 »

Leafpad

A simple text editor that can print. Open source GPL v2 showing in download.

As root, install build-essential and libgtk2.0-dev (for stable, testing and unstable)
Gtk2 will pull down a number of dependencies. Tested on testing branch.

If you need to print, check https://wiki.debian.org/Printing

# original source uses mirrors as per my curl command
# http://tarot.freeshell.org/leafpad/

Commands to run as local user, asssuming pathway is /usr/local/bin as discussed in earlier post

Code: Select all

cd Downloads

# download source leafpad uses a mirror
PKG=leafpad-0.8.17.tar.gz
curl https://mirror.freedif.org/GNU-Sa/leafpad/$PKG -o $PKG

# download and rename patch to make it easy to read.
curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/leafpad/trunk/0001-truncate.patch -o leafpad.patch

# unpack and patch
tar xvf leaf*gz
cd leafpad-0.8.18.1/
patch -Np1 < ../leafpad.patch
# result will be patching file src/file.c

# compile
./configure --prefix=/usr/local --enable-chooser --enable-print
make -j5
Use root powers to install

Code: Select all

 make install 

Post Reply