Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building and installing eloaders / I-Nex for CentOS 7 #13

Closed
alphastar868 opened this issue Oct 1, 2015 · 3 comments · Fixed by #23
Closed

Building and installing eloaders / I-Nex for CentOS 7 #13

alphastar868 opened this issue Oct 1, 2015 · 3 comments · Fixed by #23
Labels

Comments

@alphastar868
Copy link
Contributor

alphastar868 commented Oct 1, 2015

NOTE: This can now be done by building the RPM for the latest commit using the included SPEC file in the package. More details below:

Tested with CentOS 7.1.1503 with I-Nex 7.4.0 commit 3455715 and later

Recommeded: Setup a CentOS Environment for building RPMs; specifically, you will need to create the directories for RPM building _Note:_Step 8 below also accomplishes the same thing.

  1. Download the source code using the Download ZIP button on the I-Nex project page Save as ~/rpmbuild/SOURCES/I-Nex-master.zip
  2. Save the text for i-nex.spec (below) as ~/rpmbuild/SPECS/i-nex.spec
  3. Save the text for i-nex-7.4.0-lib64.patch (below) as ~/rpmbuild/SOURCES/i-nex-7.4.0-lib64.patch This fixes "/usr/bin/i-nex.gambas --library" returns blank on x86_64 arch #11
  4. Save the text for i-nex-7.4.0-distro-quotes.patch (below) as ~/rpmbuild/SOURCES/i-nex-7.4.0-distro-quotes.patch This fixes "JSON.ReadObject.123: Comma expected" when starting I-Nex 7.4.0 #10
  5. Save the text for i-nex-7.4.0-spd-labelnames.patch (below) as ~/rpmbuild/SOURCES/i-nex-7.4.0-spd-labelnames.patch This fixes "Label261...Label264" displayed on Memory tab instead of SPD info #12
  6. Save the text for i-nex-7.4.0-rpm-dpkg.patch (below) as ~/rpmbuild/SOURCES/i-nex-7.4.0-rpm-dpkg.patch This fixes Check button on System tab shows "0 Packages are installed" #14
  7. Install gambas3* from the Fedora Rawhide repo and libcpuid11 from brollylssj's Fedora 23 repo
  8. Verify that all the RPMs needed as Prerequisites and Required RPMs for Build Environment are installed as per the previous instructions
  9. Build the I-Nex for CentOS 7 RPMs with the command: rpmbuild -ba ~/rpmbuild/SPECS/i-nex.spec
  10. Install the new RPMs with the command: sudo yum install ~/rpmbuild/RPMS/noarch/i-nex-data-7.4.0-*.el7.centos.noarch.rpm ~/rpmbuild/RPMS/x86_64/i-nex-7.4.0-*.el7.centos.x86_64.rpm

i-nex-7.4.0-lib64.patch

--- I-Nex-master/I-Nex/i-nex/.src/FSystemInfo.class     2015-09-19 17:24:12.000000000 -0400
+++ I-Nex-7.4.0/I-Nex/i-nex/.src/FSystemInfo.class      2015-09-27 11:39:04.000000000 -0400
@@ -187,7 +187,7 @@
   cFile = New Collection

   aText.Add("[Libraries]")
-  For Each sDir In ["/lib", "/usr/lib"]
+  For Each sDir In ["/lib", "/usr/lib", "/lib64", "/usr/lib64"]
     For Each sFile In RDir(sDir, "", gb.File, False).Sort(gb.IgnoreCase)
       sFile = File.Name(sFile)
       For Each sPattern In cSearch

i-nex-7.4.0-distro-quotes.patch

--- I-Nex-master/I-Nex/i-nex/Data/screenfetch-dev       2015-09-19 17:24:12.000000000 -0400
+++ I-Nex-7.4.0/I-Nex/i-nex/Data/screenfetch-dev        2015-09-27 12:41:25.658612840 -0400
@@ -3374,6 +3374,8 @@
 NETTOOLS=$(ifconfig --version 2>&1 | grep tools | awk 'NR==1{print $NF}')
 WIRELESS_TOOLS=$(iwconfig --version 2>&1 | awk '(NR==1 && ($3 == "version")) {print $4}')

+distro=$(echo $distro | sed 's/\"//g')
+
 cat > ~/.i-nex/screenfetch.json <<EOF
 {
   "DE": "$DE",

i-nex-7.4.0-spd-labelnames.patch

--- I-Nex-master/I-Nex/i-nex/.src/MDecode_dimms.module  2015-10-01 05:29:33.781844202 -0400
+++ I-Nex-7.4.0/I-Nex/i-nex/.src/MDecode_dimms.module.new       2015-10-01 05:31:03.277023619 -0400
@@ -15,6 +15,11 @@
  Try Finfosys.ComboBox10.List = Dir("/sys/bus/i2c/drivers/eeprom/", "*-****")
  Try Finfosys.ComboBox10.Index = 0
+
+ If Finfosys.ComboBox10.Count = 0 Then
+  SETNULL()
+  FINALIZE()
+ Endif
 End

Public Sub _inits()

i-nex-7.4.0-rpm-dpkg.patch


--- I-Nex-master/I-Nex/i-nex/.src/Finfosys.class        2015-10-02 10:05:12.512531894 -0400
+++ I-Nex-7.4.0/I-Nex/i-nex/.src/Finfosys.class         2015-10-02 15:26:07.800809195 -0400
@@ -774,7 +774,9 @@

 Public Sub Button7_Click()
   Dim packages As String
+  If Exist("/var/lib/dpkg/status")
   Shell "grep \"^Status: install ok installed\" /var/lib/dpkg/status | wc -l" Wait To packages
+  Endif
   If ChkPrm.ChkExec("rpm") = True And IsNull(packages) = True Then
   Shell "rpm -qa | wc -l" Wait To packages
   Endif

i-nex.spec

See https://github.com/eloaders/I-Nex/blob/master/dists/redhat/i-nex.spec
@eloaders
Copy link
Member

eloaders commented Dec 5, 2015

I applied patches for Centos: 5813d16

@alphastar868
Copy link
Contributor Author

Great news - thanks!

Also, the specfile at https://github.com/eloaders/I-Nex/blob/master/dists/i-nex.spec is outdated, and should probably be updated with the info from my updated i-nex.spec (it is .txt only to allow for Github upload here):

i-nex.spec.txt

Also, README.md (Github homepage) should be updated to reflect Gambas 3.8.x changes. And last, but not least, a version bump (7.4.0.1?), to prompt the automated buildsystems and custom repositories that are generating I-Nex packages e.g. OpenSUSE, Fedora Copr, etc.

@alphastar868
Copy link
Contributor Author

See i-nex.spec for the latest changes to the specfile, and for building new commits (versions) after 5813d16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants