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

Re: Committed some fixes to libf2c2



Hi Barak,

my current pressure to add another upload to libf2c2 has vanished since
I found a clue to build clapack with the current version (a copy of
f2c.h just needed to be removed from there).

I think your clone would fit my needs since the only different filename
(i_ceiling.c in clapack is i_dceiling.c in your clone) seems to contain
the needed functions.

IMHO it would make sense to try to send out the message to other places
where code copies of f2c are hanging around and ask people to contribute
to this one in case changes are needed.  It would also make sense to
point other distributions to this.  Once this is settled I'd volunteer
to work on a final Debian package (if you need this help) and move it
to Debian Science.

BTW, for completeness I attached the get-orig-source file which I wrote
for f2c (not libf2c2) before I noticed that this would be the wrong
place.  Its basically downloading the zip but calculating the "version
number" automatically.  IMHO its not relevant any more if we want to use
Github and thus it makes no sense to commit it to the repository.  I
just send it for completeness and how I would document how the upstream
source was created.

Kind regards

      Andreas.

On Thu, May 26, 2016 at 03:37:10PM +0100, Barak A. Pearlmutter wrote:
> Sure, and feel free to forward earlier correspondence to
> debian-science-list.
> Or maybe this discusion should be in a wishlist bug on f2c?
> 
> My clone of that github repo has some minor mods,
> 
> $ git diff upstream/master --stat
>  .gitignore             |   34 +-
>  ChangeLog              | 3487
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  Makefile.am            |    4 +-
>  autogen.sh             |    6 +-
>  config_aux/config.h.in |  186 ---------
>  configure.ac           |   14 +-
>  doc/Makefile.am        |    1 +
>  doc/f2c.1              |  613 ++++++++++++++++++----------
>  doc/f2c.1t             |  391 ------------------
>  lib/Makefile.am        |    3 +
>  src/sysdep.c           |    4 -
>  src/sysdep.h           |    4 +
>  12 files changed, 3920 insertions(+), 827 deletions(-)

-- 
http://fam-tille.de
#!/bin/sh -e

# Its obviously not reliable to do the versioning based on the date given in file
#   http://www.netlib.org/f2c/src/version.c
#
# This script downloads the ZIP archive and defines the Version as the time stamp
# of the youngest file inside the archive

COMPRESS=xz

NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
OVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`

#VERSION=`wget --quiet -O- http://www.netlib.org/f2c/src/version.c | egrep F2C_version | sed 's/^[^"]*"//' | sed 's/".*$//'`
#echo $VERSION

DOWNLOADFILES="changes
               f2c.1
               f2c.1t
               f2c.h
               f2c.ps
               f2c.pdf
               fc
               libf2c.zip
               README
              "

mkdir -p ../tarballs
cd ../tarballs

rm -rf ${NAME}
mkdir ${NAME}
cd ${NAME}

for file in $DOWNLOADFILES ; do
  wget --quiet -N http://www.netlib.org/f2c/${file}
done
mkdir src
cd src
unzip -q ../libf2c.zip
VERSION=`ls -lArt --time-style=+"%Y%m%d"  | tail -n 1 | cut -f7 -d" "`

if [ "$OVERSION" = "$VERSION" ] ; then
  echo "No new version of f2c available."
  exit 0
fi
cd ..

rm libf2c.zip

cd ..
TARDIR=${NAME}-${VERSION}
mv ${NAME} ${TARDIR}
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
rm -rf ${TARDIR}

Reply to: