Skip to contentSkip to conversation

naming .bb files

DISCUSSION Barros Pena, Belen 4 participants 7 messages Jul 8, 2013 – Jul 9, 2013

lore
Share & tools
lore
#0 lore raw

Bug 4193 will allow Hob users to save their customised images into a .bb file. As part of the saving flow, users will need to give their .bb file a name, and we need to ensure such names are valid.

There seem to be certain rules regarding .bb files naming, but apparently those are not written anywhere. Some of those rules seem to be:

* No spaces
* Underscores can only by used to separate name and version
* No ASCII special characters
* No non-ASCII characters
* No uppercase letters

Does anybody know of any others we should be aware of?

Thanks!

Belén

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

#1 lore raw
Quoted 10 lines · Belen

There seem to be certain rules regarding .bb files naming, but apparently those are not written anywhere. Some of those rules seem to be:

* No spaces
* Underscores can only by used to separate name and version
* No ASCII special characters
* No non-ASCII characters
* No uppercase letters

Does anybody know of any others we should be aware of?

I wasn't aware of any restrictions on uppercase, but the recipe name part is probably restricted to ASCII alphanumeric (a-z, 0-9) and ASCII hyphens, then a underscore for the version separator, which is alphanumeric and periods.

Ross

#2 lore raw

Thanks Ross!

I've tried a .bb file name with capital letters and Hob is not liking it at all. So it looks like uppercase might also be a problem.

Belen

Quoted 12 lines · Ross
Quoted 10 lines · Belen

There seem to be certain rules regarding .bb files naming, but apparently
those are not written anywhere. Some of those rules seem to be:

* No spaces
* Underscores can only by used to separate name and version
* No ASCII special characters
* No non-ASCII characters
* No uppercase letters

Quoted 10 lines
Quoted 1 line

Does anybody know of any others we should be aware of?

I wasn't aware of any restrictions on uppercase, but the recipe name part is probably restricted to ASCII alphanumeric (a-z, 0-9) and ASCII hyphens, then a underscore for the version separator, which is alphanumeric and periods.

Ross

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

#3 lore raw
Quoted 5 lines · Belen

Thanks Ross!

I've tried a .bb file name with capital letters and Hob is not liking it at all. So it looks like uppercase might also be a problem.

This is from memory and a month or so back but I think the problem with capital letters is that opkg rejects .ipk files with capital letters. I didn't have any problems with it when producing .deb files.

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

#4 lore raw
Quoted 11 lines · Paul Barker
Quoted 5 lines · Belen

Thanks Ross!

I've tried a .bb file name with capital letters and Hob is not liking it at all. So it looks like uppercase might also be a problem.

This is from memory and a month or so back but I think the problem with capital letters is that opkg rejects .ipk files with capital letters. I didn't have any problems with it when producing .deb files.

It sounds like the safe thing for Hob to do is to reject uppercase letters in .bb file names (just in case).

Thanks!

Quoted 6 lines

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

#5 lore raw
Quoted 10 lines · Belen
Quoted 8 lines · Paul Barker
Quoted 5 lines · Belen

Thanks Ross!

I've tried a .bb file name with capital letters and Hob is not liking it at all. So it looks like uppercase might also be a problem.

Quoted 6 lines
Quoted 3 lines

This is from memory and a month or so back but I think the problem with capital letters is that opkg rejects .ipk files with capital letters. I didn't have any problems with it when producing .deb files.

It sounds like the safe thing for Hob to do is to reject uppercase letters in .bb file names (just in case).

not only names but also in PR string if it has letters in it.

Quoted 27 lines

Thanks!

Quoted 6 lines

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#6 lore raw
Quoted 19 lines · Khem Raj
Quoted 15 lines · Belen
Quoted 12 lines · Paul Barker
Quoted 6 lines · Belen

Thanks Ross!

I've tried a .bb file name with capital letters and Hob is not liking it
at all. So it looks like uppercase might also be a problem.

This is from memory and a month or so back but I think the problem with capital letters is that opkg rejects .ipk files with capital letters. I didn't have any problems with it when producing .deb files.

Quoted 5 lines
Quoted 3 lines

It sounds like the safe thing for Hob to do is to reject uppercase letters
in .bb file names (just in case).

not only names but also in PR string if it has letters in it.

Noted, thanks!

Quoted 24 lines
Quoted 24 lines

Thanks!

Quoted 6 lines

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

Quoted 5 lines
Quoted 4 lines

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.