Skip to content
Guest Big Announcement

make: *** [internal-package] Error 126

Featured Replies

Solved by mitosis

Sorry I can't copy the error code from [/size]mobileterminal. But here's the i[/size]mage with the new host site. [/size]

Open your /theos/makefiles/package/deb.mk

 

Edit Line 33 to this:

 

$(ECHO_NOTHING)COPYFILE_DISABLE=1 $(FAKEROOT) -r dpkg-deb -Zgzip -b "$(THEOS_STAGING_DIR)" "$(_THEOS_DEB_PACKAGE_FILENAME)" $(STDERR_NULL_REDIRECT)$(ECHO_END)
Recompile the deb and reinstall.
  • Author

Open your /theos/makefiles/package/deb.mk

 

Edit Line 33 to this:

 

$(ECHO_NOTHING)COPYFILE_DISABLE=1 $(FAKEROOT) -r dpkg-deb -Zgzip -b "$(THEOS_STAGING_DIR)" "$(_THEOS_DEB_PACKAGE_FILENAME)" $(STDERR_NULL_REDIRECT)$(ECHO_END)
Recompile the deb and reinstall.

 

 

 

Thanks for your tips, but I've got this error:

bash-3.2# make package messages=yes

Making all for tweak tinderplusmac...
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile --no-print-directory --no-keep-going \
		internal-library-compile \
		_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tinderplusmac _THEOS_CURRENT_OPERATION=compile \
		THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes
make[2]: Nothing to be done for `internal-library-compile'.
rm -rf "/Users/Nazrin/tinderplusmac/.theos/_"
/Users/Nazrin/tinderplusmac/theos/bin/fakeroot.sh -p "/Users/Nazrin/tinderplusmac/.theos/fakeroot" -c
mkdir -p "/Users/Nazrin/tinderplusmac/.theos/_"
[ -d layout ] && rsync -a "layout/" "/Users/Nazrin/tinderplusmac/.theos/_" --exclude "DEBIAN" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*" || true
Making stage for tweak tinderplusmac...
mkdir -p "/Users/Nazrin/tinderplusmac/.theos/_/Library/MobileSubstrate/DynamicLibraries/"
cp ./.theos/obj/tinderplusmac.dylib "/Users/Nazrin/tinderplusmac/.theos/_/Library/MobileSubstrate/DynamicLibraries/"
if [ -f tinderplusmac.plist ]; then cp tinderplusmac.plist "/Users/Nazrin/tinderplusmac/.theos/_/Library/MobileSubstrate/DynamicLibraries/"; fi
mkdir -p "/Users/Nazrin/tinderplusmac/.theos/_/DEBIAN"
sed -e '/^[Vv]ersion:/d' "/Users/Nazrin/tinderplusmac/control" > "/Users/Nazrin/tinderplusmac/.theos/_/DEBIAN/control"
echo "Version: 5.0.1-4" >> "/Users/Nazrin/tinderplusmac/.theos/_/DEBIAN/control"
echo "Installed-Size: 120" >> "/Users/Nazrin/tinderplusmac/.theos/_/DEBIAN/control"
COPYFILE_DISABLE=1 /Users/Nazrin/tinderplusmac/theos/bin/fakeroot.sh -p "/Users/Nazrin/tinderplusmac/.theos/fakeroot" -r dpkg-deb —Zgzip -b "/Users/Nazrin/tinderplusmac/.theos/_" "./com.nazrin.tinderplusmac_5.0.1-4_iphoneos-arm.deb" 
dpkg-deb: error: need an action option

Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --help for help about installing and deinstalling packages.
make: *** [internal-package] Error 2
  • Author

Just copy paste the content, no need to upload it.


***BEFORE make package RUN***

obj |  folder type
theos | folder type
control | file type
Makefile | file type
tinderplus.plist | file type
Tweak.xm | file type 
***AFTER make package RUN***

control.tar.gz
data.tar.xz 

Updated by nzzrin

  • Author

I don't think you understood me. :p

 

Yes I am, but nevermind. I'm compiling using mac now. But I'm facing new issue regarding the code : here

I know this is an old thread but I'm developing tweaks on Linux and older versions of the SDK (9.2) are all that have really worked for me.  Specifically Coolstar's pre-packaged Theos + 9.2:

https://t.co/Ukyf64BUOx

 

Now, the above will give you error 126 when packaging... if you execute ~/theos/bin/dpkg-deb, you will likely see an error about a valid perl target not being present at /usr/bin/perl.... however you also probably have perl installed!  The issue is with the release's windows line endings - the whole directory needs to be converted to Unix ones, using :set fileformat=unix through vim or using dos2unix.

 

hopefully this helps someone :)

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.