Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2020 21:44:54 +0200
From:      "louis.forums@xs4all.nl" <lsrbreda@xs4all.nl>
To:        <freebsd-questions@freebsd.org>
Subject:   How to build a package from local source keeping all the original used (gnu autotools) build options !??
Message-ID:  <000701d67598$0c8aa560$259ff020$@xs4all.nl>
In-Reply-To: <000001d67566$e2acd5a0$a80680e0$@xs4all.nl>
References:  <000001d67566$e2acd5a0$a80680e0$@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

 =EF=BF=BD

After downloading a project from GitHub and making some changes, I can =
build and install that project using the GNU autotools=20

cd /var/git/<project>

./autogen.sh

./configure =E2=80=93 option-A=3D/abc  =EF=BF=BD=E2=80=93 =
option-B=3D/def  =EF=BF=BD =EF=BF=BD =EF=BF=BDetc (*required* options)

make

make install

make dist

 =EF=BF=BD

However than I need to make a distribution package for that project=20

cp /var/git/<project>/<distfile> =EF=BF=BD cd /usr/ports/<distfiles>

cd /usr/ports/<category>/<project>

make makesum

make stage

make stage-qa

make package

That however does not work in the right way.=20

 =EF=BF=BD

The problem is that =E2=80=9CPort=E2=80=9D is building the sources =
*again* (in  =EF=BF=BDcd /usr/ports/<category>/work/<project>/=20

And more severe =E2=80=A6. It is building the package without and =
*required* options =E2=80=A6=E2=80=A6. (the same as defined for the =
original build!)

 =EF=BF=BD

So this leads to the *default package* and not the *intended package* =
having e.g. required path settings!

 =EF=BF=BD

 =EF=BF=BD

So my question: =E2=80=9Cis how to build an package having the same =
build settings as in the original autotools build=E2=80=9D

(using same generated makefile, config etc.)

 =EF=BF=BD

Perhaps !!?? the whole rebuild process by the port-tools is not required =
at all (just my feeling(!)=20

If port could!!?? only do all the packaging stuff for the already build =
files! =E2=98=B9 =F0=9F=98=8A

 =EF=BF=BD

No problem if port does the project make process again =
=E2=80=A6=E2=80=A6 as long as it would use exactly the same settings =
=F0=9F=98=8A

 =EF=BF=BD

Does anyone know how to archive this?

 =EF=BF=BD

Sincerely,

 =EF=BF=BD

Louis=20

 =EF=BF=BD

 =EF=BF=BD




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701d67598$0c8aa560$259ff020$>