Skip to contentSkip to conversation

Trouble packaging files containing space

DISCUSSION Søren Holm 3 participants 6 messages Oct 28, 2013

lore
Share & tools
lore
#0 lore raw

Hi

I have a package containing files that includes spaces in their same.

The files are located in the same directory without a space in their name is packages just find.

I specify FILES_$[PN} like this

FILES_${PN} = "${prefix}/local/Mikrofyn"

What might be wrong?

Signature · 1 line
Søren Holm
#1 lore raw
Quoted 4 lines · Søren Holm

Hi

I have a package containing files that includes spaces in their same.

Quoted 9 lines

The files are located in the same directory without a space in their name is packages just find.

I specify FILES_$[PN} like this

FILES_${PN} = "${prefix}/local/Mikrofyn"

What might be wrong?

It seems to be policy - from http://www.yoctoproject.org/docs/1.5/mega-manual/mega-manual.html#source-directory
The OpenEmbedded build system does not support file or directory names that contain spaces.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw
Quoted 8 lines · On Monday 28 October 2013 08:55:09 Gary Thomas wrote:
Quoted 7 lines · Søren Holm

I have a package containing files that includes spaces in their same.

The files are located in the same directory without a space in their name is packages just find.

I specify FILES_$[PN} like this

Quoted 8 lines
Quoted 3 lines

FILES_${PN} = "${prefix}/local/Mikrofyn"

What might be wrong?

It seems to be policy - from
http://www.yoctoproject.org/docs/1.5/mega-manual/mega-manual.html#source-di
rectory The OpenEmbedded build system does not support file or directory names that contain spaces.

I think that's more about paths such as TMPDIR rather than the contents of packages. This should work.

Søren, are you getting unpackaged file warnings? Are the files listed if you look under image/ in the work directory for the recipe? FWIW, I just tested here and installing files whose filenames contain spaces worked just fine.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw

Mandag den 28. oktober 2013 16:01:24 skrev Paul Eggleton:

Quoted 4 lines

Søren, are you getting unpackaged file warnings? Are the files listed if you look under image/ in the work directory for the recipe? FWIW, I just tested here and installing files whose filenames contain spaces worked just fine.

I get erro regarding files installed but not shipped - but that's a differen issue I think. That particular issue is strange sine the un-shupped files are source-files that I do not install. They end up in image/ during do_package.

The image-dir contains all the files including the files containing spaces.

Signature · 1 line
Søren Holm
#4 lore raw
Quoted 11 lines · On Monday 28 October 2013 17:05:54 Søren Holm wrote:

Mandag den 28. oktober 2013 16:01:24 skrev Paul Eggleton:

Quoted 4 lines

Søren, are you getting unpackaged file warnings? Are the files listed if you look under image/ in the work directory for the recipe? FWIW, I just tested here and installing files whose filenames contain spaces worked just fine.

I get erro regarding files installed but not shipped - but that's a differen issue I think. That particular issue is strange sine the un-shupped files are source-files that I do not install. They end up in image/ during do_package.

The image-dir contains all the files including the files containing spaces.

I think I might need some more details - can you please paste the actual error, the relevant parts of the recipe and a directory listing under image/${prefix}/local ?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw

Mandag den 28. oktober 2013 16:17:46 skrev Paul Eggleton:

Quoted 12 lines · On Monday 28 October 2013 17:05:54 Søren Holm wrote:
Quoted 11 lines

Mandag den 28. oktober 2013 16:01:24 skrev Paul Eggleton:

Quoted 4 lines

Søren, are you getting unpackaged file warnings? Are the files listed if you look under image/ in the work directory for the recipe? FWIW, I just tested here and installing files whose filenames contain spaces worked just fine.

I get erro regarding files installed but not shipped - but that's a differen issue I think. That particular issue is strange sine the un-shupped files are source-files that I do not install. They end up in image/ during do_package.

Quoted 6 lines
Quoted 2 lines

The image-dir contains all the files including the files containing spaces.

I think I might need some more details - can you please paste the actual error, the relevant parts of the recipe and a directory listing under image/${prefix}/local ?

Having a recipe containing just this works. I'll try stripping my original much larger recipe to see what breaks it.

do_install() {
        touch "${D}/file with spaces.txt"
}

FILES_${PN} = "/"

Signature · 1 line
Søren Holm