Building OTRS from source - auto_build.sh

Moderator: crythias

Locked
theprofoundgeek
Znuny newbie
Posts: 4
Joined: 02 Oct 2014, 12:44
Znuny Version: OTRS-3.3
Real Name: TheProfoundGeek

Building OTRS from source - auto_build.sh

Post by theprofoundgeek »

I have checked out OTRS from github on a fresh CentOS 6.4 box. Path where the souce is /home/dev/otrs

but upon executing

# cd /home/dev/otrs/scripts
# ./auto_build.sh ../ 3.1.0.beta1 01


"Building SuSE 11.0 rpm...
error: line 16: Unknown tag: Copyright: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007"


I guess that is because Copyright tag is deprecated by rpmbuild, so I updated Copyright tag with License tag in all spec files.

But still, the rpmbuild exits with the following errors

error: Installed (but unpackaged) file(s) found:
/opt/otrs/.fetchmailrc
/opt/otrs/.fetchmailrc.dist
/opt/otrs/.mailfilter
/opt/otrs/.mailfilter.dist
/opt/otrs/.procmailrc

Am I missing anything? Are there any prerequisites in the environment to build OTRS from source?

Thanks! - TPG
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Building OTRS from source - auto_build.sh

Post by crythias »

why are you compiling? Did you have instructions to do that?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
theprofoundgeek
Znuny newbie
Posts: 4
Joined: 02 Oct 2014, 12:44
Znuny Version: OTRS-3.3
Real Name: TheProfoundGeek

Re: Building OTRS from source - auto_build.sh

Post by theprofoundgeek »

crythias wrote:why are you compiling? Did you have instructions to do that?
Hi Crythias,

I have made a few customizations into the login page, which are specific to our use case. Hence it needs recompilation so that I can distribute the package into our different office branches.

Please guide. I have failed to find any documentation on compiling OTRS.

Thanks! - TPG
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Building OTRS from source - auto_build.sh

Post by jojo »

OTRS is not compiled. For additional features you should build OTRS packages (opm) and not a new rpm. Please check the developer manual
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
theprofoundgeek
Znuny newbie
Posts: 4
Joined: 02 Oct 2014, 12:44
Znuny Version: OTRS-3.3
Real Name: TheProfoundGeek

Re: Building OTRS from source - auto_build.sh

Post by theprofoundgeek »

jojo wrote:OTRS is not compiled. For additional features you should build OTRS packages (opm) and not a new rpm. Please check the developer manual

Hi Jojo,

Thanks, I understand.

But the spec files supplied in the source code should work, right? Either they look outdated, or maybe developers haven't shared the correct spec files in the trunk.

Please guide how rpm could be build from the OTRS source code. I hope rpm builds are not part of any commercial offerings.

Thanks! -TPG
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Building OTRS from source - auto_build.sh

Post by jojo »

use the offical rpms offered for download
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
theprofoundgeek
Znuny newbie
Posts: 4
Joined: 02 Oct 2014, 12:44
Znuny Version: OTRS-3.3
Real Name: TheProfoundGeek

Re: Building OTRS from source - auto_build.sh

Post by theprofoundgeek »

jojo wrote:use the offical rpms offered for download
Hi Jojo,

That is always an alternative.

But it does not address my problem. Creating RPMs should be an easy task like other projects.

Anyway, but thanks for a great open source project!

Still expecting guidance if anybody is willing.

Thanks! - TPG
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Building OTRS from source - auto_build.sh

Post by jojo »

as I said, for the purpose you want there is no need to build rpms.
also why are you using a very old and outdated version to build rpms? Actual version is 3.3.9 and not 3.1.beta1
it also seems that you try to pack an productive version, thats why rpmbuild is complaining
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked