[
http://jira.codehaus.org/browse/MRPM-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Okken updated MRPM-61:
----------------------------
Fix Version/s: 2.0
> Problem with space in folder names
> ----------------------------------
>
> Key: MRPM-61
> URL: http://jira.codehaus.org/browse/MRPM-61
> Project: Mojo RPM Plugin
> Issue Type: Bug
> Components: rpm
> Affects Versions: 2.0-beta-4
> Environment: Linux
> Reporter: Karl Heinz Marbaise
> Assignee: Brett Okken
> Fix For: 2.0
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> I discovered a problem with a space in the folder name where the project
> (using the RPM-Plugin) is located.
> First i have run the the project without changing the folder name:
> {quote}
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Tomcat :: CI :: Server :: Server Nr.: 001
> [INFO] task-segment: [clean, package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory /ci001/target
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /ci001/src/main/resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [rpm:rpm {execution: default-rpm}]
> [WARNING] Version string truncated to 1.0.2
> [INFO] Creating directory /ci001/target/rpm/ci001
> [INFO] Creating directory /ci001/target/rpm/ci001/BUILD
> [INFO] Creating directory /ci001/target/rpm/ci001/RPMS
> [INFO] Creating directory /ci001/target/rpm/ci001/SOURCES
> [INFO] Creating directory /ci001/target/rpm/ci001/SPECS
> [INFO] Creating directory /ci001/target/rpm/ci001/SRPMS
> [INFO] Copying 1 files to /ci001/target/rpm/ci001/buildroot/home/build
> [INFO] Copying 1 files to /ci001/target/rpm/ci001/buildroot/home/build
> [INFO] Creating spec file /ci001/target/rpm/ci001/SPECS/ci001.spec
> [INFO] Building target platforms: x86_64-redhat-linux
> [INFO] Building for target x86_64-redhat-linux
> [INFO] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6001
> [WARNING] + umask 022
> [WARNING] + cd /ci001/target/rpm/ci001/BUILD
> [WARNING] + /usr/lib/rpm/brp-compress
> [WARNING] + /usr/lib/rpm/brp-strip
> [WARNING] + /usr/lib/rpm/brp-strip-static-archive
> [WARNING] + /usr/lib/rpm/brp-strip-comment-note
> [INFO] Processing files: ci001-1.0.2-SNAPSHOT20100127155041
> [INFO] Requires(interp): /bin/sh /bin/sh
> [INFO] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> [INFO] Requires(post): /bin/sh
> [INFO] Requires(postun): /bin/sh
> [INFO] Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /ci001/target/rpm/ci001/buildroot
> [INFO] Wrote:
> /ci001/target/rpm/ci001/RPMS/x86_64/ci001-1.0.2-SNAPSHOT20100127155041.x86_64.rpm
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Wed Jan 27 16:50:52 CET 2010
> [INFO] Final Memory: 27M/618M
> [INFO]
> ------------------------------------------------------------------------
> {quote}
> After that i simply changed the name of the project from "ci001" to "ci 001"
> ...
> {quote}
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Tomcat :: CI :: Server :: Server Nr.: 001
> [INFO] task-segment: [clean, package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /ci 001/src/main/resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [rpm:rpm {execution: default-rpm}]
> [WARNING] Version string truncated to 1.0.2
> [INFO] Creating directory /ci 001/target/rpm/ci001
> [INFO] Creating directory /ci 001/target/rpm/ci001/BUILD
> [INFO] Creating directory /ci 001/target/rpm/ci001/RPMS
> [INFO] Creating directory /ci 001/target/rpm/ci001/SOURCES
> [INFO] Creating directory /ci 001/target/rpm/ci001/SPECS
> [INFO] Creating directory /ci 001/target/rpm/ci001/SRPMS
> [INFO] Copying 1 files to /ci 001/target/rpm/ci001/buildroot/home/build
> [INFO] Copying 1 files to /ci 001/target/rpm/ci001/buildroot/home/build
> [INFO] Creating spec file /ci 001/target/rpm/ci001/SPECS/ci001.spec
> [WARNING] error: line 14: Tag takes single token only: BuildRoot: /ci
> 001/target/rpm/ci001/buildroot
> [INFO] Building target platforms: x86_64-redhat-linux
> [INFO] Building for target x86_64-redhat-linux
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] RPM build execution returned: '1' executing '/bin/sh -c cd "/ci
> 001/target/rpm/ci001/SPECS" && rpmbuild -bb --buildroot '/ci
> 001/target/rpm/ci001/buildroot' --define '_topdir /ci 001/target/rpm/ci001'
> --target x86_64-redhat-linux ci001.spec'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Wed Jan 27 16:49:01 CET 2010
> [INFO] Final Memory: 27M/618M
> [INFO]
> ------------------------------------------------------------------------
> {quote}
> May be this is an known bug, but i couldn't find one in JIRA...
> Kind regards
> Karl Heinz Marbaise
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email