<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>1988</bug_id>
          
          <creation_ts>2002-04-21 18:17 0000</creation_ts>
          <short_desc>mgetty-1.1.26-r3.ebuild  (Updated Ebuild - Fix)</short_desc>
          <delta_ts>2003-02-04 19:42:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>1.1a</version>
          <rep_platform>x86</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>geekasylum@gmail.com</reporter>
          <assigned_to>rphillips@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>geekasylum@gmail.com</who>
            <bug_when>2002-04-21 18:17:20 0000</bug_when>
            <thetext>There were 2 main problems with the mgetty-1.1.26-r2.ebuild which I have fixed 
in this updated ebuild.

#1) The src_unpack function used sed to edit policy.h to correct the logfile 
define for the mgetty.% log, however there is also a sendfax log which should 
also be changed.  

I updated the sed code to edit both logfile locations. I also added another sed 
command to uncomment the CNDFILE define in policy.h. This activates Calling 
Number Display (CND) options. With this undefined (as shipped), mgetty will 
never read the &quot;dialin.config&quot; config file and CND processing is disabled. 
Activating CND is benign since there are no definitions in the example 
dialin.config, it will have no effect.  I have had CND working in mgetty (non-
gentoo) for over a year with no problems.

#2 The make (emake) statements in src_compile did not pass some needed 
variables to make. At compile time, mgetty uses ${prefix} and $CONFDIR (among 
others) in #defines inside several source files. Leaving these to the default 
values would cause mgetty to have incorect paths hardcoded internally and could 
lead to problems at run time. The Makefile also has CFLAGS set internally which 
override the users chosen flags (in make.conf)

I corrected both of these problems by passing the appropriate environment 
variables to both the main mgetty make and the make for the voice utils. mgetty 
now compiles with correct internal paths, and the users chosen CFLAGS.

Feel free to leave out the CND stuff if you want (though I can see no reason 
to) simply delete the entire 3rd line in the sed command (ie the 3rd -e line 
containing &quot;CNDFILE&quot;) I thought of making it optional but couldnt think how to 
without another USE variable which I thought was overkill.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>geekasylum@gmail.com</who>
            <bug_when>2002-04-21 18:26:02 0000</bug_when>
            <thetext>Created an attachment (id=632)
mgetty-1.1.26-r3.ebuild (Updated ebuild)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>geekasylum@gmail.com</who>
            <bug_when>2002-04-21 18:49:51 0000</bug_when>
            <thetext>Noticed another bug in this ebuild - in src_install, INFODIR=${D}/usr/share 
should read INFODIR=${D}/usr/share/info

Tried to upload a revised ebuild but it didnt work. Can you fix this one by 
hand, thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rphillips@gentoo.org</who>
            <bug_when>2002-04-23 12:35:23 0000</bug_when>
            <thetext>committed.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>632</attachid>
            <date>2002-04-21 18:26 0000</date>
            <desc>mgetty-1.1.26-r3.ebuild (Updated ebuild)</desc>
            <filename>mgetty-1.1.26-r3.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDAyIEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlLCB2
MiBvciBsYXRlcgojIEF1dGhvciBHcmFudCBHb29keWVhciA8ZzJib29qdW1AZ2VudG9vLm9yZz4K
IyBVcGRhdG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