Your message dated Mon, 04 Feb 2019 01:00:18 +0000
with message-id <e1gqscu-000chf...@fasolo.debian.org>
and subject line Bug#582575: fixed in gocr 0.52-1
has caused the Debian Bug report #582575,
regarding Introduce gocr-dev package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
582575: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582575
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gocr
Version: 0.48

Dear GOCR package maintainers!

I am currently working on creating a Debian package for opensource
project OSRA - chemical formular optical recognition tool [1]. In order
to compile this project we need libPgm2asc.a library plus all relevant
headers as a separate package (e.g. gocr-dev). Packaging libPgm2asc.so
as yet another package (gocr-lib) may also be considered, but it is not
required by ORSA package. If OSRA will be one day put into Debian
repository, there might be need for gocr-lib as well (if Debian policy
is strictly to avoid static linking unless absolutely necessary).

I attach the patch I have generated in my development Debian based on
gocr-0.48 package. What I have added:

- Triggering library compilation during the build cycle
- Including all relevant headers into the -dev package

I will be happy if the patch (or the general idea) is accepted.

Thank you in advance!

[1] http://cactus.nci.nih.gov/osra/

-- 
With best regards,
Dmitry
diff -du -ruN gocr-0.48.orig/debian/control gocr-0.48/debian/control
--- gocr-0.48.orig/debian/control       2010-05-19 08:00:03.000000000 -0500
+++ gocr-0.48/debian/control    2010-05-19 03:57:53.000000000 -0500
@@ -33,3 +33,15 @@
  It can read pnm, pbm, pgm, ppm, some pcx and tga image files.
  .
  It is a tlc/tk GUI to gocr (a command line program).
+
+Package: gocr-dev
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libc6-dev
+Description: gocr development libraries
+ gocr is a multi-platform OCR (Optical Character Recognition) program.
+ .
+ It can read pnm, pbm, pgm, ppm, some pcx and tga image files.
+ .
+ This package contains shared libraies and headers for those who want to 
develop
+ software based on gocr core.
+
diff -du -ruN gocr-0.48.orig/debian/rules gocr-0.48/debian/rules
--- gocr-0.48.orig/debian/rules 2010-05-19 08:00:03.000000000 -0500
+++ gocr-0.48/debian/rules      2010-05-21 04:22:37.000000000 -0500
@@ -9,9 +9,22 @@
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 
+DEV_INSTALL    := debian/gocr-dev.install
+
+override_dh_auto_build:
+       dh_auto_build
+       dh_auto_build -- libs
 
 override_dh_install:
+# Generate the list of dependant header files to be included into -dev package:
+       echo '# This file is autogenerated form 
debian/rules.\nsrc/libPgm2asc.a\tusr/lib' > $(DEV_INSTALL)
+       make -C src libs-depends | grep -io --perl-regexp ' [\w\.\/]+\.h' | 
sort -u | sed -e 's:^ :src/:' | tr '\n' ' ' >> $(DEV_INSTALL)
+       echo '\tusr/include/gocr' >> $(DEV_INSTALL)
+
+# Rename the executable:
        mv $(CURDIR)/debian/tmp/bin/gocr.tcl $(CURDIR)/debian/tmp/bin/gocr-tk
+
+# Continue with normal operation:
        dh_install
 
 %:
--- gocr-0.48.orig/src/Makefile.in      2009-04-09 04:06:53.000000000 -0500
+++ gocr-0.48/src/Makefile.in   2010-05-21 06:19:02.000000000 -0500
@@ -64,7 +64,7 @@
 
 .SUFFIXES: .s .o .c .h
 # do not look for files if help (etc) is given
-.PHONY : doc clean install libs default
+.PHONY : doc clean install libs default libs-depends
 
 .c.o: gocr.h pgm2asc.h ../include/config.h
        $(CC) $(CFLAGS) -c -o $*.o $<
@@ -89,13 +89,16 @@
 
 lib$(PGMASCLIB).@PACKAGE_VERSION@.so: $(LIBOBJS)
        $(CC) -fPIC -shared -Wl,-h$@ -o $@ $(LIBOBJS)
-       -ln -s $@ lib$(PGMASCLIB).so
+       -ln -sf $@ lib$(PGMASCLIB).so
 
 lib$(PGMASCLIB).a: $(LIBOBJS)
        #       -rm -f $@
        $(AR) cru $@ $(LIBOBJS)
        $(RANLIB) $@
 
+libs-depends:
+       $(CC) $(CFLAGS) -MM $(patsubst %.o,%.c,$(LIBOBJS))
+
 $(LIBOBJS): Makefile
 
 # PHONY = don't look at file clean, -rm = start rm and ignore errors
@@ -124,7 +127,7 @@
        #for X in $(INCLUDEFILES); do rm -f $(DESTDIR)$(includedir)/$$X; done
 
 clean:
-       -rm -f *.o *~
+       -rm -f *.o *~ *.so *.a
 
 proper: clean
        -rm -f gocr libPgm2asc.*

--- End Message ---
--- Begin Message ---
Source: gocr
Source-Version: 0.52-1

We believe that the bug you reported is fixed in the latest version of
gocr, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 582...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gürkan Myczko <gur...@phys.ethz.ch> (supplier of updated gocr package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 24 Jan 2019 13:20:02 +0100
Source: gocr
Binary: gocr gocr-dbgsym gocr-dev gocr-tk
Architecture: source amd64 all
Version: 0.52-1
Distribution: unstable
Urgency: medium
Maintainer: Gürkan Myczko <gur...@phys.ethz.ch>
Changed-By: Gürkan Myczko <gur...@phys.ethz.ch>
Description:
 gocr       - Command line OCR
 gocr-dev   - Header files for OCR
 gocr-tk    - tcl/tk wrapper around gocr
Closes: 293727 582575 596858 676856 743719 846818 877087
Changes:
 gocr (0.52-1) unstable; urgency=medium
 .
   * New upstream version. (Closes: #743719, #877087, #293727)
   * New maintainer. (Closes: #846818)
   * debian/patches: dropped them all.
   * debian/rules: update to install changelog. (Closes: #596858)
   * Patched upstream manual page to refer to right package. (Closes: #676856)
   * New binary package, gocr-dev. (Closes: #582575)
   * debian/copyright: made machine readable, updated.
Checksums-Sha1:
 6b9cccf4ecb21355fc570d08e19ae7f8daf734d8 1800 gocr_0.52-1.dsc
 10d71c87077a1648f83ef1f3e1f31d378717a110 445401 gocr_0.52.orig.tar.gz
 edc1c0a2a2a2a2b0c7c08ed9609e34c7cbccad17 5624 gocr_0.52-1.debian.tar.xz
 1a319894e501567a22461f278887620a322852e0 373060 gocr-dbgsym_0.52-1_amd64.deb
 b4ec458b93fe818e9051ae623b706b0a66896234 30244 gocr-dev_0.52-1_all.deb
 714ba5d3a1ff1de65b78477457307c52ec69a71d 16156 gocr-tk_0.52-1_all.deb
 2c0e65af76f6f55a14ff5ecd37d98a931ee83b26 5989 gocr_0.52-1_amd64.buildinfo
 ecb96fcfc1b255d391cd91d68608716f0ae7c3f7 234908 gocr_0.52-1_amd64.deb
Checksums-Sha256:
 3080c7d2b86ba7d1d43ee54809d822396116f77266d2749c9671d7c23ffb8bc9 1800 
gocr_0.52-1.dsc
 df906463105f5f4273becc2404570f187d4ea52bd5769d33a7a8661a747b8686 445401 
gocr_0.52.orig.tar.gz
 1db59c283cc2005af275eb28970c86997419d7d2d6ae1d062a1a2ebc8d3cf531 5624 
gocr_0.52-1.debian.tar.xz
 35f6e50842c60fa6a88d529d118a28c410d57812582ff55ad4a28d1efbe4f93d 373060 
gocr-dbgsym_0.52-1_amd64.deb
 f6393ba0082b2b1bc8b94a50516020ba7123aa3b894c0500bd79f7eb6b88f40f 30244 
gocr-dev_0.52-1_all.deb
 7068ebc82a8151aa3e0bbeb03dc412ee0c628c09436630a38c634606125d419a 16156 
gocr-tk_0.52-1_all.deb
 20aa2885c50cd6a673e81b034119482a7e3562f285da07cd8ec2d037caf3a8c6 5989 
gocr_0.52-1_amd64.buildinfo
 0cc3d6dcf263df27a14597fbf9c58bca2c17e015e0f8a093bd1cd8638008fe72 234908 
gocr_0.52-1_amd64.deb
Files:
 8ded203e1e42cba3cf1e2cf84dd73b37 1800 graphics optional gocr_0.52-1.dsc
 e76c9a42574fb3152cad69a4bdbed397 445401 graphics optional gocr_0.52.orig.tar.gz
 ac8c51b7b36e8c235a2fd244dda77e50 5624 graphics optional 
gocr_0.52-1.debian.tar.xz
 03544ba4c82cc2bbfb3c8ab1937ed4f6 373060 debug optional 
gocr-dbgsym_0.52-1_amd64.deb
 253dc1c929f2bd9dbbdb9dd5e8cb60a9 30244 graphics optional 
gocr-dev_0.52-1_all.deb
 9a5c1f1bd7ccf0185cc38403d7823a8b 16156 graphics optional gocr-tk_0.52-1_all.deb
 652851872347bd550027ebe32545a23e 5989 graphics optional 
gocr_0.52-1_amd64.buildinfo
 540984fa6b486751e85738a51734c7a8 234908 graphics optional gocr_0.52-1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAlxUe34ACgkQweDZLphv
fH6HChAA6HjtbtRB+wTT1joo/gje6CXs2u+OAS39HRYXJm9SrK7K6NcONV8NlHvJ
/UANXhKkb/c8FcKEsgmwEbTIPdRSMYyThGuoWDJm5TTRHNFxUS6zw0cRgRqWhWJL
auWnb7yROhyLfMYXejtVrVx94JerCKLKASd7aJGpBKYe23HOy2+JtyNRNF/Y+fD2
jgULhmn8BFtQkoyyizs87G/ZC4acb/YfJedU0iP63dmhGH9y3ihTh67EJNrZmBBr
5NhgkqhEPTcoAadiVbNuQDeVuA0njcE4qdgTlLwGyQ5qUSjX51K+q9DOwK3bYzgz
UKpnQlT0jnnhhtpbPs6nLo+to51f0jpyn0qui1OHLkTRJkywMZP4et8XKfnq/uwy
AXgAQmNVumLd3qj0dUnA9b3D19o9yR17TcvlKObaxIRfQjudI636KfRJ1GNihfE7
o4NHI8jv84+6EKLOW9xUBvtzSrYZC2LhfTTUkDYfXyx6KxKw2Vj5cbqAHuPBbrrs
EZY7fpClxtKhUlFnWwOPBuVuDPn9RZ0eszPoSF9r1y26XGsrWGbhXoqEzIw62Y3m
p/M3gsd9EaBlTgTkRsaCpw69iDWpe7U5Eg5v9Z+ZumoGlWQ1nhrBJpdv1FHEaQaH
J4uB/M4q5LhFds/5f7/vpaZjJCwcO1GVS50RhltF6x06ZNe8MWo=
=7ld4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to