[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [MoM] ampl-netlib-solvers



Hi Andrei,

On Fri, Sep 11, 2020 at 09:48:33PM +0200, Andrei Rozanski wrote:
> I have pushed ampl-netlib-solvers -
> https://salsa.debian.org/med-team/ampl-netlib-solvers along with makefile.u
> cflags patch.

Nice you started this effort.
 
> Would it be possible to check that and guide me on how to proceed?

I pushed some commits with hopefully clear enough commit messages.

For the get-orig-source script I basically copied from

   https://salsa.debian.org/med-team/phipack/-/blob/master/debian/get-orig-source

I think its better to have a full date in form YYYYMMDD as "version".
The script itself is helpful if others want to reproduce how the
orig.tar.xz tarball was created.

I also silenced uscan by using the template for a fake watch file.

The tarball was imported via

   gbp import-orig --pristine-tar ../tarballs/ampl-netlib-solvers_0~20190702.orig.tar.xz

(in this case after a `git branch upstream` since gbp required this
branch - please see Debian Med policy [1])

I'd recommend you check my commits and if something remains unclear feel
free to ask here.

I'd recommend now that you have setup pbuilder (or sbuild at your
preference) as it is described in the Debian Med policy as well
and confirm that you can do

     gbp buildpackage

to build the package.  You will see that the build ends in 

   dh_auto_build
        make -j4
make[1]: Entering directory '/build/ampl-netlib-solvers-0~20190702'
cd ${OBJDIR=sys.`uname -m`.`uname -s`}; make
make[2]: Entering directory '/build/ampl-netlib-solvers-0~20190702/sys.x86_64.Linux'
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
cc -c CFLAGS = -O3 -pipe -DNDEBUG -DASL_BUILD  -fPIC -DPIC -O -DASL_NO_FPINITMT fpinit.c
cc: error: CFLAGS: No such file or directory
cc: error: =: No such file or directory
make[2]: *** [makefile:234: arith.h] Error 1

If you reach that point and have no idea how to fix it - we can continue.

Thanks a lot for your work

       Andreas.

[1] https://med-team.pages.debian.net/policy/#to-create-a-new-local-git-repository

-- 
http://fam-tille.de


Reply to: