Skip to content

Clifm : add new recipe#1679

Open
extrowerk wants to merge 1 commit intoomniosorg:masterfrom
extrowerk:clifm
Open

Clifm : add new recipe#1679
extrowerk wants to merge 1 commit intoomniosorg:masterfrom
extrowerk:clifm

Conversation

@extrowerk
Copy link
Contributor

@extrowerk extrowerk commented Nov 13, 2025

Clifm is a nice terminal file manager: https://github.com/leo-arch/clifm

The patch is extracted from : leo-arch/clifm@8f8a7fc

Copy link
Member

@hadfl hadfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. There are a few questions, please see below

@extrowerk extrowerk requested a review from hadfl November 13, 2025 21:45
@extrowerk extrowerk changed the title Clifm : add recipe Clifm : add new recipe Nov 14, 2025
@extrowerk
Copy link
Contributor Author

Cmake dependency have been removed.

@extrowerk
Copy link
Contributor Author

All issue have been fixed.

oetiker
oetiker previously approved these changes Nov 17, 2025
@citrus-it
Copy link
Member

Thanks for putting this together! I just tried building the package locally with the changes in this PR, but the
resulting manifest ends up without any file actions — just the set and licence entries.

+set name=pkg.fmri value=pkg://extra.omnios/ooce/application/clifm
+set name=pkg.summary value=clifm
+set name=pkg.description value="A shell-like, text-based terminal file manager"
+set name=info.source-url value=https://mirrors.omnios.org/clifm/clifm-1.26.3.tar.gz
+set name=publisher value=sa@omnios.org
+license 24d892cae44e4d8279f44b2cf5c5bb07b047f3cd license=GPLv2

Is it possible something didn’t get pushed, or that you were testing with some additional local changes? If you have a known-good build environment or manifest, could you share that so we can reproduce it?

One thing that definitely doesn't look right is the

logcmd $gmake gmake -f misc/solaris/Makefile

which should presumably be this ($MAKE is gmake in the build framework)

logcmd $MAKE -f misc/solaris/Makefile 

Also, just a quick reminder of our minimalist principle (https://omnios.org/about/kysty) - we aim to package things that are broadly useful to the OmniOS community and that we can commit to maintaining across releases. If this is mostly for personal use, maintaining a small external repository might be a better route; if you think this has general appeal, happy to continue working through it with you.

@extrowerk
Copy link
Contributor Author

Thanks for putting this together! I just tried building the package locally with the changes in this PR, but the resulting manifest ends up without any file actions — just the set and licence entries.

You have right, I missed some commits. Updated, now it should be ok.

Also, just a quick reminder of our minimalist principle (https://omnios.org/about/kysty) - we aim to package things that are broadly useful to the OmniOS community and that we can commit to maintaining across releases. If this is mostly for personal use, maintaining a small external repository might be a better route; if you think this has general appeal, happy to continue working through it with you.

I understand your point and I'll look into creating a personal repository.
I personally like both fish and clifm, and use on my OpenBSD machines. Clifm in my eyes a slim variant of "mc", it helps me to quickly explore the fodler structure, without standing between me and the terminal. I think it could be useful for other people aswell.

Comment on lines 28 to 39
build() {
pushd $TMPDIR/$BUILDDIR > /dev/null

logmsg "Building $PROG"

logcmd $MAKE -f misc/solaris/Makefile || logerr "Unable to build $PROG"

logmsg "Installing $PROG"
logcmd $MAKE -f misc/solaris/Makefile INSTALL=install PREFIX=$DESTDIR/$PREFIX install || logerr "Unable to install $PROG"

popd >/dev/null
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When possible we try not to override the build framework. Could you instead use e.g.:

pre_configure() {
    typeset arch=$1

    subsume_arch $arch CFLAGS

    # No configure
    false
}


MAKE_ARGS="-f misc/solaris/Makefile"
MAKE_INSTALL_ARGS="$MAKE_ARGS INSTALL=install PREFIX=$PREFIX"

This will also make sure the CTF CFLAGS are used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks for the hint!

hadfl
hadfl previously approved these changes Dec 12, 2025
@extrowerk
Copy link
Contributor Author

Bumped to 1.27

@extrowerk
Copy link
Contributor Author

Bumped to 1.27.1.

I got this warning:

==== opt/ooce/bin/clifm ====
                unused search path=/usr/xpg4/lib/amd64  (RUNPATH/RPATH from file /usr/lib/64/libreadline.so.8)  <remove search path?>
        unreferenced object=/lib/64/libtermcap.so.1; unused dependency of /tmp/build_szilard/clifm-1.27.1/ooce_application_clifm_pkg/opt/ooce/bin/clifm <remove lib or -zignore?>
        unreferenced object=/lib/64/libm.so.2; unused dependency of /usr/lib/64/libmagic.so.1   <remove lib or -zignore?>
ELF runtime problems detected

Is there anything I can do to fix this?

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

Successfully merging this pull request may close these issues.

4 participants