Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)


Micky1979
2,126 posts in this topic

Recommended Posts

1 hour ago, Philip Petev said:

I removed the src folder several times, but the result is the same.

I tried to build on High Sierra with Xcode 10 and I got the error make: *** [pkg] Error 255

 

Spoiler

 

Generating BootSectors

make: Nothing to be done for `all'.

Done!

rm -rf sym obj dst CloverPrefpane/build CloverUpdater/build

================================================================================

MAKE PKG

                             <--------------------------------------------------

 

========= Translating Resources ========

/Users/cyberdevs/src/edk2/Clover/CloverPackage/package/../../../../opt/local

Updating 'en' strings file for CloverUpdater... done

Updating 'en' strings file for Clover Preference Panel... done

Updating strings file for Clover Preference Panel... done

(197 entries)

Error: 'msgmerge -U /var/folders/z9/38q3hh090gb3w6glqczyjv5w0000gn/T/po.sSyNF3On/de.po /var/folders/z9/38q3hh090gb3w6glqczyjv5w0000gn/T/po.sSyNF3On/clover.pot --lang=de --previous --width=79 --previous --backup=none' died with signal 6, without coredump.

 

make: *** [pkg] Error 255

 

o_Ops, MAKE PKG exited with error(s), aborting..

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

 

 

Update:

Removing src solved the issue for me.

Edited by Cyberdevs
  • Like 1
Link to comment
Share on other sites

13 hours ago, vector sigma said:

It is a known bug with  Xcode 10 and the modern build system, you can try to add to the respective makefile in "XCODEBUILD_OPTIONS" the flag/varialble:


-UseModernBuildSystem=0

 

Adding this to the Clover Updater and Clover PrefPane makefiles solved the compile problem for me on Xcode 10 and High Sierra. Thanks!

Maybe this change should be made permanent for those two, at least until it's fixed.

Edited by Philip Petev
  • Like 3
Link to comment
Share on other sites

The problem is that I don't know how long this flag it will work as it is undocumented even if it is the mirror of a functionality already present in the Xcode's GUI. I'll commit it as soon as I have time or just do it by your self, but be aware that is recognized by Xcode 10 only. Last time, my workaround was based on a thing of timing, i.e. make the xib with translated stuff before effectively building the apps, making the build system with all archive generated and ready.

A secure fix is to enable "Base internalization" for the two applications involved (i.e. you don't have to create xibs for each languages...but just their respective Localizable.strings file), and so really using a modern buildsystem with a moder project, but this will require to rewrite how Clover create translations from the po files and some time spending, plus I'm not sure that will require at least 10.9 or 10.10 as deployment target. Another fix is to always have xibs for all languages ready w/o the need to generate them in the repository and act directly to them when we need to modify the various languages.

  • Like 2
Link to comment
Share on other sites

3 hours ago, SavageAUS said:

Is there anyway to readd Try Clover Configurator Pro.app back to the script menu after trying it?

 

Edit: Nevermind, fount it.

 

What's the solution, please.

 

EDIT: I found it too.

Edited by Matgen84
Link to comment
Share on other sites

Just a heads up that @vit9696 has removed EfiMiscPkg (and added OcSupportPkg) in his latest commits to AppleSupportPkg.  

 

I had to edit the URLs in Build_Clover.command/ebuild.sh to get them to build external packages (ApfsDriverLoader-64.efi, AppleImageLoader-64.efi, VirtualSMC-64.efi etc) for Clover r4697 again...

 

ThirdPartyList=(
	https://github.com/vit9696/AptioFixPkg.git
	https://github.com/acidanthera/OcSupportPkg
	https://github.com/acidanthera/EfiPkg
	https://github.com/acidanthera/AppleSupportPkg.git
)

Build_Clover.command.zip

ebuild.sh.zip

 

1 hour ago, ellaosx said:

just replace my existing 2 files with your attachment? 

 

Yes.  As always, backup/make copy of original files.

 

Edited by fusion71au
@ellaosx question answered.
  • Like 6
  • Thanks 1
Link to comment
Share on other sites

On 10/8/2018 at 6:36 AM, fusion71au said:

Just a heads up that @vit9696 has removed EfiMiscPkg (and added OcSupportPkg) in his latest commits to AppleSupportPkg.  

 

I had to edit the URLs in Build_Clover.command/ebuild.sh to get them to build external packages (ApfsDriverLoader-64.efi, AppleImageLoader-64.efi, VirtualSMC-64.efi etc) for Clover r4697 again...

 


ThirdPartyList=(
	https://github.com/vit9696/AptioFixPkg.git
	https://github.com/CupertinoNet/CupertinoModulePkg
	https://github.com/acidanthera/OcSupportPkg
	https://github.com/acidanthera/EfiPkg
	https://github.com/acidanthera/AppleSupportPkg.git
)

 

Build_Clover.command.zip

ebuild.sh.zip

just replace my existing 2 files with your attachment? 

Link to comment
Share on other sites

3 hours ago, ellaosx said:

just replace my existing 2 files with your attachment? 

 

Right, just replace file. Build_clover.command don't use '--ext-co' for ebuild.sh. It does not create the folder / src / ext_packages.  Also, I think you can use only this new script.

In my case, I replace these two files despite everything.

 

All works fine :)

Edited by Matgen84
Link to comment
Share on other sites

9 hours ago, Matgen84 said:

don't use '--ext-co' for ebuild.sh. It does not create the folder / src / ext_packages.

i dont know if im using that flag. Im just relying what ever the default of build_clover.command (selecting only #5 from the menu).

Link to comment
Share on other sites

2 hours ago, ellaosx said:

i dont know if im using that flag. Im just relying what ever the default of build_clover.command (selecting only #5 from the menu).

 

I use also the default of build_clover.command.  I made a mistake in my previous post. Sorry, for my bad english. Just replace this two files. 

Link to comment
Share on other sites

1 hour ago, SavageAUS said:

Is there a reason this

 


CupertinoModulePkg:

checking..Authentication realm: <https://github.com:443> GitHub


just starting happening?

its happening because the repository is not there anymore...

so while waiting for what has to become...  either you remove the link or wait for a fix

 

PS

only a suggestion but should replace all cuopertino links whith https://github.com/acidanthera ones

Edited by LAbyOne
  • Like 1
Link to comment
Share on other sites

2 hours ago, SavageAUS said:

Is there a reason this

 


CupertinoModulePkg:

checking..Authentication realm: <https://github.com:443> GitHub


just starting happening?

 

You must modify build_clover.command. With the same url as ebuild.sh, all works fine again :) 

 

ThirdPartyList=(
	https://github.com/vit9696/AptioFixPkg.git
	https://github.com/acidanthera/EfiPkg
	https://github.com/acidanthera/AppleSupportPkg.git
	https://github.com/acidanthera/OcSupportPkg

 

Edited by Matgen84
Link to comment
Share on other sites

This happenned on my case since long time ago, yeah.. already using Build_Clover script v4.9.3 with a same result.

Do I need to `cd ~/src/edk2/AppleSupportPkg && svn cleanup` locally, or..???

Screenshot 4.png

Edited by Badruzeus
  • Sad 1
Link to comment
Share on other sites

2 hours ago, Badruzeus said:

This happenned on my case since long time ago, yeah.. already using Build_Clover script v4.9.3 with a same result.

Do I need to `cd ~/src/edk2/AppleSupportPkg && svn cleanup` locally, or..???

Screenshot 4.png

 

No issues here with AppleSupportPkg build. All works fine with v4.9.3 :)  Maybe retry again

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...