Downgrade tmux to 1.8 in jail

I need to downgrade sysutils/tmux to version 1.8 in my jail which currently has 2.1. Directions I found on the net show to go to
Code:
# cd /usr/ports/sysutils/portdowngrade
# make DEFAULT_CVS_SERVER=\freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs install clean
# portdowngrade tmux

But there is no portdowngrade directory in sysutils.
I ran make DEFAULT_CVS_SERVER=\freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs install clean from the sysutils directory and got a bunch of errors.

I'm running FreeNAS 9.3. Any help would be appreciated.
 
SirDice: My apologies for posting here I mistakenly thought it was ok because FreeNAS is based on FreeBSD.
Would it be possible for someone to tell me how to fix this error message. I'm pretty sure it has to do with the location of the FreeBSD repo.

Here is the post I made on the FreeNAS forums:
https://forums.freenas.org/index.php?threads/downgrade-tmux-to-1-8-in-jail.42879/

Code:
portdowngrade sysutils/tmux
Choose a revision from this list and run /usr/local/sbin/portdowngrade sysutils/tmux revision
svn: E170013: Unable to connect to a repository at URL 'http://svn.freebsd.org/ports/head/sysutils/tmux'
svn: E000065: Error running context: No route to host
Choose a revision from the above list and run /usr/local/sbin/portdowngrade sysutils/tmux revision
 
The software I'm using is not compatable with 2.1 they recommend 1.8. When I run tmux I get 3 dead panes.
 
What software? Tmux 2.0 was released a year ago. I'd say that's ample time to update the software and make it compatible.
 
So is there a way to downgrade TMUX to 1.8 or even 2.0? Apparently 2.1 tmux doesn't work and tmux is used to automate running of php and .sh files to update a database.
 
Tmux 2.1 works just fine. Only a few configuration options have changed. There is no reason why this cannot be fixed in your software.
 
The software is nZEDb and the moderators in there IRC chat room tell me that tmux 2.1 is not compatible with it and recommended I downgrade to 1.8 or 2.0. Can't say why as I'm a novice. When I run tmux I get dead panes. Screen works.
 
If tmux 2.0 works, 2.1 should work too. There have been some configuration changes between 1.x and 2.x, but 2.1 is the same as 2.0.

Try and find out what exactly is the issue, we may be able to help with that. Downgrading isn't the correct solution, fixing the issue is.
 
Here is were it states not to use tmux 2.1
https://github.com/nZEDb/nZEDb/wiki/Operational-Modii
Look under tmux General/Notes:
Can use 2.0 and lower.

I'm trying to install tmux1.9 from the tarball but can't get to work
extracted the tarball to tmux 1.9 directory
installed libevent-2.0.22-stable
./configure && make
and got errors
Code:
./configure && make
rm: conf80983.dir/conf80983.file: Not a directory
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
checking for a BSD-compatible install... ./configure: mkdir: not found
install: target directory `/usr/local/custom/tmux-1.9/libevent-2.0.22-stable/conftest.dir' does not exist
usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 file2
       install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 ... fileN directory
       install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               directory ...
./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... ./configure: cat: not found
no
./configure: cat: not found
./configure: cat: not found
checking build system type... x86_64-unknown-freebsd9.3
checking host system type... x86_64-unknown-freebsd9.3
checking for gcc... gcc
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
./configure: cat: not found
checking whether the C compiler works... no
configure: error: in `/usr/local/custom/tmux-1.9/libevent-2.0.22-stable':
configure: error: C compiler cannot create executables
See `config.log' for more details
exit: cat: not found

Not sure how to proceed.
 
Use the Subversion history of the port to find the last version of 1.8, then check that out and hope the distfiles are still around and it still builds.
Code:
cd /usr/ports/sysutils/tmux
svn up -r 341527
 
Use the Subversion history of the port to find the last version of 1.8, then check that out and hope the distfiles are still around and it still builds.
Code:
usr/ports/sysutils/tmux]# svn up -r 341527
Skipped '.'
svn: E155007: None of the targets are working copies

Yes I have but I'm told by the people who maintain the software that there are other problems with 2.1 and it should be avoided.

Can anyone describe how to install tmux 1.8 from a tarball?
 
svn: E155007: None of the targets are working copies
svn co -r 341527 https://svn.freebsd.org/ports/head/sysutils/tmux /usr/ports/sysutils/tmux

But since you can use tmux 2.0 I would checkout revision 399264 instead. It'll still build. tmux 1.8 doesn't anymore.
 
NasKar, Subversion will only work on a repo checkout, not with a ports tree extracted from a tarball or portsnap(8).

And the port really is the way to go. All the details of building it have already been worked out. And when your software finally works with a modern version, it will be easy to deinstall the old one.
 
someone in another forum suggested this:

"I'd personally edit the port to change the version number, 'make makesum' and 'make install' it."
cd /usr/ports/sysutils/tmux
Then edit the version in the file "Makefile"
Run "make makesum" to create a new 'distinfo' file for you

Got this after editing the version to 1.9:
Code:
/usr/ports/sysutils/tmux # make makesum
===> License ISCL accepted by the user
===> tmux-1.9_1 depends on file: /usr/local/sbin/pkg - found
/bin/mkdir: No such file or directory
*** [do-fetch] Error code 1

Stop in /usr/ports/sysutils/tmux.
*** [makesum] Error code 1

Stop in /usr/ports/sysutils/tmux.
 
That procedure makes some assumptions which are probably not valid. Why don't you try what we posted here?
 
I've tried everything that was suggested. If you wouldn't mind explaining the steps you recommend again. My head is swimming with this stuff. Thanks for trying to help me.
 
Code:
rm -rf /usr/ports
svn checkout https://svn.freebsd.org/ports /usr/ports
cd /usr/ports/sysutils/tmux
svn up -r 399264
make deinstall install
 
I get this error after the 2nd step
Code:
svn checkout https://svn.freebsd.org/ports /usr/ports
svn: E170013: Unable to connect to a repository at URL 'https://svn.freebsd.org/ports'
svn: E000065: Error running context: No route to host
 
Back
Top