Actions:
|
2016-02-04 10:58 AEST by Arthur Barrett - Support is needed for RHEL7 (fedora 19&20/21/22).
# rpm -U cvsnt-2.8.01.5876-1.i386.rpm
file /usr/bin from install of cvsnt-2.8.01.5876-1.i386 conflicts with file from package filesystem-
3.2-18.el7.x86_64
The same build process that used for Red Hat Enterprise Linux 5 & 6 works for most RPMs but fails
to install on Red Hat Enterprise Linux 7 for one which has files in a number of system locations.
In Red Hat Enterprise Linux 7, filesystem rpm doesn't let any other custom rpm to claim ownership of
important directories such as /, /opt, /var and many more.
Create custom rpms in such a way that those won't claim the ownership of these critical locations.
i.e. mention the direct file names/paths in %files section of the spec file as follows.
Raw
%files
%defattr (-, root, bin)
/var/log/test
/opt/test
/etc/rc.d/init.d/test
/etc/rc.d/init.d/testing
/etc/testing.cfg
/etc/new.cfg
/usr/test
See:
http://www.rpm.org/max-rpm-snapshot/s1-rpm-reloc-building-relocatable.html
Red Hat solution:
https://access.redhat.com/solutions/2026753?tour=6
We should make this bug dependant on bug 6400 (redhat: cvsnt conflicts with cvs).
Note: this is still a x32 build, not an x64 one. RHEL7 is only available as an X64 build, but it definitely
is still possible to install x32 applications... (and presumably to build them...)
https://access.redhat.com/solutions/509373
Note: the main tech specs page of march-hare.com already says we support RHEL7. |
|
2016-02-04 11:06 AEST by Arthur Barrett - It is proposed that the RHEL7 package still uses openssl098e compatibility package.
Maybe this should be a RHEL6 build instead? But the driving force for this particular bug is the RPM
changes needed due to the ownership of /usr/bin - and that is unique to RHEL7. |
|
2016-02-05 03:05 AEST by Glen Starrett - *** Bug 6980 has been marked as a duplicate of this bug. *** |
|
2016-12-02 14:07 AEST by Arthur Barrett - The RHEL7 package should use Oracle 11g client? |
|
2016-12-12 15:25 AEST by Arthur Barrett - Created an attachment (id=3084)
patch to cvs suite 2009r2 - attempt to make it relocatable
attempt to make it relocatable, by replaceing:
$RPM_BUILD_ROOT
with:
%{buildroot}
Checking in build;
/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.15.2.5; previous revision: 1.1.2.5.4.15.2.4
done
|
|
2017-07-11 14:29 AEST by Arthur Barrett - Note: this change has been incorporated since build 6197 (including 6240, 6259, 6264, 6275 and the current
6332).
The change will only apply when built using RHEL7 dev env, which is where I'm doing my testing (using the
VM rhelv7x64-fusion-8).
I should really change the name of the RPM though from rhel6 to rhel7, and probably incorporate the rhel6
'changes' to the 'build' for rhel7 too - but I guess I didn't want to pre-dispose my thinking that rhel6 solutions
are right for rhel7). The RHEL6 stuff is:
- manpages
- install 'cvs' as 'cvsproxy' and symlink to 'cvs' (which is like what we do on macOS, but done here for cases
where cvs is pre-installed and so an RPM which installs CVS is not allowed to be ran.
In theory though - if this 'buildroot' is the only change that is needed, we could fix the RHEL5 installer, do the
build on RHEL5, and it'll be more 'compatible' with RHEL7. |
|
2019-07-18 08:25 AEST by Arthur Barrett - *** Bug 7363 has been marked as a duplicate of this bug. *** |
|
2019-07-18 08:25 AEST by Arthur Barrett - See Glen's notes in duplicate Bug 7363
|
|
2019-07-18 08:27 AEST by Arthur Barrett - This bug is mostly about a permanent fix, being an rhel6 or rhel7 build of CVS Suite that uses the latest
OpenSSL etc.
The workaround to enable you to use the current rhel5 rpms is:
Here is a quick overview of how to install CVS Suite from a ‘root’ prompt on RHEL7 (note: I’m cutting and
pasting my notes from the last time I did this, which was build 6145, so substitute the latest release of CVS
Suite build number):
yum install glibc.i686
yum install libstdc++.i686
yum install openssl098e.i686
rpm -i mysqlclient10-3.23.58-4.RHEL4.1.i386.rpm
tar xf cvs-suite-2009-6145-rhel5-rpm.tar.gz
rpm --replacefiles -i cvsnt-2.8.01.6145-1.i386.rpm
rpm --replacefiles -i cvs-suite-triggers-2009-6145-1.i386.rpm
rpm -i cvsnt-database-mysql-2.8.01.6145-1.i386.rpm
rpm -i cvsnt-database-oracle-2.8.01.6145-1.i386.rpm
rpm -i cvsnt-protocol-sserver-2.8.01.6145-1.i386.rpm
|
|
2019-11-29 15:04 AEST by Arthur Barrett - For RHEL5 you can use the following procedure to install the base packages of CVS Suite - but the audit
trigger database (mysql) or secure protocols (sserver and gserver) are not compatible with RHEL8:
tar xzf ./cvs-suite-2009-7233-rhel5-rpm.tar.gz
These commands must be run as root:
yum install glibc.i686
yum install libstdc++.i686
yum install libxcrypt.i686
yum install zlib.i686
rpm --replacefiles -i cvsnt-2.8.01.7233-1.i386.rpm
rpm --replacefiles -i cvs-suite-triggers-2.8.01.7233-1.i386.rpm
|
|
2019-12-06 16:04 AEST by Arthur Barrett - updated install doco for rhel7 in ebook build 7272:
Checking in eBook.doc;
/scotty/eBook/eBook.doc,v <-- eBook.doc
new revision: 1.84; previous revision: 1.83
done
Checking in eBook.pdf;
/scotty/eBook/eBook.pdf,v <-- eBook.pdf
new revision: 1.64; previous revision: 1.63
done |
|
2020-02-14 13:00 AEST by Arthur Barrett - Created an attachment (id=3396)
patch to compile sync and sserer with openssl 1.0.2
/cvs/cvsnt/protocols/sserver.c,v <-- sserver.cpp
new revision: 1.16.2.44.4.2.2.11; previous revision: 1.16.2.44.4.2.2.10
done
Checking in sync.cpp;
/cvs/cvsnt/protocols/sync.cpp,v <-- sync.cpp
new revision: 1.8.8.7.2.7; previous revision: 1.8.8.7.2.6
done |
|
2020-02-14 14:02 AEST by Arthur Barrett - Created an attachment (id=3397)
testing changes to ./build, & changes to cvsnt.spec.in
Checking in build;
/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.15.2.7; previous revision: 1.1.2.5.4.15.2.6
done
Checking in cvsnt.spec.in;
/cvs/cvsnt/redhat/cvsnt.spec.in,v <-- cvsnt.spec.in
new revision: 1.5.2.29.6.27.2.8; previous revision: 1.5.2.29.6.27.2.7
done |
|
2020-02-14 14:12 AEST by Arthur Barrett - Created an attachment (id=3398)
cvsmanager/cvsproxy/licenselib 32 bit options
Checking in Makefile.linux;
/scotty/licenselib/Makefile.linux,v <-- Makefile.linux
new revision: 1.5.2.2; previous revision: 1.5.2.1
done
Checking in Makefile.linux;
/scotty/cvsproxy/Makefile.linux,v <-- Makefile.linux
new revision: 1.18; previous revision: 1.17
done
Checking in Makefile.linux;
/scotty/cvsmanager/Makefile.linux,v <-- Makefile.linux
new revision: 1.14; previous revision: 1.13
done
|
|
2020-02-14 14:42 AEST by Arthur Barrett - Created an attachment (id=3399)
cvsmanager/cvsproxy/licenselib 32 bit link options
Checking in Makefile.linux;
/scotty/cvsproxy/Makefile.linux,v <-- Makefile.linux
new revision: 1.19; previous revision: 1.18
done
Checking in Makefile.linux;
/scotty/cvsmanager/Makefile.linux,v <-- Makefile.linux
new revision: 1.15; previous revision: 1.14
done
Checking in Makefile.linux;
/scotty/licenselib/Makefile.linux,v <-- Makefile.linux
new revision: 1.5.2.3; previous revision: 1.5.2.2
done
|
|
2020-02-14 15:08 AEST by Arthur Barrett - Found the latest Oracle OCI / Instant Client SDK download here:
https://www.oracle.com/au/database/technologies/instant-client/linux-x86-64-
downloads.html
Should we use 12 or 11? I'm thinking probably 12.
|
|
2020-02-21 14:41 AEST by Arthur Barrett - Created an attachment (id=3402)
complete diff for linux build (rhel7)
The attached diff is the full one, and we can base the changes to the triggers
build script on this, generated with:
cvs diff -c -N -r CVSNT_2_8_01_7272 -r CVSNT_2_8_01_7343
This is just the latest commit:
Checking in build;
/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.15.2.9; previous revision: 1.1.2.5.4.15.2.8
done
RCS file: /cvs/cvsnt/redhat/rpm_sign.exp,v
done
Checking in rpm_sign.exp;
/cvs/cvsnt/redhat/rpm_sign.exp,v <-- rpm_sign.exp
new revision: 1.1.2.1; previous revision: 1.1
done |
|
2020-04-14 16:13 AEST by Arthur Barrett - Created an attachment (id=3417)
patch for --replacefiles bug see bug 7363
cvs commit: Examining .
Checking in build;
/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.15.2.10; previous revision: 1.1.2.5.4.15.2.9
done |
|
2020-04-14 20:34 AEST by Arthur Barrett - Created an attachment (id=3418)
remove the change to buildroot - not relavent
Checking in build;
/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.15.2.11; previous revision: 1.1.2.5.4.15.2.10
done
|
|
2020-04-14 21:56 AEST by Arthur Barrett - Created an attachment (id=3419)
fist patch to triggers
Checking in build;
/scotty/triggers/redhat/build,v <-- build
new revision: 1.6.4.18.2.14; previous revision: 1.6.4.18.2.13
done
|
|
2020-04-15 00:16 AEST by Arthur Barrett - Created an attachment (id=3420)
patch - compile fixes linux and win
? Release
Checking in CvsProxyUnix.cpp;
/scotty/cvsproxy/CvsProxyUnix.cpp,v <-- CvsProxyUnix.cpp
new revision: 1.22; previous revision: 1.21
done
Checking in windows-NT/win32.cpp;
/cvs/cvsnt/windows-NT/win32.c,v <-- win32.cpp
new revision: 1.72.2.150.6.44.2.50; previous revision: 1.72.2.150.6.44.2.49
done |
|
2020-04-15 11:26 AEST by Arthur Barrett - Created an attachment (id=3421)
triggers build script changes
cvs commit: Examining .
Checking in build;
/scotty/triggers/redhat/build,v <-- build
new revision: 1.6.4.18.2.15; previous revision: 1.6.4.18.2.14
done |
|
2020-04-15 15:39 AEST by Arthur Barrett - Created an attachment (id=3422)
get a sanity test back from the preloaded server process
bug7419: redhat: support needed for rhel7/rhel8 (x32 on x64) (fedora 19,28)
This patch is important:
- fixes some bad calls to select()
- cvsproxy now gets a sanity test back from the preloaded server process
- additional debugging in cvsproxy on Linux for number of read/writes
Checking in CvsProxyUnix.cpp;
/scotty/cvsproxy/CvsProxyUnix.cpp,v <-- CvsProxyUnix.cpp
new revision: 1.23; previous revision: 1.22
done
Checking in CvsProxyWin32.cpp;
/scotty/cvsproxy/CvsProxyWin32.cpp,v <-- CvsProxyWin32.cpp
new revision: 1.19; previous revision: 1.18
done
Checking in build.h;
/cvs/cvsnt/build.h,v <-- build.h
new revision: 1.1.2.173.4.320.2.296; previous revision: 1.1.2.173.4.320.2.295
done
Checking in src/server.cpp;
/cvs/cvsnt/src/server.c,v <-- server.cpp
new revision: 1.106.2.210.6.99.2.65; previous revision: 1.106.2.210.6.99.2.64
done
Checking in src/subr.cpp;
/cvs/cvsnt/src/subr.c,v <-- subr.cpp
new revision: 1.62.2.81.6.19.2.18; previous revision: 1.62.2.81.6.19.2.17
done
|
|
2020-04-15 21:22 AEST by Arthur Barrett - no longer need --replacefiles, resolved:
[root@test-cvsnt-rhel7-server tmp]# rpm -ql cvs-suite-triggers
/etc/cvsnt/Bugs.example
/etc/cvsnt/Make.example
/usr/lib/cvsnt
/usr/lib/cvsnt/triggers
/usr/lib/cvsnt/triggers/bug.la
/usr/lib/cvsnt/triggers/bug.so
/usr/lib/cvsnt/triggers/make.la
/usr/lib/cvsnt/triggers/make.so
[root@test-cvsnt-rhel7-server tmp]# rpm -ql cvsnt
/etc/cvsnt
/etc/cvsnt/License
/etc/cvsnt/PServer.example
/etc/cvsnt/Plugins.example
/etc/cvsnt/ca.pem
/etc/cvsnt/server.example
/etc/init.d/cvslockd
/etc/init.d/cvsmanager
/etc/pam.d/cvsnt
/usr/bin/cvs
/usr/bin/cvslockd
/usr/bin/cvsmanager
/usr/bin/cvsnt
/usr/lib/cvsnt/mdns/mini.la
/usr/lib/cvsnt/mdns/mini.so
/usr/lib/cvsnt/protocols/enum.la
/usr/lib/cvsnt/protocols/enum.so
/usr/lib/cvsnt/protocols/ext.la
/usr/lib/cvsnt/protocols/ext.so
/usr/lib/cvsnt/protocols/pserver.la
/usr/lib/cvsnt/protocols/pserver.so
/usr/lib/cvsnt/protocols/server.la
/usr/lib/cvsnt/protocols/server.so
/usr/lib/cvsnt/protocols/sspi.la
/usr/lib/cvsnt/protocols/sspi.so
/usr/lib/cvsnt/register-cvsnt
/usr/lib/cvsnt/triggers/audit.la
/usr/lib/cvsnt/triggers/audit.so
/usr/lib/cvsnt/triggers/checkout.la
/usr/lib/cvsnt/triggers/checkout.so
/usr/lib/cvsnt/triggers/email.la
/usr/lib/cvsnt/triggers/email.so
/usr/lib/cvsnt/triggers/info.la
/usr/lib/cvsnt/triggers/info.so
/usr/lib/cvsnt/xdiff/extdiff.la
/usr/lib/cvsnt/xdiff/extdiff.so
/usr/lib/libcvsapi-2.8.01.7347.so
/usr/lib/libcvsapi.la
/usr/lib/libcvsapi.so
/usr/lib/libcvstools-2.8.01.7347.so
/usr/lib/libcvstools.la
/usr/lib/libcvstools.so
/usr/lib/libmdnsclient-2.8.01.7347.so
/usr/lib/libmdnsclient.la
/usr/lib/libmdnsclient.so
/usr/share/doc/cvsnt-2.8.01.7347
/usr/share/doc/cvsnt-2.8.01.7347/FAQ
/usr/share/doc/cvsnt-2.8.01.7347/RCSFILES
/usr/share/doc/cvsnt-2.8.01.7347/README
/usr/share/man/man1/cvs.1.gz
/usr/share/man/man5/cvs.5.gz
/etc/init.d/cvsmanager stop
/etc/init.d/cvslockd stop
chkconfig --del cvslockd
chkconfig --del cvsmanager
rpm -e cvsnt cvs-suite-triggers
scp abarrett@acer64debian.march-hare.local:suite/cvs-suite-2009-7347-rhel7-rpm.tar.gz /tmp
tar xzf cvs-suite-2009-7347-rhel7-rpm.tar.gz
rpm -i cvsnt-2.8.01.7347-1.i686.rpm cvs-suite-triggers-2.8.01.7347-1.i686.rpm
chkconfig --add cvslockd
chkconfig --add cvsmanager
/etc/init.d/cvslockd start
/etc/init.d/cvsmanager start
|
|
2020-04-23 11:31 AEST by Arthur Barrett - Created an attachment (id=3430)
build 'errors' (which don't stop the build)
So I did a build on rhel7dev using:
( cd ~/ ; ~/build ; cd ~/triggers ; ./get ; ./build ; echo "****** make full ";
cd ~/ ; ~/build license.full ; cd ~/triggers ; ~/build license.full ) >
build-all-log2.txt; exit
But I didn't redirect the stderr, so I got 'just the errors' on my terminal.
Attached is the results.
Particularly of interest:
1.
./configure: line 4768: AX_CC_MAXOPT: command not found
2.
unix/HttpSocket.cpp: In member function 'bool CHttpSocket::_setUrl(const
char*)':
unix/HttpSocket.cpp:84:7: warning: deprecated conversion from string constant
to 'char*' [-Wwrite-strings]
port="80";
^
This warning more commonly occurs when the constant is a parameter:
sserver.cpp:425:81: warning: deprecated conversion from string constant to
'char*' [-Wwrite-strings]
if(sserver_printf("%s\n%s\n",current_server()->current_root->directory,username)<0)
^
I don't particularly care about those cases, but this one where it's used in an
assignment is not good.
It's actually done quite frequently:
entries.cpp:157:17: warning: deprecated conversion from string constant to
'char*' [-Wwrite-strings]
entfilename = CVSADM_ENTBAK;
^
entries.cpp:179:15: warning: deprecated conversion from string constant to
'char*' [-Wwrite-strings]
entexfilename= CVSADM_ENTEXTBAK;
^
and on and on...
|
|
2020-04-23 19:07 AEST by Arthur Barrett - the mysql connector is linked to libmysqlclient.so.18
rpm -i cvsnt-database-mysql-2.8.01.7349-1.i686.rpm
warning: cvsnt-database-mysql-2.8.01.7349-1.i686.rpm: Header V4 RSA/SHA1 Signature, key ID e999528e:
NOKEY
error: Failed dependencies:
libmysqlclient.so.18 is needed by cvsnt-database-mysql-2.8.01.7349-1.i686
libmysqlclient.so.18(libmysqlclient_18) is needed by cvsnt-database-mysql-2.8.01.7349-1.i686
That is OK since we only have mariadb installed and mariadb-libs provides libmysqlclient.so.18, but it's not
allowed for us to link to the mysql library.
[root@rhel7dev abarrett]# rpm -qa | grep maria
mariadb-libs-5.5.64-1.el7.i686
mariadb-devel-5.5.64-1.el7.i686
mariadb-libs-5.5.64-1.el7.x86_64
[root@rhel7dev abarrett]#
yum whatprovides libmysqlclient.so.18
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
1:mariadb-libs-5.5.35-3.el7.i686 : The shared libraries required for MariaDB/MySQL clients
Repo : rhel-7-server-rpms
Matched from:
Provides : libmysqlclient.so.18
However it doesn't give any compatibility with rhel8.
To use mariadb on rhel8 we would need a 'native' mariadb connector.
|
|
2020-04-23 19:20 AEST by Arthur Barrett - This does NOT build postgres...
even though the libraries are installed:
[root@rhel7dev abarrett]# rpm -qa | grep postgres
postgresql-libs-9.2.24-2.el7_7.i686
postgresql-9.2.24-2.el7_7.i686
postgresql-devel-9.2.24-2.el7_7.i686
hmmmm... for rh5 (and now rh7) we disable postgres in the build script:
sed "s:--disable-postgres:--disable-postgres --with-oracle=${ORACLE_HOME}:" <cvsnt.spec.tmp8
>cvsnt.spec.tmp9
If instead I replace: --with-postgres, I get.... an odd result.
It compiles:
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -
I/usr/include/mysql -I/u01/app/oracle/product/12.2.1/client/rdbms/public -
I/u01/app/oracle/product/12.2.1/client/rdbms/demo -I/usr/include -I/usr/kerberos/include -m32 -c -o
PostgresConnection.lo `test -f '../postgres/PostgresConnection.cpp' || echo
'./'`../postgres/PostgresConnection.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -I/usr/include/mysql -
I/u01/app/oracle/product/12.2.1/client/rdbms/public -I/u01/app/oracle/product/12.2.1/client/rdbms/demo -
I/usr/include -I/usr/kerberos/include -m32 -c ../postgres/PostgresConnection.cpp -fPIC -DPIC -o
.libs/PostgresConnection.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -
I/usr/include/mysql -I/u01/app/oracle/product/12.2.1/client/rdbms/public -
I/u01/app/oracle/product/12.2.1/client/rdbms/demo -I/usr/include -I/usr/kerberos/include -m32 -c -o
PostgresConnectionInformation.lo `test -f '../postgres/PostgresConnectionInformation.cpp' || echo
'./'`../postgres/PostgresConnectionInformation.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -I/usr/include/mysql -
I/u01/app/oracle/product/12.2.1/client/rdbms/public -I/u01/app/oracle/product/12.2.1/client/rdbms/demo -
I/usr/include -I/usr/kerberos/include -m32 -c ../postgres/PostgresConnectionInformation.cpp -fPIC -DPIC -o
.libs/PostgresConnectionInformation.o
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -
I/usr/include/mysql -I/u01/app/oracle/product/12.2.1/client/rdbms/public -
I/u01/app/oracle/product/12.2.1/client/rdbms/demo -I/usr/include -I/usr/kerberos/include -m32 -c -o
PostgresRecordset.lo `test -f '../postgres/PostgresRecordset.cpp' || echo
'./'`../postgres/PostgresRecordset.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../lib -I/usr/include/mysql -
I/u01/app/oracle/product/12.2.1/client/rdbms/public -I/u01/app/oracle/product/12.2.1/client/rdbms/demo -
I/usr/include -I/usr/kerberos/include -m32 -c ../postgres/PostgresRecordset.cpp -fPIC -DPIC -o
.libs/PostgresRecordset.o
/bin/sh ../../libtool --tag=CXX --mode=link g++ -I/usr/kerberos/include -m32 -module -avoid-version -
L//usr/lib/cvsnt/database -L/usr/kerberos/lib/ -L/u01/app/oracle/product/12.2.1/client/lib -o postgres.la -rpath
/usr/lib/cvsnt/database PostgresConnection.lo PostgresConnectionInformation.lo PostgresRecordset.lo -lpq -
L/usr/lib -lcrypt -lresolv
g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib/crti.o /usr/lib/gcc/x86_64-redhat-
linux/4.8.5/32/crtbeginS.o .libs/PostgresConnection.o .libs/PostgresConnectionInformation.o
.libs/PostgresRecordset.o -L//usr/lib/cvsnt/database -L/usr/kerberos/lib/ -
L/u01/app/oracle/product/12.2.1/client/lib -lpq -L/usr/lib -lcrypt -lresolv -L/usr/lib/gcc/x86_64-redhat-
linux/4.8.5/32 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib -L/lib/../lib -L/usr/lib/../lib -
L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lstdc++ -lm -lc -
lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.5/32/crtendS.o /usr/lib/gcc/x86_64-redhat-
linux/4.8.5/../../../../lib/crtn.o -m32 -Wl,-soname -Wl,postgres.so -o .libs/postgres.so
creating postgres.la
(cd .libs && rm -f postgres.la && ln -s ../postgres.la postgres.la)
But I end up with them unpackaged?
Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/redhat/BUILDROOT/cvsnt-2.8.01.7349-
1.i386
error: Installed (but unpackaged) file(s) found:
/usr/lib/cvsnt/database/postgres.la
/usr/lib/cvsnt/database/postgres.so
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/cvsnt/database/postgres.la
/usr/lib/cvsnt/database/postgres.so
Something wrong in the cvsnt.spec.in?
yes, it's missing postgres!
%files database-postgres
%{_prefix}/lib/cvsnt/database/postgres*
So I need to add that, but then modify the build script to delete those lines for the rhel5 and earlier builds?
|
|
2020-06-22 10:49 AEST by Arthur Barrett - The first build shipped to a customer is 2009-7348 (brand) so I'm marking this with 7350
As of 2009-7480 it can be build from W7 release_build script 'remotely'
The main thing to do now is to add documentation to the eBook on:
- upgrade from rhel5 to rhel7 package?
- upgrade (normal)
- install (normal)
Here are the instructions sent to the customer with 2009-7348 (upgrading from rhel5 package):
To install on the server, first copy cvs-suite-2009-7348-rhel7-rpm.tar.gz to /tmp then use these commands
as root:
cd /tmp
/etc/init.d/cvsmanager stop
/etc/init.d/cvslockd stop
chkconfig --del cvslockd
chkconfig --del cvsmanager
rpm -e cvsnt cvs-suite-triggers
tar xzf cvs-suite-2009-7348-rhel7-rpm.tar.gz
rpm -i cvsnt-2.8.01.7348-1.i686.rpm cvs-suite-triggers-2.8.01.7348-1.i686.rpm
chkconfig --add cvslockd
chkconfig --add cvsmanager
/etc/init.d/cvslockd start
/etc/init.d/cvsmanager start
|
|
2020-06-22 10:50 AEST by Arthur Barrett - Here is a longer email to customer:
Along the way we’ve been making lots of other changes. I particularly want to note to you that the installer
you used on the server was brand new. Previously for RHEL7 installs customers had to use a RHEL5 installer,
which made performing the install a little complex. Richard did all the hard work there, but the ‘good news’ is
that we now have a native RHEL7 build and the install is now much simpler. In future if you are installing
upgrades on the server, please be sure to use the RHEL7 package NOT THE RHEL5 package. The rhel7
installer includes compatibility with Oracle 12c instant client (bug 7412). We do not currently support
MariaDB (bug 6707). The commands to do a server upgrade in future would be something like:
cd /tmp
tar xzf cvs-suite-2009-xxxx-rhel7-rpm.tar.gz
/etc/init.d/cvsmanager stop
/etc/init.d/cvslockd stop
rpm -U cvsnt-2.8.01.xxxx-1.i686.rpm cvs-suite-triggers-2.8.01.xxxx-1.i686.rpm
/etc/init.d/cvslockd start
/etc/init.d/cvsmanager start
Note: we are aware of an issue (bug 7427) with 2009-7348 - if you reboot, the services will not start up
properly. After reboot you will need to restart each service:
/etc/init.d/cvsmanager stop
/etc/init.d/cvslockd restart
/etc/init.d/cvsmanager start
We expect bug 7427 to be resolved in the next release, which you will be notified about if you are on the
subscription list.
Now that the server is working, you may want to consider some additional installation/configuration:
- auditing (e.g.: to Oracle or ODBC)
- build integration or automatic checkouts
- email integration
- etc.
|
|
2021-04-14 14:39 AEST by Arthur Barrett - We need to update eBook to explain the dependencies.
For SSERVER obviously openssl-libs is needed - but there is no 'special' version, just the stock standard rhel7
openssl 1.01 or 1.02:
[root@test-cvsnt-rhel7-server tmp]# rpm -i cvsnt-protocol-sserver-2.8.01.7706-1.i686.rpm
error: Failed dependencies:
libcrypto.so.10 is needed by cvsnt-protocol-sserver-2.8.01.7706-1.i686
libcrypto.so.10(OPENSSL_1.0.2) is needed by cvsnt-protocol-sserver-2.8.01.7706-1.i686
libcrypto.so.10(libcrypto.so.10) is needed by cvsnt-protocol-sserver-2.8.01.7706-1.i686
libssl.so.10 is needed by cvsnt-protocol-sserver-2.8.01.7706-1.i686
libssl.so.10(libssl.so.10) is needed by cvsnt-protocol-sserver-2.8.01.7706-1.i686
[root@test-cvsnt-rhel7-server tmp]# tail -100 /var/log/rhsm/rhsm.log^C
[root@test-cvsnt-rhel7-server tmp]# history | grep whatprovides
415 history | grep whatprovides
[root@test-cvsnt-rhel7-server tmp]# yum whatprovides libcrypto.so.10
Loaded plugins: product-id, search-disabled-repos, subscription-manager
1:openssl-libs-1.0.1e-34.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-34.el7_0.3.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-34.el7_0.4.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-34.el7_0.6.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-34.el7_0.7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7_1.4.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7_1.5.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7_1.6.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7_1.8.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-42.el7_1.9.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-51.el7_2.1.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-51.el7_2.2.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-51.el7_2.4.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-51.el7_2.5.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-51.el7_2.7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-60.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.1e-60.el7_3.1.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-8.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-12.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-16.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-16.el7_6.1.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-19.el7.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
1:openssl-libs-1.0.2k-21.el7_9.i686 : A general purpose cryptography library with TLS implementation
Repo : rhel-7-server-rpms
Matched from:
Provides : libcrypto.so.10
[root@test-cvsnt-rhel7-server tmp]# yum install openssl-libs.i686
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package openssl-libs.i686 1:1.0.2k-21.el7_9 will be installed
--> Processing Dependency: libcom_err.so.2 for package: 1:openssl-libs-1.0.2k-21.el7_9.i686
--> Processing Dependency: libgssapi_krb5.so.2 for package: 1:openssl-libs-1.0.2k-21.el7_9.i686
--> Processing Dependency: libk5crypto.so.3 for package: 1:openssl-libs-1.0.2k-21.el7_9.i686
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: 1:openssl-libs-1.0.2k-
21.el7_9.i686
--> Processing Dependency: libkrb5.so.3 for package: 1:openssl-libs-1.0.2k-21.el7_9.i686
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: 1:openssl-libs-1.0.2k-21.el7_9.i686
--> Running transaction check
---> Package krb5-libs.i686 0:1.15.1-50.el7 will be installed
--> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.15.1-50.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.15.1-50.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.0) for package: krb5-libs-1.15.1-50.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.5) for package: krb5-libs-1.15.1-50.el7.i686
--> Processing Dependency: libselinux.so.1 for package: krb5-libs-1.15.1-50.el7.i686
--> Processing Dependency: libverto.so.1 for package: krb5-libs-1.15.1-50.el7.i686
---> Package libcom_err.i686 0:1.42.9-19.el7 will be installed
--> Running transaction check
---> Package keyutils-libs.i686 0:1.5.8-3.el7 will be installed
---> Package libselinux.i686 0:2.5-15.el7 will be installed
--> Processing Dependency: libsepol(x86-32) >= 2.5-10 for package: libselinux-2.5-15.el7.i686
--> Processing Dependency: libpcre.so.1 for package: libselinux-2.5-15.el7.i686
--> Processing Dependency: libsepol.so.1 for package: libselinux-2.5-15.el7.i686
--> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0) for package: libselinux-2.5-15.el7.i686
---> Package libverto.i686 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package libsepol.i686 0:2.5-10.el7 will be installed
---> Package pcre.i686 0:8.32-17.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
================================================================================
=================================
Package Arch Version Repository
Size
================================================================================
================================================================================
=================================
Installing:
openssl-libs i686 1:1.0.2k-21.el7_9 rhel-7-server-
rpms 997 k
Installing for dependencies:
keyutils-libs i686 1.5.8-3.el7 rhel-7-server-
rpms 25 k
krb5-libs i686 1.15.1-50.el7 rhel-7-server-
rpms 811 k
libcom_err i686 1.42.9-19.el7 rhel-7-server-
rpms 42 k
libselinux i686 2.5-15.el7 rhel-7-server-
rpms 166 k
libsepol i686 2.5-10.el7 rhel-7-server-
rpms 294 k
libverto i686 0.2.5-4.el7 rhel-7-server-
rpms 16 k
pcre i686 8.32-17.el7 rhel-7-server-
rpms 420 k
Transaction Summary
================================================================================
================================================================================
=================================
Install 1 Package (+7 Dependent packages)
Total download size: 2.7 M
Installed size: 6.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/8): keyutils-libs-1.5.8-3.el7.i686.rpm
| 25 kB 00:00:00
(2/8): krb5-libs-1.15.1-50.el7.i686.rpm
| 811 kB 00:00:00
(3/8): libcom_err-1.42.9-19.el7.i686.rpm
| 42 kB 00:00:00
(4/8): libselinux-2.5-15.el7.i686.rpm
| 166 kB 00:00:00
(5/8): libsepol-2.5-10.el7.i686.rpm
| 294 kB 00:00:00
(6/8): libverto-0.2.5-4.el7.i686.rpm
| 16 kB 00:00:00
(7/8): openssl-libs-1.0.2k-21.el7_9.i686.rpm
| 997 kB 00:00:00
(8/8): pcre-8.32-17.el7.i686.rpm
| 420 kB 00:00:00
-------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
Total 1.5 MB/s |
2.7 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libcom_err-1.42.9-19.el7.i686
1/8
Installing : libverto-0.2.5-4.el7.i686
2/8
Installing : libsepol-2.5-10.el7.i686
3/8
Installing : keyutils-libs-1.5.8-3.el7.i686
4/8
Installing : pcre-8.32-17.el7.i686
5/8
Installing : libselinux-2.5-15.el7.i686
6/8
Installing : 1:openssl-libs-1.0.2k-21.el7_9.i686
7/8
Installing : krb5-libs-1.15.1-50.el7.i686
8/8
Verifying : krb5-libs-1.15.1-50.el7.i686
1/8
Verifying : pcre-8.32-17.el7.i686
2/8
Verifying : libselinux-2.5-15.el7.i686
3/8
Verifying : keyutils-libs-1.5.8-3.el7.i686
4/8
Verifying : libcom_err-1.42.9-19.el7.i686
5/8
Verifying : libsepol-2.5-10.el7.i686
6/8
Verifying : 1:openssl-libs-1.0.2k-21.el7_9.i686
7/8
Verifying : libverto-0.2.5-4.el7.i686
8/8
Installed:
openssl-libs.i686 1:1.0.2k-21.el7_9
Dependency Installed:
keyutils-libs.i686 0:1.5.8-3.el7 krb5-libs.i686 0:1.15.1-50.el7 libcom_err.i686 0:1.42.9-19.el7
libselinux.i686 0:2.5-15.el7 libsepol.i686 0:2.5-10.el7 libverto.i686 0:0.2.5-4.el7
pcre.i686 0:8.32-17.el7
Complete!
[root@test-cvsnt-rhel7-server tmp]# rpm -i cvsnt-protocol-sserver-2.8.01.7706-1.i686.rpm |
|
2021-04-14 14:41 AEST by Arthur Barrett - ditto dependencies for MySQL / mariadb - again just the stock library is needed here:
[root@test-cvsnt-rhel7-server tmp]# rpm -i cvsnt-database-mysql-2.8.01.7706-1.i686.rpm
error: Failed dependencies:
libmysqlclient.so.18 is needed by cvsnt-database-mysql-2.8.01.7706-1.i686
libmysqlclient.so.18(libmysqlclient_18) is needed by cvsnt-database-mysql-2.8.01.7706-1.i686
[root@test-cvsnt-rhel7-server tmp]# yum install mariadb-libs.i686
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.i686 1:5.5.68-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
================================================================================
=================================
Package Arch Version Repository
Size
================================================================================
================================================================================
=================================
Installing:
mariadb-libs i686 1:5.5.68-1.el7 rhel-7-server-
rpms 760 k
Transaction Summary
================================================================================
================================================================================
=================================
Install 1 Package
Total download size: 760 k
Installed size: 4.3 M
Is this ok [y/d/N]: y
Downloading packages:
mariadb-libs-5.5.68-1.el7.i686.rpm
| 760 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : 1:mariadb-libs-5.5.68-1.el7.i686
1/1
Verifying : 1:mariadb-libs-5.5.68-1.el7.i686
1/1
Installed:
mariadb-libs.i686 1:5.5.68-1.el7
Complete!
[root@test-cvsnt-rhel7-server tmp]# rpm -i cvsnt-database-mysql-2.8.01.7706-1.i686.rpm
[root@test-cvsnt-rhel7-server tmp]#
|
|
2022-11-21 12:23 AEST by Arthur Barrett - latest fixes for rhel8
Checking in build;
/usr/local/cvs/cvsnt/redhat/build,v <-- build
new revision: 1.1.2.5.4.21; previous revision: 1.1.2.5.4.20
done
Checking in rpm_sign.exp;
/usr/local/cvs/cvsnt/redhat/rpm_sign.exp,v <-- rpm_sign.exp
new revision: 1.1.4.2; previous revision: 1.1.4.1
done
Checking in rpm_sign_v8.exp;
/usr/local/cvs/cvsnt/redhat/rpm_sign_v8.exp,v <-- rpm_sign_v8.exp
new revision: 1.1.4.1; previous revision: 1.1
done
|
|
2022-11-21 12:25 AEST by Arthur Barrett - New ~/.rpmmacros for rhel8 is:
%_topdir /usr/src/redhat/
%_source_filedigest_algorithm 8
%_binary_filedigest_algorithm 8
%_signature gpg
%_gpg_name CVS Professional Support
%__gpg_sign_cmd %{__gpg} \
gpg --force-v3-sigs --batch --pinentry-mode loopback \
--no-verbose --no-armor \
--passphrase-file /home/abarrett/passphrase.txt \
--no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} \
--digest-algo sha256 %{__plaintext_filename}
See this article for an explanation of why:
https://unix.stackexchange.com/questions/328601/rpmsign-with-cli-password-prompt
And this is about rhel8 sha256 requirement:
https://www.starlab.io/blog/adding-sha256-digests-to-rpms
after 'yum update':
rpmsign --version
RPM version 4.14.3
gpg --version
gpg (GnuPG) 2.2.20
libgcrypt 1.8.5
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/abarrett/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
And here is the signed result:
rpm -v --checksig rpm/cvsnt-2.8.01.8319-1.i686.rpm
rpm/cvsnt-2.8.01.8319-1.i686.rpm:
Header V4 RSA/SHA256 Signature, key ID e999528e: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
Payload SHA256 digest: OK
V4 RSA/SHA256 Signature, key ID e999528e: OK
MD5 digest: OK
|