Opened 14 years ago

Closed 13 years ago

#23440 closed defect (fixed)

shared-mime-info failed to build

Reported by: brawner@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: shared-mime-info

Description (last modified by jmroot (Joshua Root))

This port failed to build with what seems like very obvious errors in the freedesktop.org.xml. I made simple corrections like properly closing comments, or eliminating poorly written ones to begin with. I selfupdated when I got this error, so I don't think I downloaded an old version. The attached file is the corrected freedesktop.org.xml file. The dependency successfully built after these corrections. Lets hope I didn't delete anything important.

Stephen

>>> sudo port install -v dia
--->  Computing dependencies for dia
--->  Building shared-mime-info
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_shared-mime-info/work/shared-mime-info-0.70" && /usr/bin/make -j2 all " returned error 2
Command output: 	  exit 1; \
	fi
if test -n /opt/local/bin/xmllint ; then \
		xmllint --noout --valid ./freedesktop.org.xml;	\
	fi
./freedesktop.org.xml:12852: parser error : Opening and ending tag mismatch: comment line 12851 and mime-type
  </mime-type>
              ^
./freedesktop.org.xml:16011: parser error : expected '>'
    <comment>CMU raster image</commentPS (terkompresi bzip)</comment>
                                      ^
./freedesktop.org.xml:16011: parser error : Opening and ending tag mismatch: mime-type line 16010 and comment
    <comment>CMU raster image</commentPS (terkompresi bzip)</comment>
                                                                     ^
./freedesktop.org.xml:16332: parser error : Specification mandate value for attribute xml
    <comment xml>
                ^
./freedesktop.org.xml:16335: parser error : Opening and ending tag mismatch: comment line 16332 and mime-type
  </mime-type>
              ^
./freedesktop.org.xml:23887: parser error : Opening and ending tag mismatch: mime-type line 16318 and mime-info
</mime-info>re</comment>
            ^
./freedesktop.org.xml:23887: parser error : Opening and ending tag mismatch: mime-info line 64 and comment
</mime-info>re</comment>
                        ^
./freedesktop.org.xml:23888: parser error : Extra content at the end of the document
    <comment xml:lang="eu">softwarea</comment>
    ^
make: *** [check] Error 1

Error: The following dependencies failed to build: gtk2 shared-mime-info
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

Attachments (1)

freedesktop.org.zip (175.4 KB) - added by brawner@… 14 years ago.
freedesktop.org.xml corrected to eliminate build errors (compressed)

Download all attachments as: .zip

Change History (5)

comment:1 in reply to:  description Changed 14 years ago by brawner@…

Looks like I couldn't upload it because the file was too big.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Description: modified (diff)

Please remember to preview and use WikiFormatting. Try compressing the log first.

Changed 14 years ago by brawner@…

Attachment: freedesktop.org.zip added

freedesktop.org.xml corrected to eliminate build errors (compressed)

comment:3 Changed 14 years ago by brawner@…

Thanks for the changes.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

This has been updated several times since and builds fine for me now.

Note: See TracTickets for help on using tickets.