SoftCreatR / imei

IMEI - ImageMagick Easy Install
ISC License
309 stars 36 forks source link

Minimum dependant packages if possible #88

Closed suntong closed 10 months ago

suntong commented 1 year ago

Originally posted by @suntong in https://github.com/SoftCreatR/imei/discussions/87

If I use the checkinstall methods to enable the creation of packages that can be uninstalled at a later time, and copy the built packages to another machine and do installation there, it seems to me that it is requesting more packages than necessary, like autoconf automake autotools-dev yasm cmake pkg-config etc...

Hope we can seperate the runtime dependant packages from build-time some day.

suntong commented 1 year ago

BTW, found that libraqm0 was missing from the whole installation, and solved by installing libraqm0:amd64. Just FTA.

SoftCreatR commented 1 year ago

On which OS?

suntong commented 1 year ago

I built with the checkinstall methods under Ubuntu 22.04.2 LTS, and install the built packages to another (Debian 12) machine --

Debian GNU/Linux 12 (bookworm)

SoftCreatR commented 1 year ago

And on which OS is libraqm0 missing? IMEI has built-in exceptions for Debian Stretch and Ubuntu Xenial.

suntong commented 1 year ago

Debian 12

SoftCreatR commented 1 year ago

I can't reproduce this. On a fresh debian 12 installation, libraqm0 exists.

suntong commented 1 year ago

On a fresh debian 12 installation, libraqm0 exists.

You meant you have libraqm0 right out of the box right? I do minimum installation for both of my Ubuntu and Debian. IE my Debian (and Ubuntu) doesn't have it by default (my VPS might have it but I cannot verify, now that it is having it).

SoftCreatR commented 1 year ago

Please see, if version 6.9.0 fixed this issue.

suntong commented 1 year ago

Thanks, I've giving it a try now...

suntong commented 1 year ago

Hmmm...

First of all, I'm still thinking clearing of the terminal scroll back log is a bit abrupt and harsh, and better put that into the README instead, i.e., explicitly do clear before invoking bash "$t", rather than leaving people of no choice than to loose all their scroll back logs.

SoftCreatR commented 1 year ago

There's no cleaning of the scroll back log.

What happens, if you paste echo -ne "\ec" in your console? Does that remove your scroll back log as well?

suntong commented 1 year ago

if you paste echo -ne "\ec" in your console? Does that remove your scroll back log as well?

yeah, my scroll back log is gone by doing that.

SoftCreatR commented 1 year ago

if you paste echo -ne "\ec" in your console? Does that remove your scroll back log as well?

yeah, my scroll back log is gone by doing that.

I can't reproduce this. What about clear -x?

suntong commented 1 year ago

I can't reproduce this.

What terminal are you using? Have you tried it with xterm?

What about clear -x?

That'll keep most of my scroll back log, just the last screenful of logs is gone.

suntong commented 1 year ago

Rest of the feedbacks:

. . .
 #####################
 Installation Process
 #####################

 Installing dependencies       [OK]
 Building aom                  [SKIPPED]
 Building libheif              [SKIPPED]
 Building jpegxl               [SKIPPED]
 Building ImageMagick (Q16)    [SKIPPED]
 Verifying installation        [OK]
 Process has been finished successfully after 22 seconds!

$ dir /usr/local/src/
total 0

I.e., when using --use-checkinstall better make sure all packages are indeed re-generated (even without re-compiling).

As for the minimum dependant package issue, yes, the problem is fixed. Thanks. I'll leave this issue open for you if you want to close it after making sure all packages are re-generated if they are missing from /usr/local/src/.

PS.

# prove that the minimum dependant package issue is fixed
$ ls /usr/local/src/*.deb | xargs -n 1 dpkg -I | grep '^ Depends: '
 Depends: libraqm0,libgomp1,libfftw3-dev,liblcms2-2,libfontconfig1,libxext6,libltdl7,liblqr-1-0-dev,libwebp-dev,libzip-dev,libice-dev,libsm-dev,imei-libaom,imei-libheif,imei-libjxl
 Depends: libde265-dev,libx265-dev,imei-libaom
 Depends: libgif7,libjpeg-dev,libopenexr-dev,libbrotli-dev,imei-libaom,imei-libheif
SoftCreatR commented 1 year ago

logs gone again

You sure?

https://github.com/SoftCreatR/imei/commit/6c75fb9bc9853c0d1f2ae155eff182f72fe85681#diff-49155aca3829a4bb7ba8eb07d3f0b772dc7dad1fe7e04f0db1d1f8dc9485c0c1R269-R271

As you can see, log files are no longer being removed by IMEI. So for every execution, a new log file is being generated, retaining the previous ones.

suntong commented 1 year ago

log files are no longer being removed by IMEI

True.

I was talking about the steps I took to prove that the minimum dependant package issue is fixed. IE, my terminal scroll back log.

suntong commented 1 year ago

"prove that the minimum dependant package issue is fixed" updated.

I'll leave this issue open for you if you want to close it after making sure all packages are re-generated if they are missing from /usr/local/src/.

And also, please make a (force) symlink from the latest log to /var/log/imei.log each time, so that my script can dump it if things goes wrong.