View previous topic :: View next topic |
Author |
Message |
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Sun Mar 23, 2003 5:47 pm Post subject: How to tell portage to ignore MD5 check of a package? |
|
|
I am in need of applying a small patch to the sources of a package, but I guess this will break the MD5 hash check and the app won't be emerged. Is there a way to tell portage to ignore the MD5 check or should I just compile and install it manually?
Thanks. |
|
Back to top |
|
|
rojaro l33t
Joined: 06 May 2002 Posts: 732
|
Posted: Sun Mar 23, 2003 6:14 pm Post subject: |
|
|
in this case you can create your own md5 hash using the ebuild command. e.g.: ebuild digest /path/to/package. i suggest using the portage overlay facility for this. e.g. if you want to create your own version of an existing package (i.e. app-misc/multimon) create the following directory using the following command:
mkdir -p /usr/local/portage/app-misc/multimon/files
now edit /etc/make.conf and add PORTDIR_OVERLAY="/usr/local/portage" to it (there is already an example in the file which you just need to uncomment). now copy the original ebuild (e.g. /usr/portage/app-misc/multimon/multimon-1.0.ebuild) to /usr/local/portage/app-misc/multimon and edit the file as you need. put your and the original patches from /usr/portage/app-misc/multimon/files (multimon doesnt have any) into /usr/local/portage/app-misc/multimon/files.
now run ebuild digest /usr/local/portage/app-misc/multimon/multimon-1.0.ebuild and a new digest-multimon-1.0 file will be created in /usr/local/portage/app-misc/multimon/files to reflect your changes.
to install your package now just run your usual emerge command (e.g. emerge app-misc/multimon - emerge will use your version instead of the one under /usr/portage). _________________ A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970) |
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Sun Mar 23, 2003 6:22 pm Post subject: |
|
|
Thanks a lot for the information. I'll try it soon and post the results. |
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Sun Mar 23, 2003 7:05 pm Post subject: |
|
|
The best I get when trying to finally emerge the app is:
Code: | !!! ERROR: app-emulation/gxmame-0.31x failed.
!!! Function econf, Line 275, Exitcode 1
!!! no configure script found
|
I followed the instructions, changed the sources, repacked them, changed the ebuild to fetch the tarball from localhost (Apache running) and tried to emerge. All goes fine (md5 check, source unpacking), then the above message appears. Do you know why? |
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Sun Mar 23, 2003 8:05 pm Post subject: |
|
|
Well, I tried the elegant way and failed, so I did it the dirty way.
I put my repacked sources tarball in /usr/portage/distfiles, and edited the digest file to reflect the new MD5 hash generated by the ebuild digest command. It worked.
Thanks for your help. |
|
Back to top |
|
|
|