Your message dated Wed, 20 May 2009 03:47:59 +0000
with message-id <e1m6cmd-0000ey...@ries.debian.org>
and subject line Bug#517132: fixed in transcalc 0.14-4
has caused the Debian Bug report #517132,
regarding transcalc: Transcalc FTBFS with error "call to '__open_missing_mode' 
declared with attribute error"
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.)


-- 
517132: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517132
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: transcalc
Version: 0.14-3
Severity: serious
Tags: patch
Justification: no longer builds from source
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jaunty ubuntu-patch

Hi,

When compiling with gcc 4.3, transcalc FTBFS because of a call to an open 
function with only 2 parameters:
make[3]: Entering directory `/build/buildd/transcalc-0.14/src'
cc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -DDATADIR=\"/usr/share\" -ggdb -O2 -Wall -c transcalc.c
transcalc.c: In function 'read_config_file':
transcalc.c:182: warning: ignoring return value of 'fgets', declared with 
attribute warn_unused_result
transcalc.c:196: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result
transcalc.c:197: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result
transcalc.c:198: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result
In function 'open',
    inlined from 'running_for_first_time' at transcalc.c:149:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared 
with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [transcalc.o] Error 1

*** /tmp/tmptMRkaI
In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/fix_FTBFS_gcc_4.3.patch: modify src/transcalc.c to fix a 
    FTBFS with gcc 4.3 in an open function (miss 3rd parameter)
  * debian/rules: added include of /usr/share/cdbs/1/rules/simple-patchsys.mk
  * Fix LP: #334035

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff -u transcalc-0.14/debian/rules transcalc-0.14/debian/rules
--- transcalc-0.14/debian/rules
+++ transcalc-0.14/debian/rules
@@ -2,6 +2,7 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 update-config::
 	[ -e docs/transcalc.1.d-r-orig ] || cp -p docs/transcalc.1 docs/transcalc.1.d-r-orig
only in patch2:
unchanged:
--- transcalc-0.14.orig/debian/patches/fix_FTBFS_gcc_4.3.patch
+++ transcalc-0.14/debian/patches/fix_FTBFS_gcc_4.3.patch
@@ -0,0 +1,11 @@
+--- transcalc-0.14.orig/src/transcalc.c
++++ transcalc-0.14/src/transcalc.c
+@@ -146,7 +146,7 @@
+   /* see if config file exists */
+   if (stat (config_filename, config_file_stat) != 0) {
+     /* config file missing, so touch it */
+-    config_file_fd = open (config_filename, O_CREAT);
++    config_file_fd = open (config_filename, O_CREAT, 0644);
+     if (config_file_fd == -1)
+       {
+ 	perror ("open[config_file]");

--- End Message ---
--- Begin Message ---
Source: transcalc
Source-Version: 0.14-4

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

transcalc_0.14-4.diff.gz
  to pool/main/t/transcalc/transcalc_0.14-4.diff.gz
transcalc_0.14-4.dsc
  to pool/main/t/transcalc/transcalc_0.14-4.dsc
transcalc_0.14-4_i386.deb
  to pool/main/t/transcalc/transcalc_0.14-4_i386.deb



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 517...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry deFreese <bdefre...@debian.org> (supplier of updated transcalc 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...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 19 May 2009 21:53:52 -0400
Source: transcalc
Binary: transcalc
Architecture: source i386
Version: 0.14-4
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packa...@qa.debian.org>
Changed-By: Barry deFreese <bdefre...@debian.org>
Description: 
 transcalc  - microwave and RF transmission line calculator
Closes: 517132
Changes: 
 transcalc (0.14-4) unstable; urgency=low
 .
   * QA upload.
   * Move existing source changes to quilt.
     + Add quilt build-dep and set up rules.
   * 050_transcalc_c.diff - (Closes: #517132).
     + Thanks to Fabrice Coutadeur for forwarding from Ubuntu.
   * Add ${misc:Depends} for debhelper package.
   * Bump Standards Version to 3.8.1. (No changes needed).
Checksums-Sha1: 
 7966679e78d8dd97f69265b2c0a3e9d5cef9e7cf 1076 transcalc_0.14-4.dsc
 9d8e329e1fc11914dbe92d89eb0d43becca98d57 3515 transcalc_0.14-4.diff.gz
 f1d47825d25884bcc375a04f79db13b15f7b1f27 78284 transcalc_0.14-4_i386.deb
Checksums-Sha256: 
 4d6ed02f59e69f12427682efae628b7ae9b04f7b55f3e826108535f5ac4f969b 1076 
transcalc_0.14-4.dsc
 45ee3b28dc9a9b4bbe8ebcc212b00fc7ee80a4f4204c218cbde553cfe679e3a4 3515 
transcalc_0.14-4.diff.gz
 c8cecccacb4c4f201572f5048d7c5990667303e5bd45056938d9aa329ea9e51e 78284 
transcalc_0.14-4_i386.deb
Files: 
 57fea95e83c8aed23b1440bb0fc912ef 1076 science optional transcalc_0.14-4.dsc
 65ff7962798425358d357104401139c0 3515 science optional transcalc_0.14-4.diff.gz
 5c0b382c85d44eace3416b0c44d7f8a4 78284 science optional 
transcalc_0.14-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoTZegACgkQ5ItltUs5T35T8wCg76C54a8xp6gPAI/+ypQ71ic5
clwAoLpX0SbpU5XqoQio8n3ezSNDZ+Br
=O9HX
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to