Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail build rpm on Centos 7 #257

Open
DmitriiRusskikh opened this issue Mar 4, 2022 · 5 comments
Open

Fail build rpm on Centos 7 #257

DmitriiRusskikh opened this issue Mar 4, 2022 · 5 comments
Labels
confirmed-bug Issues with confirmed bugs

Comments

@DmitriiRusskikh
Copy link

Build rpm on Centos 7 is failed.
Different version of utility rename. In Centos 7 need use prename.
Using prename in Ubuntu 14.04 works fain.

diff --git a/rpm/common.spec b/rpm/common.spec
index d46632e..78ef9ef 100644
--- a/rpm/common.spec
+++ b/rpm/common.spec
@@ -74,7 +74,7 @@ mkdir -p "$DS_SUPERVISOR_CONF"
 cp %{_builddir}/../../../common/documentserver/supervisor/*.conf "$DS_SUPERVISOR_CONF"
 
 # rename extention for supervisor config files
-rename 's/.conf$/.ini/' "$DS_SUPERVISOR_CONF"*
+prename 's/.conf$/.ini/' "$DS_SUPERVISOR_CONF"*
 
 #install nginx config
 DS_NGINX_CONF=$CONF_DIR/nginx/
@ShockwaveNN
Copy link
Contributor

Hi, our dev team told me that we've never tried to build it on Centos
We build rpm packages on Ubuntu 14.04

Could you provide some more details on how to raise this error on Centos? I (personally) have never packaged a rpm file at all

@DmitriiRusskikh
Copy link
Author

Hi.

Download https://github.com/ONLYOFFICE/build_tools.git.
Install a few required packages.
cd build_tools
Configuration file

no-apps="0"
module="core desktop builder server"
sdkjs-plugin-server="default"
develop="0"
db-port="3306"
platform="native"
qt-dir="/home/user/Qt5.9.9/5.9.9"
branch="master"
db-pass="onlyoffice"
clean="1"
update="1"
beta="0"
db-user="root"
sdkjs-plugin="default"
sql-type="mysql"
git-protocol="https"

Create a document server according to the instructions (make.py).
Go to the up folder cd ...
Download https://github.com/ONLYOFFICE/document-server-package.git.
Go to the document-server folder.
Enter command make rpm

+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: onlyoffice-documentserver-0.0.0-0.x86_64
error: File not found by glob: /home/user/ONLYOFFICE/document-server-package/rpm/builddir/BUILDROOT/onlyoffice-documentserver-0.0.0-0.x86_64/etc/supervisord.d/*


RPM build errors:
    File not found by glob: /home/user/ONLYOFFICE/document-server-package/rpm/builddir/BUILDROOT/onlyoffice-documentserver-0.0.0-0.x86_64/etc/supervisord.d/*
make: *** [/home/user/ONLYOFFICE/document-server-package/rpm/builddir/RPMS/x86_64/onlyoffice-documentserver-0.0.0-0.x86_64.rpm] Error 1

@ShockwaveNN
Copy link
Contributor

Yep I can confirm I was able to reproduce it with this dockerfile:

FROM centos:7

RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
RUN yum -y update && \
    yum -y install git \
                   make \
                   m4 \
                   nodejs \
                   npm \
                   rpm-build \
                   symlinks
RUN npm install -g pkg
RUN git clone --depth=1 https://github.com/ONLYOFFICE/document-server-package.git
WORKDIR /document-server-package

And with

docker build . --tag rpm_build
docker run -it -v ~/sources/build_tools:/build_tools rpm_build make rpm

I'll report a bug to our dev team

@ShockwaveNN
Copy link
Contributor

I've created issue 55912 in our private issue tracker

Thanks

@ShockwaveNN ShockwaveNN added the confirmed-bug Issues with confirmed bugs label Mar 5, 2022
@yiwen9488
Copy link

Yep I can confirm I was able to reproduce it with this dockerfile:

FROM centos:7

RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
RUN yum -y update && \
    yum -y install git \
                   make \
                   m4 \
                   nodejs \
                   npm \
                   rpm-build \
                   symlinks
RUN npm install -g pkg
RUN git clone --depth=1 https://github.com/ONLYOFFICE/document-server-package.git
WORKDIR /document-server-package

And with

docker build . --tag rpm_build
docker run -it -v ~/sources/build_tools:/build_tools rpm_build make rpm

I'll report a bug to our dev team

How to package the compiled file into an exe installation package?

/bin/sh: 1: cygpath: not found
cd exe && iscc -Qp -DVERSION=0.0.0.0 -DEDITION=community -DBRANDING_DIR='' common.iss
/bin/sh: 1: iscc: not found
Makefile:502: recipe for target 'exe/ONLYOFFICE-DocumentServer-0.0.0.0-x64.exe' failed
make: *** [exe/ONLYOFFICE-DocumentServer-0.0.0.0-x64.exe] Error 127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants