[Bug 657478] New: Invalid declare statement in macros.mingw32 with some packages

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 26 08:52:20 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Invalid declare statement in macros.mingw32 with some packages

https://bugzilla.redhat.com/show_bug.cgi?id=657478

           Summary: Invalid declare statement in macros.mingw32 with some
                    packages
           Product: Fedora
           Version: 14
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: mingw32-filesystem
        AssignedTo: rjones at redhat.com
        ReportedBy: waananen at nbi.dk
         QAContact: extras-qa at fedoraproject.org
                CC: rjones at redhat.com, kalev at smartlink.ee,
                    erik-fedora at vanpienbroek.nl,
                    fedora-mingw at lists.fedoraproject.org, drizt at land.ru
    Classification: Fedora


Description of problem:

I'm using a custom build of mingw32-python in order to build Python bindings
for a software package. For this packages the code in macros.mingw32 breaks:

...
  for i in `ls %{_mingw32_bindir}/*|grep -- "-config\$"` ; do \
    x=`basename $i|tr "a-z+-" "A-ZX_"`; \
    declare -x $x="$i" ; export $x; \
  done; \
...

The variable name $x contains a ('.') when it finds the python2.x-config script
in %{_mingw32_bindir}. One could imagine that this problem could be triggered
on other *-config scripts.

The fix is easy: filter away dots ('.') from the filename when generating the
variable name (eg. |cut -d '.').

Version-Release number of selected component (if applicable):

I found this in Fedora 12, but it seems applicable to Fedora 14.

How reproducible:

Build a package which requires mingw32-python. The mingw32-python does
not yet exist in Fedora (unfortunately).

Steps to Reproduce:
1.
2.
3.

Actual results:

Package build fails

Expected results:

Package should build

Additional info:

Cheers

Anders

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the mingw mailing list